Shoutbox

Setting up PHP in Apache 2.0 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Setting up PHP in Apache 2.0 (/showthread.php?tid=22891)

Setting up PHP in Apache 2.0 by .blade// on 03-21-2004 at 02:57 PM

Well I've never set up PHP in Apache...or anywhere for that fact before, so I used a tut. to install it, but it doesn't seem to have work, even though it shows up in the console as being enabled, the site still tries to get you to download the .php file instead of executing it :S

[Image: attachment.php?pid=217094]

Note:
I manually installed it as it said to do in the tut. :S


RE: Setting up PHP in Apache 2.0 by Mnjul on 03-21-2004 at 03:11 PM

I think you have to...
1. Copy php.ini-dist to \Windows directory, rename it with php.ini
2. Inside php.ini, find:
;cgi.force_redirect = 1
and replace with
cgi.force_redirect = 0
3. Copying php4ts.dll to your \Windows\System32 directory


I think it should work...:) As I am not running Apache 2 Service for my httpd, I am not that sure either :(


RE: Setting up PHP in Apache 2.0 by .blade// on 03-21-2004 at 03:16 PM

Minjul, thx for the help, but first off I had already done the php.ini file thing bcz of the tut., but I replaced the cgi.force thing, and copied php4ts.dll into System32, now Apache woon't start X_X

On using the "Test Configuration" Function on Apache, I get no errors :S

[Image: attachment.php?pid=217102]


btw: Thx for the quick response :)


RE: Setting up PHP in Apache 2.0 by Mnjul on 03-21-2004 at 03:25 PM

If it fails 8-) perhaps...I suggest you move php4ts.dll back 8-) Perhaps it shouldn't get moved on modphp's being used...


RE: Setting up PHP in Apache 2.0 by .blade// on 03-21-2004 at 03:27 PM

I still get the error...this is really strange X_X

Edit:
I know what's wrong, I started up KaZaA...it's causing me to have no available socket for the server to start in...lol...I will test again and see if it worked! :P

Edit, yet again:
No...didn't work :'( I don't get the error anymore, but it still tries to download the PHP file X_X

Note:
This is the tut. I used in case your wondering:
http://www.thesitewizard.com/archive/php4install.shtml
and this is my site(ish)...it's a start-up, so it needs work, but anyways, the site can be found @ my IP (you can get it bcz ur a MOD :P) and stick on to the end /tester.php


RE: Setting up PHP in Apache 2.0 by Mnjul on 03-21-2004 at 03:43 PM

I suppose you installed PHP as an Apache module...are you sure you did this? ;)

quote:
Finally, search for "AddType" in the file, and add the following line after the last "AddType" statement:

AddType application/x-httpd-php .php
If you need to support other file types, like ".php3" and ".phtml", simply add them to the list, like this:

AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml


RE: Setting up PHP in Apache 2.0 by .blade// on 03-21-2004 at 03:45 PM

I installed it as an apache module, and did that, and after that failed, I ALSO installed it as a CGI/PHP Binary :S


RE: Setting up PHP in Apache 2.0 by Mnjul on 03-21-2004 at 03:48 PM

NO you should do only either of them... Go find ScriptAlias /php/... and remove the line :(


RE: Setting up PHP in Apache 2.0 by .blade// on 03-21-2004 at 03:52 PM

First off, I know ur not suppose to install both, but when 1 didn't work, I assumed it failed, also, it's still trying to dwld the php file instead of display it :S


RE: Setting up PHP in Apache 2.0 by Luthion on 03-21-2004 at 04:28 PM

I also had problems with Apache 2.0 and PHP... but i tried Apache 1.3.29 and that worked great! Turtorial: http://www.webmasterstop.com/tutorials/apache-php...installation.shtml


RE: Setting up PHP in Apache 2.0 by .blade// on 03-21-2004 at 04:34 PM

Problem = I want 2.0 to work...I don't want to have to take a step back :S I iwll if I hav to...but only if nothing else works :S