LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2009, 04:08 AM   #1
springertech
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Rep: Reputation: 0
index.php exists in the root, but when I try to access it, I get Page Not Found


Please help!!

I created two blogs using WordPress and defined the URL as the root directory. WordPress exists as a subdirectory in this root "/wordpress".

The root directory contains the file "index.php", but for some odd reason one blog is accessible at its root, but the other returns a Page Not Found error.

using an ftp client, I see the "index.php" file in the root, but when I try to access it via a browser - www.[blogname].com/index.php - I get that error.

Anybody have any ideas? It's driving me crazy and taking up way too much time.

Thanks,
Dave
 
Old 04-19-2009, 04:17 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Ok, So I am assuming you have a "/webroot" and a "/webroot/wordpress", you can see www.example.com/wordpress/index.php but can not see www.example.com/index.php and wish to know why? Can you see other files in www.example.com/ say if you placed an example.php with just "phpinfo();" in it?
 
Old 04-19-2009, 06:33 AM   #3
springertech
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 0
First off - thanks for answering!

I tried to access various files, as well as the one you suggested, with no luck. The only files that actually opens (it asks if I wish to save it) is "php.ini" and a file named, "favicon.ico".

I tried removing the index.php, changing it and I even copied it from the other site where it works.

Dave



Quote:
Originally Posted by r3sistance View Post
Ok, So I am assuming you have a "/webroot" and a "/webroot/wordpress", you can see www.example.com/wordpress/index.php but can not see www.example.com/index.php and wish to know why? Can you see other files in www.example.com/ say if you placed an example.php with just "phpinfo();" in it?
 
Old 04-19-2009, 11:08 AM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Ok, try seeing if the same files have the same problems in /wordpress if you do the actions in the same way. If they appear to work in /wordpress then their might just be a configuration problem in the apache configuration file.
 
Old 04-19-2009, 12:28 PM   #5
springertech
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Good start!

There is a text file called "license.txt" that opens up in the /wordpress directory, but does NOT open in the root.

I am not familiar with Apache, or settings. Would you be able to tell me what to look for?

Also, are you sure I have Apache in the first place?

Thanks again!!

Dave
 
Old 04-19-2009, 11:27 PM   #6
springertech
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 0
After reading up a bit, I think this may have something to do with a command named CHOWN?

This changes ownership, or something. I understand that my /wordpress directory should undergo "chown apache:apache" (I'm assuming this means ownership to apache, even though I don't know what that really means).

Do you think my root directory needs some redefining of ownership? If so, how do I do this?
How do I get into a screen in which I can even begin to write commands?

Thanks,
Dave
 
Old 04-20-2009, 04:07 AM   #7
springertech
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 0
One additional piece of information. The properties of the index.php file in the non-functioning blog root were different than in my functional blog's.

Nothing was marked in the 'Group' and 'Other' columns, whereas in the other, 'Read' was marked in both these groups.

After making the changes, however, still no luck.

Dave
 
Old 04-21-2009, 06:34 PM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
I would suggest if ownerships are the same for the files and they are identical then it's possibly an apache configuration error that is occuring. Just one last test, make a file say ~.test.htm and cp that to both directories and see if it's accessible when it's handled that way.

As /wordpress is seen I would doubt any permission errors on earlier folders but you never know...
 
Old 04-22-2009, 04:24 AM   #9
springertech
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 0
I tried a test html file and the behavior is definitely different in both directories (root vs. wordpress). The root directory returned a Page Not Found.

I'm pretty much at a wit's end. The support on Prouddomains wrote:

"The issue is due to the scripting of the website not being correct and is not an issue on our servers. Unfortunately we can not assist with an scripting issue. It is up to you to correct the errors in the scripting as well as move the files that would be required for WordPress to the appropriate folder for the site to function properly. For scripting help you will want to refer to your preferred search engine or forum. I apologize for any inconvenience."

Would you happen to understand that?

Dave
 
Old 04-22-2009, 06:37 AM   #10
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Not really, Might help to have the links for the blogs and I maybe able to figure out if I can see something wrong with it or not. Just as a question, is this your own server or not?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the default webpage configuration from index.php to index.htm, etc meema Linux - Server 4 08-22-2008 10:06 PM
Apache 404 index.php not Found but index.php exists at document root mark84 Linux - Server 20 07-27-2008 02:55 AM
apache index.html doesn't show up but index.php do zoffmann Linux - Server 5 01-28-2008 04:53 PM
Where to put index.php (or index.html) on Slackware 11.0 moonguide Slackware 3 05-08-2007 07:35 PM
Access Forbidden 403 for PHP info page. Kitara Linux - Software 5 05-24-2004 04:41 AM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration