473,382 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Apache vhosts and PHP running on Windows 2000 Server

I have a problem and can not get it configured. I have searched everywhere and can not find a solution. I appreciate any help.

PHP is running fine if I run <?phpinfo();?> in the htdocs directory. But if I try to configure httpd-vhosts.conf and include it in the httpd.conf file it directs it to the correct path but php won't work. I can post my conf files if you want me to but I thought maybe someone would have a idea. Thanks for your help.
Mar 15 '08 #1
2 1117
dlite922
1,584 Expert 1GB
I have a problem and can not get it configured. I have searched everywhere and can not find a solution. I appreciate any help.

PHP is running fine if I run <?phpinfo();?> in the htdocs directory. But if I try to configure httpd-vhosts.conf and include it in the httpd.conf file it directs it to the correct path but php won't work. I can post my conf files if you want me to but I thought maybe someone would have a idea. Thanks for your help.
you mean php won't work, but HTML does display?

if you create multiple sites and put HTML in them, the virtual host works correctly?

if no, post your <virtualhost> blocks.
Mar 15 '08 #2
Yes, html works fine but php will not interpret the php it just displays it as text. I am at the end of my rope, after 3 days of trying to get this to work, here is my simplified vhosts.


NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#



<VirtualHost *:80>
ServerName rapidcontacts.org
DocumentRoot C:/virtualhosts/rapidcontacts/httpdocs
ServerAlias www.rapidcontacts.org
ServerAdmin webmaster@rapidcontacts.org
</VirtualHost>

Thanks for any help you can provide.
Mar 15 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
1
by: Ringo | last post by:
> > I'm trying to figure out how to access any VHosts > > from samebox mode, or from pc connected to the same lan. > > I've seen this done with Mac, but can't find how with win2k. > > Can someone...
8
by: Brett | last post by:
I'm developing with CF 5 and SQL Server 2000. I think they are both great products. The major draw is their cost. I don't develop stand alone products because anyone that wants to purchase them...
1
by: vishnu mahendra | last post by:
i am new to javascript. Can any one please tell me how to connect javascript to oracle in windows 98 using apache.where i could get information on connecting? thank you in advance, vishnu
4
by: Patrick Masson | last post by:
Hello, Our configuration : Apache 2.0.53 PHP 5.0.4 PC Windows 2000 MATLAB 6.1 We work on a consulting project in France which involves MATLAB Web server,
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
0
by: sebor | last post by:
October 29, 2007 -- The Apache C++ Standard Library project is pleased to announce that the official stdcxx 4.2.0 release is now available for download from the following location:...
9
by: camphor | last post by:
hi, I am very new to PHP and trying to set up a virtual host in Apache so I can test the protx Form PHP Intergration kit I received this message after I restarted Apache: Syntax error on...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.