Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: PNG and SWF support
PostPosted: Sat Jan 19, 2013 7:36 pm 
Offline
Newbie

Joined: Sat Jan 19, 2013 7:27 pm
Posts: 2
I have installed Centos 6.2(32 bit) to my linode and updated it. Installed apache,php and mysql with phpmyadmin. All working well.
Accept when I upload a png image via ftp it doesnt show on the page. I download the uploaded png and try to open it. It says unknown file type.
I used 3 different ftp programs with ascii and binary mode still no luck. Then I used wget to download the png from another server. Still png is corrupted.
Same with flash files with .swf extension.

Then I installed fedora no luck, ubuntu no luck. Still no png support. I went back to Centos.

I dont think it is an apache issue. Somehow linux corrputs the file that is uploaded.

Any suggestions to solve this appreciated....


Top
   
 Post subject: Re: PNG and SWF support
PostPosted: Mon Jan 21, 2013 10:03 am 
Offline
Newbie

Joined: Sat Jan 19, 2013 7:27 pm
Posts: 2
Solved. Firstly the original png files were corrupted. Second need to set :
EnableMMAP off
EnableSendfile off

in the /etc/httpd/conf/httpd.conf file


Top
   
 Post subject: Re: PNG and SWF support
PostPosted: Mon Jan 21, 2013 1:07 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Enabling those options should not be required, and will have a large negative performance impact for serving static content.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group