Why is Apache looking for images in all the wrong places?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why is Apache looking for images in all the wrong places?
Hi, folks,
My tiny web server was running my dinky little blog just fine until the power went out yesterday morning for about 3 seconds. Since the power came back, I can't get images to display, because the Apache server keeps looking for them in the wrong directory.
The blog is running Wordpress 2.5.1, which is basically all php, and I think I'm running Apache 1.3, but maybe my yum updates have upgraded it, I don't know. Images in the posts are coded with a relative path: "images/myimagename.jpg". The root directory for the blog is /var/www/html, and it's coded that way in /etc/httpd/conf/httpd.conf. Nothing would be running if that weren't right, correct? So Apache must be reading the .conf file.
However, whenever somebody attempts to read a blog page (including me), the text appears, the sidebars show up, the masthead logo shows up, but the images in the posts don't appear, and the error_log in /var/log/httpd reflects another error, usually this:
So, for some reason Wordpress has decided to try to read the images as though "/" was its root directory.
I can't get anybody at Wordpress to reply to my queries (the sons of bitches) so I'm asking here, 'cause I've been banging my head against this all freakin' day, and I cannot for the life of me find out why wordpress wants to read the images from "/".
Please. I'm begging. I'll freaking PAY MONEY. I need to get this fixed. Please.
Pardon my ignorance, but is there some easy way to get a liveCD? I tried booting off my Fedora Core 8 install disk, but was unable to run fsck from the prompt it gave me. When I try running fsck from the mounted filesystem, I get dire warnings about doing SEVERE damage to the filesystem.
I'll go google "liveCD Fedora" but in the meantime, any suggestions? THanks.
[root@localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
I very stupidly didn't partition my hard drive like a normal UNIX system when I set this up, so now I'm stuck with one huge-o partition running gust about everything. Dumb, I know. I'll do better next time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.