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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 19th, 2000, 07:49 AM
pjgadsdon pjgadsdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 6 pjgadsdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ive just installed apache on my windows nt machine, i have allready got IIS 4.0 and Java Webserver.

Ive called the root of the server the same as IIS i.e. localhost, this means that i can only run them when the other has been stopped.

I have installed PHP4 and have it running with IIS but cant get the Apache web server to work with it. I have changed the conf file to point to the PHP4 directory. When i start apache a dos window appears with apache running in it. This stays open though, would this have anything to do with it.

Reply With Quote
  #2  
Old August 1st, 2000, 03:00 AM
Nobodys Real Nobodys Real is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: City, State, Country
Posts: 12 Nobodys Real User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nobodys Real
Could you tell me the exact steps you took??
These are the steps to a successful PHP4/Apache install.

Step1. Download & Unzip the PHP 4 source to C:PHP4
Step2. Copy MSVCRT.DLL (it may already exist in there)
and PHP4TS.DLL to C:WindowsSYSTEM (or C:WindowsSYSTEM32 if your on NT)
Step3. Re-Name & Copy 'php.ini-dist' to C:Windows.
Step4. Edit PWD-php4.reg to reflect the directory your php4 files are in. It SHOULD(if you follow all my directions EXACTLY) be like this:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
REGEDIT4

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map]
".php"="Chpphp4isapi.dll"
[/quote]

Step5. Goto the Apache conf Dir, should be something like...
C:Program FilesApache GroupApacheconf
Open httpd.conf and find section:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
#
# 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.
#
[/quote]
Add this after that:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
ScriptAlias /php4/ "C:/PHP4/"
[/quote]
Don't close httpd.conf yet!
Find this section:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
#CacheRoot "C:/Program Files/Apache Group/Apache/proxy"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a_domain.com another_domain.edu joes.garage_sale.com
[/quote]
Add this after:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
AddType application/x-httpd-php .phtml .php .php3
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php4/php.exe
[/quote]
Save & Close httpd.conf.

Step5. Now, make a file which contains EXACTLY this:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<? phpinfo() ?>
[/code]
Save it to the htdocs directory, or whatever your Root directory is. Name it whatever you would like, but make sure it ends in .phtml, .php, or .php3. Run Apache, and then execute this file. If you see...
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
<? phpinfo() ?>
[/quote]
It did NOT work. If you see a page with lots of stuff on it, with info about your php and MySQL and other stuff status, then it worked!

Step6. Place Any & All php scripts in the Root directory(standard:
C:Program FilesApache GroupApachehtdocs)
And they will be executed. You can execute a php script from ANYWHERE in the Root directory, even sub directorys of the root dir.

Step7. Enjoy!!!=)

Good luck, and remember...this will only work, if you follow these instructions exactly how they are explained, and you're using Windows 9x/2k/NT.

^N|R

[This message has been edited by Nobodys Real (edited August 01, 2000).]

Reply With Quote
  #3  
Old August 1st, 2000, 07:51 AM
pjgadsdon pjgadsdon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 6 pjgadsdon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thankyou very much

it works

All the best Paul

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > is apache working


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 4 hosted by Hostway