Jump to content

Recommended Posts

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

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.

 

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

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.