Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 7th, 2002, 11:09 AM
Acid Reign Acid Reign is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 190 Acid Reign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 57 m 52 sec
Reputation Power: 8
Send a message via ICQ to Acid Reign
Enabling PHP?

I have manually installed PHP on my test pc after the automatic one didn't seem to be working at all but im not sure on some of the lines to be added to the apache config file.

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

I added the last two lines near loads of AddHandlers for cgi scripts as SSI stuff, but for some reason the first line doesn't work no matter where i put it (the first two do work, well, i can run php scripts so i guess they work).

Help please!!

Reply With Quote
  #2  
Old January 8th, 2002, 12:29 AM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I would rather to load PHP into module instead cgi (php.exe)..

Anyway, did you edit php.ini and put dlls and php.ini in the right place?

1) Find php.ini-dist file at "C:\php" and rename it to "php.ini".

2) Open php.ini with notepad or your favorite editor.

3) Find a line "extension_dir = ./" then change it to "extension_dir = "c:\php"".

4) Copy the php.ini and paste it at "c:\windows" or "c:\winnt", or wherever you usually put your *.ini files, but the best idea to put it at either "c:\windows" or "c:\winnt".

5) Copy the msvcrt.dll and php4ts.dll from PHP directory to "c:\windows\system" or "C:\winnt\system", or wherever you usually put your *.dll files, but the best idea to put it at either "c:\windows" or "c:\winnt".

Reply With Quote
  #3  
Old January 10th, 2002, 09:56 AM
skeasor skeasor is offline
Masked Chicken
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 54 skeasor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 52 sec
Reputation Power: 8
Send a message via AIM to skeasor
enable mod

Dont you have to run --enable module=so when configuring apache ?

Skeasor
__________________
____________
Thanks,
Skeasor

Got Debian Linux?
www.debian.org

Reply With Quote
  #4  
Old January 10th, 2002, 11:23 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
>>the first line doesn't work no matter where i put it
who? first line in what? .php file or .conf?
mezz, editing php.ini will not help if php doesn't work, and if he hasn't copied .dlls then php wouldn't have worked at all, but apparently it does --> i can run php scripts <--
skeasor, not on windows binaries you dont. Heck, there is even no such thing as 'configuring' win binary
__________________
And you know I mean that.

Reply With Quote
  #5  
Old January 13th, 2002, 10:07 PM
OB_redemption's Avatar
OB_redemption OB_redemption is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 32 OB_redemption User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
assuming you're installing php as an apache module, this article should be a lot of help...

also, be sure to read the apache manual and the php manual on installation of php

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Enabling PHP?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway