|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi everybody .
I'm trying to configure Apache to recognize PHP4 scripts but without success . When i start apache service i get this message : +++++++++++++++++++++++++++ syntax error on line 1 of f:/apache/conf/httpd.conf invalid command '{rtf1ansiansicpg12s2uc1' , perhaps mis-spelled or defined by a module not included in the server configuration ++++++++++++++++++++++++++++ Does anyone know what's wrong ? I followed the instructions below : 1. Download & Unzip the PHP 4 source to F:PHP4 2. Copy MSVCRT.DLL (it may already exist in there)and PHP4TS.DLL to C:WinNTSYSTEM32 3. Re-Name & Copy 'php.ini-dist' to C:WinNT. 4. Goto the Apache conf Dir, should be something like... F:Apacheconf Open httpd.conf and find section: quote: -------------------------------------------------------------------------------- # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # -------------------------------------------------------------------------------- Add this after that: quote: -------------------------------------------------------------------------------- ScriptAlias /php4/ "F:/PHP4/" -------------------------------------------------------------------------------- Don't close httpd.conf yet! Find this section: quote: -------------------------------------------------------------------------------- # # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) # #CacheRoot "F:/Apache/proxy" #CacheSize 5 #CacheGcInterval 4 #CacheMaxExpire 24 #CacheLastModifiedFactor 0.1 #CacheDefaultExpire 1 #NoCache a_domain.com another_domain.edu joes.garage_sale.com -------------------------------------------------------------------------------- Add this after: quote: -------------------------------------------------------------------------------- AddType application/x-httpd-php .phtml .php .php3 AddType application/x-httpd-php-source .phps Action application/x-httpd-php /php4/php.exe -------------------------------------------------------------------------------- Save & Close httpd.conf. Thanks in advance ! |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > configuring Apache & PHP4 on win 2000??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|