I've been through all the manuals several times. Can someone please verify that the order to bring things up in building a development environment is SQL first, then PHP, then Apache, then Drupal?

Comments

marquardt’s picture

What do you mean by 'bringing things up'? MySQL is a data base server which runs completely independently from Apache; but in order to have Drupal working, you need to have the MySQL database server up and running.

Apache is the web server; PHP is a scripting language that runs as a module within your Apache (so if the web server is up and running and correctly configured, a file ending with the extension .php should be executed by the php interpreter - if the file is placed in a directory served by the Apache web server). Drupal is a set of PHP scripts that is run through the web server and makes use of the database...

2Hearts’s picture

I understand what the pieces are. But as I read through the handbook and cookbook they mentioned settings in PHP and SQL that can effect Drupal. (I can't find any now that I want to mention them!) So it seemed like there should be a logical order to install the various pieces.

marquardt’s picture

Well, it depends on how you install your software. Assuming you are on a Linux server, you almost certainly have a package system which you can use in order to install the required software pieces in one go (like a MySQL server, an Apache web server, and a complete set of PHP packages including the MySQL interface). On Debian / Ubuntu systems, for example, apt-get will resolve all dependencies; and so does rpm on my Suse distribution. You can always tweak the configuration settings later on; just don't forget to restart the apache and mysql servers after any modification of the settings.

For Windows and Mac OS (which I don't use, unfortunately), you can also get complete distributions of Apache / PHP / MySQL.

If you build (= compile) things from scratch, you'll probably start with MySQL and Apaches which can be done independently from each other; you'd then compile the PHP extensions for Apache (which requires both the development environments for Apache and MySQL).

Finally, you'd install Drupal...

2Hearts’s picture

Thank-you marquardt. This was very helpful. I'm installing on a standalone XP Pro development box for simplicity (as if that word can apply to anything with MS in it!). Getting to this point is the result of about 3 weeks of research, trial and error, and blogging. So if anyone else is trying this, I have been documenting the process of bringing up the development environment - which seems to be the really hard part. I'm currently trying to configure Apache so PHP can install correctly. According to the install manual for Drupal, I need to add "index.php" to "httpd.conf", but it doesn't give the syntax and I haven't been able to find it so far.

Once Drupal is installed it should get fun.
Thanks again

2Hearts’s picture

The process of bringing up a development environement is more complex than this. I've been documenting it and will submit it later (I'm on step 17 right now). Right now I'm stuck at getting Apache configured so PHP will build correctly. Can anyone give me the correct syntax for adding "index.php" to the "httpd.conf" file DirectoryIndex statement? The Drupal install manual says this must be done but does not give the syntax for it. The Apache site resources were not helpful either.