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
pleigh
Forum Contributor
Posts: 445 Joined: Wed Jan 19, 2005 4:26 am
Post
by pleigh » Fri Apr 15, 2005 5:26 am
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/ "e;c:/server/php/"e;
AddType application/x-httpd-php .php
Action application/x-httpd-php "e;/server/php/php-cgi.exe"e;
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Apr 15, 2005 7:09 am
pleigh, seriously... use the correct board for your questions..
Moved to
Web servers .
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Fri Apr 15, 2005 11:00 am
Are you wanting to use CGI? I'd just use SAPI...
Change to....
Code: Select all
Action application/x-httpd-php "e;/server/php/php.exe"e;
You may also need to load the php4apache2.dll (or whatever its called) module if that isn't working for you...
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Fri Apr 15, 2005 12:44 pm
these are the lines that are related to php (php5) in my httpd.conf (apache2)
Code: Select all
(174) LoadModule php5_module "e;C:/Program Files/php-5.0.4-Win32/php5apache2.dll"e;
(175) PHPIniDir "e;C:/Program Files/php-5.0.4-Win32/"e;
(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 » Fri Apr 15, 2005 7:58 pm
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
infolock
DevNet Resident
Posts: 1708 Joined: Wed Sep 25, 2002 7:47 pm
Post
by infolock » Fri Apr 15, 2005 9:38 pm
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.
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Sat Apr 16, 2005 9:52 am
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