Page 1 of 1

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

Posted: Wed Mar 08, 2006 11:45 pm
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.

Posted: Sun Mar 19, 2006 11:44 pm
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.