473,698 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1285
"joe" <gr*******@cana da.comwrote in message
news:11******** *************@i 42g2000cwa.goog legroups.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*******@cana da.comwrote in message
news:11******** *************@i 42g2000cwa.goog legroups.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
2372
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 /path/to/apxs2 "Find file" on "apxs" does not reveal it. There is no /usr/local/apache2/bin/ on my system (RHLinux 9 box running Apache httpd
11
3309
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 machine executes about 6 seconds: <? $db_conn = ocilogon("my_username", "my_password", "my_database"); $loop_count = 1000;
5
27994
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 another servlet - bean - jsp but I am hitting an error from tomcat that I have no idea why it is failing. I am getting an org.apache.jasper.JasperException: with the root cause being java.lang.ClassNotFoundException:
1
6916
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
3278
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? When trying to connect I am getting: ** BEGIN NESTED EXCEPTION **
0
11698
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 java.sql.SQLException: Deadlock found when trying to get lock; Try restarting transaction message from server: "Lock wait timeout exceeded; try restarting transaction"; We get such errors generally on inserts or updates while applying a
4
2100
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 Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext/ php_mysqli.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 The file is in the directory, but Apache won't load the file.
17
2113
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 name="Field1" type="text"> <INPUT name="Field2" type="text"> <INPUT name="Field3" type="text"> <INPUT name="EsendexRecipient" type="text">
1
2144
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 configurations are... i installed j2sdk in C:\j2sdk1.4.2_16 then installed jakarte-tomcat in C:\Program Files\Apache Tomcat 4.0 folder copied mysql-connector-java-3.0.17-ga-bin.jar to C:\Program Files\Apache Tomcat 4.0\common\lib
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7728
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.