LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-04-2008, 09:35 AM   #1
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Rep: Reputation: 15
Weird Apache path failure


Hi, all,

I'm running Wordpress 2.5.1 under Apache, I think version 1.3 (it's what was available when I set up the server in December.)

Wednesday, I had a power failure and the machine went down. When it came back up, everything appeared to be working. However, images in any post created after the failure now fail to appear, and the Apache error log notes an error every time somebody attempts to view a page created after the power failure that contains a graphic image of any sort. The error in the httpd/error_log indicates that an improper path is being prepended to the name of the image.

Note that this error never occurs on pages created before the power failure, unless I edit the older post to point to an absolute path -- then, the same error occurs, the server prepends the wrong path to the name of the image, and fails to find it.

The root directory for the Apache server, as coded into /etc/httpd/conf/httpd.conf, is supposed to be /var/www/html. The images are in a directory immediately beneath that, /var/www/html/images, and are coded in the Wordpress posts with a relative path: images/myimagename.jpg.

The errors I'm seeing are of two different kinds, which confuses the hell out of me: I would have expected a single, consistent error, wouldn't you? The errors are:

1) "File does not exist" pointing to "/var/www/html/wp-content/images/myimagename.jpg" (notice that "wp-content" has somehow gotten added to the prepend path);

and

2) "Permission denied" pointing to "/images/myimagename.jpg" (notice that the prepend path has now become "/" instead of "/var/www/html."

Also, when I go into an older post and change the image location to an absolute location, "/var/www/html/images/myimagename.jpg," the image vanishes from the post, and I get an error in the httpd.log thus:

"File does not exist: /var/www/html/var".

I've checked through /etc/httpd/conf/httpd.conf and don't see anything immediately wrong. I've also checked permissions on the various directories, and don't see anything immediately wrong.

Any ideas?

Thanks in advance.

Last edited by philwynk; 07-04-2008 at 09:37 AM. Reason: Improve problem description
 
Old 07-04-2008, 12:08 PM   #2
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Original Poster
Rep: Reputation: 15
Seriously...

...seriously, folks, it would be helpful if somebody with a bit more admin experience could give me some ideas where to look for files that might have been corrupted during the power failure. I'm not an experienced admin.
 
  


Reply

Tags
apache, path, wordpress


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
search path ($PATH) weird issue bricedebrignaisplage Linux - General 3 04-25-2007 04:41 AM
Weird FFMpeg compile failure rylan76 Linux - Software 3 12-23-2006 02:43 AM
apache path rickylim Linux - Software 4 04-18-2006 10:37 PM
Apache path and kde path questions darkraider Debian 1 11-12-2005 05:07 AM
Apache settup failure poortl9109 Linux - Software 6 12-24-2002 05:56 AM


All times are GMT -5. The time now is 03:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration