Drupalをラップトップにセットアップ

昨日インストールしたXAMPPLiteにDrupalのバックアップをセットアップする。

まず、自分が今運用しているDrupalサイトのファイルを丸ごとc:\xampplite\htdocsにコピー。

Drupalのsites\default\settings.phpの$db_urlを編集して、XAMPPLiteのデータベースとパスワードに設定する。

phpMyAdminで$db_urlで指定したデータベースを作っておく。中身は空でよく、コードはUTF-8を指定。

データベースのバックアップを復元しようとするが、Importでメモリエラー発生。php.iniのmemory_limitを上げればいいのだが、これはhtdocsにあるphp.iniではなく、c:\xampplite\php\php.iniを編集する必要がある。また、Apacheを再起動する。64MBでは足りなくて、128MBにする必要があった。

http://localhost/でDrupalサイトが動作する。

追記: まったく同じものをデスクトップのWindows 7

追記:
まったく同じものをデスクトップのWindows 7 (Home Premium)にインストール。やり方は同じだけど、XAMPP Control PanelからApacheもMySqlも起動できず。一瞬、Windows 7 が64bit版だからかと思ったけど、リブートしてからやり直したら普通に動いた。どうしてリブートで変わるのかはなぞだけど、動いたからいいか(^^)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <code> <cite> <ul> <ol> <li> <dl> <dt> <dd> <p>
  • Lines and paragraphs break automatically.
  • Link to Amazon products with: [amazon product_id inline|full|thumbnail]. Example: [amazon 1590597559 thumbnail]
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.