|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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!! |
|
#2
|
|||
|
|||
|
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". |
|
#3
|
|||
|
|||
|
enable mod
Dont you have to run --enable module=so when configuring apache ?
Skeasor
__________________
____________ Thanks, Skeasor Got Debian Linux? www.debian.org |
|
#4
|
||||
|
||||
|
>>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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Enabling PHP? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|