Declare it GLOBAL

Loading...

Search! HigherThanGetche!

Saturday, September 5, 2009

Slight config for PhP and Apache (for Drupal CMS)

I would be discussing on how to alter certain configuration files of PHP and Apache, so that Drupal CMS would run smoothly without any errors.

I would also assume that you have installed MySQL, Apache 2.2.x, PhP 5.2.5. And of course the Drupal CMS in your localhost.

It would be advisable that you're only using drupal for this matter - to avoid any conflicts in the root folder - or if you insist on using other CMS, be organized about it and cluster these different CMS in different corresponding folders - to avoid any conflicts.

Without further ado, let's begin.

PHP-Side:

1. You should have installed all extensions (e.g. mbstring, mysql, mysqli.. Etc..)offered in PHP v.5.2.5.











2. Enable the following extensions in the php.ini file located in the php folder by deleting the ; character located in front of the word ‘extension’:
  • mbstring.dll
  • gd2.dll
  • mysql.dll
  • mysqli.dll

3. Save the php.ini file. and copy the php.ini file to the C:\WINDOWS directory.

Apache-side:

1. Go to your Apache folder, and locate the conf folder, click it.













2. Open the httpd.conf file
















3. Press ctrl+f and look for the index.html text.

4. Type index.php beside the index.html text.

5. Save the httpd.conf file.

6. Go back to your conf folder, if you see a file named httpd.conf.BAK open it using wordpad.

7. Do the same procedure done earlier in the httpd.conf file.

8. Save the httpd.conf.BAK file.

9. You can now go directly to your Drupal site, without having to view the parent directory list.

0 comments:

Post a Comment