View Single Post
kajasweb
VIP User

kajasweb's Avatar

Join Date: Aug 2007
Posts: 1,692
Credits: 8,380
kajasweb has a spectacular aura about
Location: Chennai, India

Send a message via ICQ to kajasweb Send a message via AIM to kajasweb Send a message via MSN to kajasweb Send a message via Yahoo to kajasweb Send a message via Skype™ to kajasweb
Quote  
01-02-2008, 12:55 AM
Re: configuring php on localhost

I prefer installing Apache, PHP, and MySQL manually as you can know all of its configuration and settings for later usage.

- Prefer installing Apache 2.2.6 using a MSI Installer (Easy to install for Widows Users)

- Use the AccessFileName Directive to alter the filename of Accessfile. (I'm suggesting this because Windows MAY not allow you to have files starting with a period character.) Prefer using
Code:
AccessFileName ht.access .htaccess
in your httpd.conf

- Install PHP (Prefer using php.ini-dist)

- Add the following lines to your httpd.conf
Code:
LoadModule php5_module php/php5apache2_2.dll
AddType application/x-httpd-php .php
I have installed PHP inside the Apache Installation directory and that's why I have used a relative path to LoadModule directive.

- Install MySQL

- Edit the PHP.ini

---- Set Error_reporting = E_ALL (Useful for Testing Environment)
---- Set Extension Directory
---- Un-Comment the Extensions you want to use. (mysql & mysqli - For using MySQL)

I think, this is enough for you to complete your task successfully.

All the best.
__________________
R. Kaja Mohideen
Start Your Own Blog... Start Making Money...
http://www.MyiStop.com/
If you find my post useful, Click on to give me some reputation, or Donate few credits to me.


Last edited by kajasweb; 01-02-2008 at 03:41 AM.
Reply With Quote
kajasweb is offlineReport Post