apache-php taking me forever...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

apache-php taking me forever...

Post by pleigh »

i installed apache, mysaql, php....installation were successful...except that i can't see the output of my php codes....i already configured the httpd.conf of apache, placing these at the bottom of the text file

Code: Select all

ScriptAlias /php/ &quote;c:/server/php/&quote;
AddType application/x-httpd-php .php
Action application/x-httpd-php &quote;/server/php/php-cgi.exe&quote;
i don't know what the problem is, i installed this as a cgi binary because when i install this as a module, then i restart apache, it won't connect...

help...

thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

pleigh, seriously... use the correct board for your questions..

Moved to Web servers. :roll:
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Are you wanting to use CGI? I'd just use SAPI...

Change to....

Code: Select all

Action application/x-httpd-php &quote;/server/php/php.exe&quote;
You may also need to load the php4apache2.dll (or whatever its called) module if that isn't working for you... :wink:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

these are the lines that are related to php (php5) in my httpd.conf (apache2)

Code: Select all

(174) LoadModule php5_module &quote;C:/Program Files/php-5.0.4-Win32/php5apache2.dll&quote;
(175) PHPIniDir &quote;C:/Program Files/php-5.0.4-Win32/&quote;

(328) DirectoryIndex index.php index.html index.html.var

(794) AddType application/x-httpd-php .php
thegreatone2176
Forum Contributor
Posts: 102
Joined: Sun Jul 11, 2004 1:27 pm

Post by thegreatone2176 »

Not sure of your OS but when you install apache on linux if you just give it php options at ./configure you dont have to even touch the httpd.conf and it works alot easier
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

along with what tim said, could point me to say "you didn't load the php module using LoadModule"

at least it wasn't shown in your first statement pleigh.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

thegreatone2176 wrote:Not sure of your OS but when you install apache on linux if you just give it php options at ./configure you dont have to even touch the httpd.conf and it works alot easier
If you read the original statemtn by pleigh you will see that he is using windows.
Hence the path C:/.... and the executable php.exe :roll:
Post Reply