Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

question from a newbie

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  cant read php4 files  
Author Message
user2724

External


Since: Mar 26, 2004
Posts: 2



(Msg. 1) Posted: Fri Mar 26, 2004 9:44 pm
Post subject: question from a newbie
Archived from groups: alt>apache>configuration (more info?)

I'm a complete PHP virgin i'm afraid, and have as far as i'm aware installed
apache and php. i have also downloaded a PHP programming environment called
PHP Coder Pro!

But on attempting to run any program i am given the message "The current
file is not located in a Web Server Document Root subpath. Thus it cannot be
accessed by the webserver! Please save this file in a Document Root sub
path."

Someone told me to save program files in the "DocumentRoot" heading given in
the Apache configuaration file. The folder given was contained in the Apache
Group folder and was called 'htdocs'. I have tried this but still get the
same
message.

I am running Windows XP by the way. Also I think I read somewhere to not
install Apache in the Program Files folder, but rather in the main C: drive.
I may have saved it in the Program files - does this make a big difference?
Could this be the source of the problem?

Any help appreciated.

Jeremy

 >> Stay informed about: question from a newbie 
Back to top
Login to vote
kkrolski

External


Since: Mar 26, 2004
Posts: 5



(Msg. 2) Posted: Sat Mar 27, 2004 2:48 am
Post subject: Re: question from a newbie [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am also a new at this. Just a few minute ago I solved the problem on my
computer.

I am using DzSoft to write php script and wanted to use Apache for a server.

In DzSoft the root script is: c:\apache2 (notice no \after apache).

You can find the location of ServerRoot in apache2\conf\httpd.conf in
Section 1 ServerRoot "C:/Apache2"
Also look in Section 2 for ServerName localhost:8080

Be careful about these suggestions. I have not been able to actually open a
page.

Upon running a php file, the browser opens, and I get a 404 file not found
error. If you click on localhost on the page.
a.. Open the localhost home page

The next screen says the apache installation was successful. Finally!!!!!

Now I am working on getting a page to open. It probably is in the cong
file. Still looking.

Before opening a file, the file you are opening must in in the apache2
directory or one of the subdirectories.

Good luck


"Jeremy Watts" <jeremy.watts70 RemoveThis @ntlworld.com> wrote in message
news:ZQ_8c.6$331.0@newsfe1-win...
 > I'm a complete PHP virgin i'm afraid, and have as far as i'm aware
installed
 > apache and php. i have also downloaded a PHP programming environment
called
 > PHP Coder Pro!
 >
 > But on attempting to run any program i am given the message "The current
 > file is not located in a Web Server Document Root subpath. Thus it cannot
be
 > accessed by the webserver! Please save this file in a Document Root sub
 > path."
 >
 > Someone told me to save program files in the "DocumentRoot" heading given
in
 > the Apache configuaration file. The folder given was contained in the
Apache
 > Group folder and was called 'htdocs'. I have tried this but still get the
 > same
 > message.
 >
 > I am running Windows XP by the way. Also I think I read somewhere to not
 > install Apache in the Program Files folder, but rather in the main C:
drive.
 > I may have saved it in the Program files - does this make a big
difference?
 > Could this be the source of the problem?
 >
 > Any help appreciated.
 >
 > Jeremy
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: question from a newbie 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Newbie Question - I am new to unix and apache so please bon't beat me up, but I am trying to figure out something. How does apache2 know how to load index.html.en as the default document, as opposed to index.html.de - or .fr - or some other file? Trying to learn -..

newbie question - I'd like to create a login page for my website. I already have a list of logins and passwords for individuals that will have access. How do I go about create a file with that information to authenticate logins that apache can use? How do I go about..

Pre-Newbie Question - Hello Thanks for considering this question, and thanks in advance for redirection if this is an inappropriate forum. I'm seriously considering dropping my hosting service in favor of hosting my site on my own through my Red Hat Linux desktop. I have a...

And yet another newbie with a question - I've got Redhat 9 and am trying to configure Apache 2.0, (rpm dist from Redhat). In my /var/www/mckenzie/conf I have a file httpd.conf with the following: User apache Group apache DocumentRoot "/var/www/mckenzie/htdocs" ServerRoot "/var/ww...

newbie question Server won't allow - Installed apache 2. Can view test page in browser. Trying to set up access in DreamWeaver but when trying to connect get message that action could not be completed because not allowed by server. Dreamweaver installed on same machine as the server. Not..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]