473,320 Members | 2,180 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,320 software developers and data experts.

Having problem with Apache and PHP

joe
Hi,

I am new to both Apache and PHP. I have installed Apache 2.0.59 and PHP

5.1.6 on WinXP Home. I can run test.php page from default DocumentRoot
"C:/Program Files/Apache Group/Apache2/htdocs" but I have a
subdirectory "C:/Program Files/Apache Group/Apache2/htdocs/sub1" from
which I cannot run my test.php page.

Can someone give me an idea as what is wrong here and how I can fix it
so that I can run PHP pages from any subdirectory of C:/Program
Files/Apache Group/Apache2/htdocs.

Thanks for your time,

Joe

Sep 21 '06 #1
2 1267
"joe" <gr*******@canada.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi,

I am new to both Apache and PHP. I have installed Apache 2.0.59 and PHP

5.1.6 on WinXP Home. I can run test.php page from default DocumentRoot
"C:/Program Files/Apache Group/Apache2/htdocs" but I have a
subdirectory "C:/Program Files/Apache Group/Apache2/htdocs/sub1" from
which I cannot run my test.php page.

Can someone give me an idea as what is wrong here and how I can fix it
so that I can run PHP pages from any subdirectory of C:/Program
Files/Apache Group/Apache2/htdocs.

Thanks for your time,

Joe
Hi Joe,

Can you serve an HTML page from the subfolder?

if the root of your server is //myServer (equating to 'C:/Program
Files/Apache Group/Apache2/htdocs')
you should put //myServer/sub1 into your browser address bar and this will
then call whatever is your defined default page , or add a specific page
name //myServer/sub1/mytest.php

You should also check that the document type settings in Apache that invoke
the PHP extensions may have to be enabled for additional directories - look
in the apache config file for php.

HTH

Ron
Sep 26 '06 #2

Ron Barnett wrote:
"joe" <gr*******@canada.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi,

I am new to both Apache and PHP. I have installed Apache 2.0.59 and PHP
5.1.6 on WinXP Home. I can run test.php page from default DocumentRoot
"C:/Program Files/Apache Group/Apache2/htdocs" but I have a
subdirectory "C:/Program Files/Apache Group/Apache2/htdocs/sub1" from
which I cannot run my test.php page.
If you want a solid install of Apache with PHP and various other linix
type tools, read...

http://web.torres.ws/walters_way/

It gives you detailed instructions on how to install these tools (in
about 15 mnutes) and how to make sure it all works properly.

One of the best things about this method of installation is that it
takes only a few minutes to back it up to CD and then even less time to
restore the setup if you need to!

Give it a try

Walter

Sep 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jon rogers | last post by:
Thanks for the advice I got, but I still cannot install PHP. >./configure --with-mysql --with-apxs2=/path/to/apxs2 > >http://uk.php.net/manual/en/install.apache2.php So what is my...
11
by: Markku Uttula | last post by:
I think I'm doing something wrong. I'm able to connect to Oracle just fine, execute queries and all, but I'm having serious problems with the speed :( For example, the following PHP-script on my...
5
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
0
by: Robert Mazur | last post by:
MySQL 5.0 alpha (binary install) on Solaris 9 -or- RedHat 8.0 mysql-connector-java-3.0.8-stable ----------------------- Should I expect to be able to connect to MySQL5.0 alpha with JDBC?...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
4
by: chris | last post by:
Hello all, I am having problems getting Apache 2.2.4 to read the php_mysqli.dll file some my C:\php\ext\ directory. The following is the error that Apache displays in the error log: PHP...
17
by: Johnny BeGood | last post by:
Hi All, Is there a way to post the contents of a form without having to click on the Submit button, i.e <form method="post" action="http://www.whereever.com/ProcessTheData.php"> <INPUT...
1
by: sethupnr | last post by:
when i'm using a simple JSP-mysql code it shows some HTTP status 500 error.But simple JSP program without databse is running , Please help how to solve this problem. I'm new to JSP. my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.