Shadowing Posted May 2, 2012 Share Posted May 2, 2012 Hey guys ive been using XAMPP locally on my desktop for 6 months but now i switched to a VPS that I manage my self I have everything up and running accept for some reason I cant display image files or CSS url back ground pictures. is there some sort of setting that I need to have turned on or something? im running it on ubuntu 10.04 <img class="stargate" src="/images/stargate/1.gif" alt="chevron 1" /> www.stargatesystemlords.com/signup.com Link to comment https://forums.phpfreaks.com/topic/261931-images-are-not-working/ Share on other sites More sharing options...
PFMaBiSmAd Posted May 2, 2012 Share Posted May 2, 2012 Unfortunately, Apache on case-sensitive operating systems causes URL's to be case-sensitive. You need to use the exact same capitalization as your folders names in any link/url - Images I would recommend using all lower-case for folders and file names. P.S. You have options indexes on, which allows directory browsing (browse to any folder path.) You also don't have a default document in your root folder. You need a .htaccess file with Options -Indexes to prevent directory browsing. Link to comment https://forums.phpfreaks.com/topic/261931-images-are-not-working/#findComment-1342180 Share on other sites More sharing options...
Shadowing Posted May 2, 2012 Author Share Posted May 2, 2012 thats amazing problem solving PfMaBiSmAd lol that fixed it. yah i use lowercase for everything even php variables and stuff. but for some reason i named two folders starting with a capital letter lol. thanks you alot. i have one picture not displaying still trying to figure out why. maybe cause the picture name is 0.gif. going to try something else Link to comment https://forums.phpfreaks.com/topic/261931-images-are-not-working/#findComment-1342184 Share on other sites More sharing options...
Shadowing Posted May 2, 2012 Author Share Posted May 2, 2012 i made a file and put a header on it so now my domain default goes to signup.php not sure what a .htaccess file is going to have to google that. Link to comment https://forums.phpfreaks.com/topic/261931-images-are-not-working/#findComment-1342185 Share on other sites More sharing options...
Shadowing Posted May 2, 2012 Author Share Posted May 2, 2012 ahh I figured out why that last picture wouldnt load for some reason absolute paths are not working for my image src http://www.stargatesystemlords.com/images/0.php same thing with my external style sheets. any idea why apache 2 is doing that? Link to comment https://forums.phpfreaks.com/topic/261931-images-are-not-working/#findComment-1342187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.