Apache Server - PHP - in Linux - Page Image not Shown

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
faisy_master
Forum Newbie
Posts: 10
Joined: Sun Aug 21, 2005 1:29 am

Apache Server - PHP - in Linux - Page Image not Shown

Post by faisy_master »

Hi All,

I am using Apache Server to run my site with PHP - MySQL in the Linux OS.

First of all, allow me to clarify th history that the site was tested with IIS when developed and was in Windows Environment. Now I have gone insane and trying to run it in Linux OS with Apache Server.

With the few changes incorporated, everything runs fine, sessions, db .... but I don't know what happened to the Images. I have tried (relentlessely may be the right word) ... but all in vain !

For example, here is a one <img> tag of the page ...

Code: Select all

<img name="home_r1_c1" src="../images/home_r1_c1.gif" width="773" height="40" border="0" alt="">

Image is at the right place ... but it never shows ..... Even [images/home_r1_c1.gif] or [../../images/home_r1_c1.gif] didn't work when I placed the image at the different places.

Alternatively, if I do as :-

Code: Select all

<img name="home_r1_c1" src="/opt/lampp/htdocs/wwwroot/portal/images/acume.gif" width="773" height="40" border="0" alt="">
It shows the images happily ... would please someone help me out here !!!
Thanks in advance.
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

sounds like your apache is configured VERY insecurely, as your DocumentRoot (web root) appears to be the same as your file system root. It is important that you understand the difference between file system location and path on the web site.

You dont say which apache version (nor package/distro), generally it should be a httpd.conf somewhere and you have that config somewhere in thar area, obveiously you have altered it as there is no way any apache source or distro would have / as the document root.
Post Reply