Images can't be showed!

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
zorek
-


Joined: 28 Oct 2003
Posts: 4

PostPosted: Tue Oct 28, 2003 11:23 pm    Post subject: Images can't be showed! Reply with quote

I installed Linux some time ago and now im trying to get my server up and running again. In Win XP i used Abyss too and hosted the exact same site and used Netscape there too. I installed it in Linux and it can show text, css, php and different colors and so on, but my images just don't work... Nither png, jpeg, gif nor bmp can be showed. My MIME for images is correct... What is wrong?

Using:
Abyss web server X1 for Linux
Red hat Linux 9.0 (with KDE 3.1)
Netscape 7.1 for Linux
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Oct 29, 2003 1:00 am    Post subject: Re: Images can't be showed! Reply with quote

What do you mean exactly by "don't work"? When you browse the URL of an image what do you get?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
zorek
-


Joined: 28 Oct 2003
Posts: 4

PostPosted: Wed Oct 29, 2003 3:00 pm    Post subject: Re: Images can't be showed! Reply with quote

If i go to a page with a image on the browser acts like the path to the pic is wrong. If i go directly to a to a imagefile I get " 500 internal server error".
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Oct 29, 2003 5:36 pm    Post subject: Re: Images can't be showed! Reply with quote

zorek,

These files have the executable bit set wrongly. That's why the server tries to run them as CGI application but fails and reports error 500.

You must open the command line and go to the directory (using the cd command) where these files are located and execute:

Code:
chmod -x *


Read http://www.aprelium.com/forum/viewtopic.php?t=1395 for a similar topic.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
zorek
-


Joined: 28 Oct 2003
Posts: 4

PostPosted: Fri Oct 31, 2003 2:39 pm    Post subject: Re: Images can't be showed! Reply with quote

thank you that really helped!

The only things wrong now is that I already got a quite big site with pics everywhare, and this only works in one folder, so if I am going to do this in all my folders it's going to take several hours...

is there any command to change all files of the same type?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Oct 31, 2003 5:10 pm    Post subject: Re: Images can't be showed! Reply with quote

zorek wrote:
thank you that really helped!

The only things wrong now is that I already got a quite big site with pics everywhare, and this only works in one folder, so if I am going to do this in all my folders it's going to take several hours...

is there any command to change all files of the same type?

Yes, cd to your htdocs path and run the command
Code:

chmod -R -x *.*

chmod will remove the executable bit in all the *.* files recursively. Please pay attention to the use of *.*. It is meant to no cause problems later. In fact if you invoke the command chmod -R -x *, directories are affected and you cannot cd into them later (the x bit for directories allows/denied directory browsing).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group