error when installing php
Posted: Sun Jul 19, 2009 3:32 am
i installed apache and then php using the instructions found in a web page shown below
Go to your desktop and in the folder you initially created find file called php-5.2.3-Win32.zip.
Extract the content of this file to C:\webserver\php. Pull out all of the files from the php-5.2.3-Win32 folder and place them directly in C:\webserver\php.
Now we need to add our C:\webserver\php folder to the path of the Environment Variables.
To do this right click My Computer icon on your desktop and choose Properties. Then choose Advanced tab and click Environment Variables button .
Now select Path from the System variables list in the bottom part of the window and click Edit
In the new window click inside the Variable value: box and press End button on your keyboard to get to the end of the path.
Now type in or copy and paste the following ;C:\webserver\php (Fig. 15). Make sure you start it with semicolon and to use back slashes.
Installing PHP Step 3
Once you have done this click OK in all of the windows until you close the System Properties window. Now you need to restart the computer.
Next step will be to find out if our PHP is working. Go to Start > Run and type cmd. In the command prompt window type php -v. You should see something like Fig. 16.
Installing PHP Step 4
We still have some tweaking to do before we finish our installation.
Go to C:\webserver\php and find file called php.ini-recommended. Rename that file to php.ini.
Open this file and make the following amendments:
1. identify line with doc_root = and change it to:
doc_root = C:\webserver\Apache2\htdocs
2. identify line with extension_dir = "./" and change it to:
extension_dir = C:\webserver\php\ext
Save and close the file.
Apache Configuration
Now we need to make sure that Apache knows where to search for php modules.
To do that first go to C:\webserver\Apache2\conf and open file httpd.conf in your text editor.
Because we will be running PHP as an Apache module which is faster and more secure option comparing to CGI binary, we will need to do the following changes to httpd.conf file:
1. identify LoadModule section and add the following line at the top of this section:
LoadModule php5_module "C:/webserver/php/php5apache2.dll"
2. identify AddType section and add the following line at the top of this section:
AddType application/x-httpd-php .php
3. lastly place the following line somewhere within the content:
PHPIniDir "C:/webserver/php/" - ensure you have a closing slash at the end of the path.
Save and close file. Restart Apache by going to Start > All Programs > Apache HTTP Server 2.0.59 > Control Apache Server and click Restart.
my php location is c:\php and my apache location is C:\Program Files\Apache Software Foundation\Apache2.2
i restarted my apache after i make the necessary changes in php.ini and httpd.conf files
but i got the following screen when restarting apache i fed up with the problems when installing apache and php
i think this is my 8 or 9 try.................. pls help me guys
pls
pls
Go to your desktop and in the folder you initially created find file called php-5.2.3-Win32.zip.
Extract the content of this file to C:\webserver\php. Pull out all of the files from the php-5.2.3-Win32 folder and place them directly in C:\webserver\php.
Now we need to add our C:\webserver\php folder to the path of the Environment Variables.
To do this right click My Computer icon on your desktop and choose Properties. Then choose Advanced tab and click Environment Variables button .
Now select Path from the System variables list in the bottom part of the window and click Edit
In the new window click inside the Variable value: box and press End button on your keyboard to get to the end of the path.
Now type in or copy and paste the following ;C:\webserver\php (Fig. 15). Make sure you start it with semicolon and to use back slashes.
Installing PHP Step 3
Once you have done this click OK in all of the windows until you close the System Properties window. Now you need to restart the computer.
Next step will be to find out if our PHP is working. Go to Start > Run and type cmd. In the command prompt window type php -v. You should see something like Fig. 16.
Installing PHP Step 4
We still have some tweaking to do before we finish our installation.
Go to C:\webserver\php and find file called php.ini-recommended. Rename that file to php.ini.
Open this file and make the following amendments:
1. identify line with doc_root = and change it to:
doc_root = C:\webserver\Apache2\htdocs
2. identify line with extension_dir = "./" and change it to:
extension_dir = C:\webserver\php\ext
Save and close the file.
Apache Configuration
Now we need to make sure that Apache knows where to search for php modules.
To do that first go to C:\webserver\Apache2\conf and open file httpd.conf in your text editor.
Because we will be running PHP as an Apache module which is faster and more secure option comparing to CGI binary, we will need to do the following changes to httpd.conf file:
1. identify LoadModule section and add the following line at the top of this section:
LoadModule php5_module "C:/webserver/php/php5apache2.dll"
2. identify AddType section and add the following line at the top of this section:
AddType application/x-httpd-php .php
3. lastly place the following line somewhere within the content:
PHPIniDir "C:/webserver/php/" - ensure you have a closing slash at the end of the path.
Save and close file. Restart Apache by going to Start > All Programs > Apache HTTP Server 2.0.59 > Control Apache Server and click Restart.
my php location is c:\php and my apache location is C:\Program Files\Apache Software Foundation\Apache2.2
i restarted my apache after i make the necessary changes in php.ini and httpd.conf files
but i got the following screen when restarting apache i fed up with the problems when installing apache and php
i think this is my 8 or 9 try.................. pls help me guys
pls
pls