Wow Web Designs Forums Home

Search
   
Members

Calendar

Help

Home
Search by username
Not logged in - Login | Register 
Wow Web Designs Forums > Scripting > PHP > Please Clear my doubt in Configuring PHP5 with Apache Server Completely


Please Clear my doubt in Configuring PHP5 with Apache Server Completely
 Moderated by: Aycan  

New Topic

Reply

Print
AuthorPost
saikumar_msc
Member
 

Joined: Fri Aug 20th, 2004
Location:  
Posts: 2
Status:  Offline
Mana: 
 Posted: Fri Aug 20th, 2004 05:44 am

Quote

Reply
Hai,

Anyone help me to configure PHP5 on my Apache Server. I tried alot, but I am not getting a real configuration method.

Thanks

shahjalal
Member
 

Joined: Fri Jul 8th, 2005
Location:  
Posts: 1
Status:  Offline
Mana: 
 Posted: Fri Jul 8th, 2005 08:18 am

Quote

Reply

Configuring Apache for PHP


You must configure Apache to recognize and run PHP files. An Apache configuration


file, httpd.conf, is on your system, possibly in /etc or in /usr/


local/apache/conf. You must edit this file before PHP can run properly.


Follow these steps to configure your system for PHP:


1. Open the httpd.conf file so you can make changes.


2. Configure Apache to load the PHP module.


Find the list of LoadModule statements. Look for the following line:


LoadModule php5_module libexec/libphp5.so.


If this line isn’t there, add it. If a pound sign (#) is at the beginning of the


line, remove the pound sign.


3. Configure Apache to recognize PHP extensions.


You need to tell Apache which files might contain PHP code. Look for a


section describing AddType. You might see one or more AddType lines


for other software. Look for the AddType line for PHP, as follows:


AddType application/x-httpd-php .php


If you find it with a pound sign (#) at the beginning of the line, remove


the pound sign (#). If you don’t find this line, add it to the AddType statements.


This line tells Apache to look for PHP code in all files with a .php


extension. You can specify any extension or series of extensions.


4. Start (if it is not running) or restart (if it is running) the Apache httpd


server.


You can start or restart the server by using a script that was installed on


your system during installation. This script might be apachectl or


httpd.apache, and might be located in /bin or


/usr/local/apache/bin. For example, you might be able to start the


server by typing apachectl start, restart it by using apachectl


restart, or stop it by using apachectl stop. Sometimes restarting is


not sufficient; you must stop the server first and then start it.

Lakeside
Member
 

Joined: Mon Jul 11th, 2005
Location:  
Posts: 1
Status:  Offline
Mana: 
 Posted: Tue Jul 12th, 2005 12:52 am

Quote

Reply
hope it's alright that I post in this thread..I would like some help with the same thing, but for php4.3.11..used the tutorial on here("How to Get the Killer.....Power Guides"...O.K. up to here:

 ScriptAlias /php/ "c:/program files/php/" (for Windows only - change path accordingly)
Action application/x-httpd-php "/php/php.exe" (for Windows only)
AddType application/x-httpd-php .php ..I'm slow but I need to know EXACTLY what to type into the conf file (getting windows and Linux mixed up here)
And as for step2 on this tut "Load Module php5.." what would I put there if using php4.3.11, NOT php5?

 

Last edited on Tue Jul 12th, 2005 12:57 am by Lakeside

saikumar_msc
Member
 

Joined: Fri Aug 20th, 2004
Location:  
Posts: 2
Status:  Offline
Mana: 
 Posted: Tue Jul 12th, 2005 11:57 am

Quote

Reply
Hi, 

:)

Thanks for your response.   But last year itself, I configured PHP5 in Apache webserver 2.0 and Mysql 4.0.  It is running well.  I am doing projects in PHP5 and getting more knowledge.

Thanks...

:shock:  Saikumar K

bigheadchd
Member


Joined: Sat Oct 29th, 2005
Location: Kuala Lumpur, Malaysia
Posts: 2
Status:  Offline
Mana: 
 Posted: Sat Oct 29th, 2005 02:15 pm

Quote

Reply
ok... i'm using apache 2.0.55 and php 5 and this guide doesn't help to start the web server... need help here, thanks... :(


 Current time is 10:36 pm




Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez
Page processed in 0.2849 seconds (8% database + 92% PHP). 17 queries executed.