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
  #1  
Old December 2nd, 2000, 04:35 PM
joe_m joe_m is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 1 joe_m User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 !

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > configuring Apache & PHP4 on win 2000???


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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