What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Setting up PHP in Apache 2.0

Pages: (2): « First [ 1 ] 2 » Last »
Setting up PHP in Apache 2.0
Author: Message:
.blade//
Veteran Member
*****

Avatar

Posts: 2856
Reputation: 39
35 / Male / –
Joined: Jan 2004
O.P. Huh?  Setting up PHP in Apache 2.0
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

.jpg File Attachment: apache.JPG (27.64 KB)
This file has been downloaded 304 time(s).

This post was edited on 03-21-2004 at 02:58 PM by .blade//.
[Image: A%20Pointy%20Rock.jpg]
03-21-2004 02:57 PM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Setting up PHP in Apache 2.0
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 :(

This post was edited on 03-21-2004 at 03:13 PM by Mnjul.
03-21-2004 03:11 PM
Profile PM Web Find Quote Report
.blade//
Veteran Member
*****

Avatar

Posts: 2856
Reputation: 39
35 / Male / –
Joined: Jan 2004
O.P. RE: Setting up PHP in Apache 2.0
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 :)

.jpg File Attachment: apache2.JPG (29.93 KB)
This file has been downloaded 302 time(s).

This post was edited on 03-21-2004 at 03:20 PM by .blade//.
[Image: A%20Pointy%20Rock.jpg]
03-21-2004 03:16 PM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Setting up PHP in Apache 2.0
If it fails 8-) perhaps...I suggest you move php4ts.dll back 8-) Perhaps it shouldn't get moved on modphp's being used...
03-21-2004 03:25 PM
Profile PM Web Find Quote Report
.blade//
Veteran Member
*****

Avatar

Posts: 2856
Reputation: 39
35 / Male / –
Joined: Jan 2004
O.P. RE: Setting up PHP in Apache 2.0
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

This post was edited on 03-21-2004 at 03:36 PM by .blade//.
[Image: A%20Pointy%20Rock.jpg]
03-21-2004 03:27 PM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Setting up PHP in Apache 2.0
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

03-21-2004 03:43 PM
Profile PM Web Find Quote Report
.blade//
Veteran Member
*****

Avatar

Posts: 2856
Reputation: 39
35 / Male / –
Joined: Jan 2004
O.P. RE: Setting up PHP in Apache 2.0
I installed it as an apache module, and did that, and after that failed, I ALSO installed it as a CGI/PHP Binary :S
[Image: A%20Pointy%20Rock.jpg]
03-21-2004 03:45 PM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Setting up PHP in Apache 2.0
NO you should do only either of them... Go find ScriptAlias /php/... and remove the line :(
03-21-2004 03:48 PM
Profile PM Web Find Quote Report
.blade//
Veteran Member
*****

Avatar

Posts: 2856
Reputation: 39
35 / Male / –
Joined: Jan 2004
O.P. RE: Setting up PHP in Apache 2.0
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

This post was edited on 03-21-2004 at 03:58 PM by .blade//.
[Image: A%20Pointy%20Rock.jpg]
03-21-2004 03:52 PM
Profile PM Web Find Quote Report
Luthion
Junior Member
**


Posts: 94
– / Male / –
Joined: Dec 2003
RE: Setting up PHP in Apache 2.0
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
03-21-2004 04:28 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On