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 10th, 2002, 05:24 PM
Napoleon Napoleon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 4 Napoleon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PHP with apache virtual Host

Hi all,
I have set up two domains on my test server running apache on win 98. The virtualhost settings are as follows.

<VirtualHost *>
ServerAdmin URL
DocumentRoot C:/Apache/www/localhost.com
ServerName localhost.com
ScriptAlias /php4/ "C:/php4/"
ErrorLog C:/Apache/www/localhost.com/logs/localhost.com-error_log
CustomLog C:/Apache/www/localhost.com/logs/localhost.com-access_log common
</VirtualHost>

<VirtualHost *>
ServerAdmin URL
DocumentRoot C:/Apache/www/mymarket.com
ServerName mymarket.com
ScriptAlias /php4/ "C:/php4/"
ErrorLog C:/Apache/www/mymarket.com/logs/mymarket.com-error_log
CustomLog C:/Apache/www/mymarket.com/logs/mymarket.com-access_log common
</VirtualHost>

I have a sample index.html file in the Documentroot directories but I'm unable to load the pages thru my browser (nothing happens). Also files with .php extensions also don't get loaded although i have the line:

Action application/x-httpd-php /php4/php.exe

in the .conf file.

Thanks in advance for your help.

Reply With Quote
  #2  
Old January 10th, 2002, 05:29 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can't help you with Apache on win32. But I need to point out something:

1) DocumentRoot C:/Apache/www/localhost.com

Quote the path at all time like so:

DocumentRoot "C:/Apache/www/localhost.com"

2) ScriptAlias /php4/ "C:/php4/"

If that's the way to configure PHP. Why should both hosts use the same path?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > PHP with apache virtual Host


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