Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Linux Help

Linux Help Post any question relating to Linux here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-03-08, 01:57 PM
Junior Member
 
Join Date: Mar 2006
Posts: 1
faisy_master
Default

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:
<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:
<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.
Reply With Quote
  #2 (permalink)  
Old 2006-03-16, 10:13 PM
Senior Member
 
Join Date: Dec 2004
Posts: 199
strasm is an unknown quantity at this point
Default

I have a couple thoughts, first I'll start with the obvious, linux is case sensitive and windows is not. file.jpg is not the same as File.jpg.

I am guessing you know that and have checked it already. What does your apache log files say? (usually found in /var/log/httpd/) check the access and the error and see if you can see it.

Do you have SELinux running? If so disable it from protecting apache and see if it works.

Make sure you the user running apache, (usually either httpd, apache or nobody) has permissions to read the file (755).
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:21 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.