hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Managed Hosting and Services : Problem with extenstion in Apache
Reply

Managed Hosting and Services Discussions on hosting and services offered by managed service providers. This includes reviews and general questions and answers about the managed services segment of hosting. Whether you purchased managed hosting or hired someone to manage your server, you're in the right place.
Forum Jump

Problem with extenstion in Apache

Reply Post New Thread In Managed Hosting and Services Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-07-2009, 04:02 AM
longvnit longvnit is offline
Newbie
 
Join Date: Aug 2008
Posts: 14
*

Problem with extenstion in Apache


I am using CentOS 5 , and installed apache server 2.2.8 , php 5.2.6

Set apache config : SAFE MODE ON

I have problem below :

When i upload some file , example : index.php.jpg , index.php.rar ... Then those execute like php script.

Please explain why ? and Fix ?

Thank you !

Reply With Quote


Sponsored Links
  #2  
Old 05-07-2009, 01:58 PM
longvnit longvnit is offline
Newbie
 
Join Date: Aug 2008
Posts: 14
please help me

Reply With Quote
  #3  
Old 05-07-2009, 06:36 PM
ServerManagement ServerManagement is offline
Platinum quality
 
Join Date: Jul 2005
Location: New Jersey, US
Posts: 1,302
It sounds like your mime types are set wrong if those files are executing as php scripts. Check your apache config and mime type config.

__________________
PlatinumServerManagement (also known as PSM)
The OLDEST and LARGEST server management provider in the USA, with 15+ employees and growing!
Providing quality support for OVER 14 years! Currently supporting over 3,000 servers monthly!

www.PlatinumServerManagement.com Proud member of the NJ BBB & Chamber of Commerce, and Authorized Cpanel Partner.


Reply With Quote
Sponsored Links
  #4  
Old 05-07-2009, 09:06 PM
longvnit longvnit is offline
Newbie
 
Join Date: Aug 2008
Posts: 14
In httpd.conf , i saw that it set : Mime.Types = /etc/mime.types
And exist file mime.types in /etc directory

Reply With Quote
  #5  
Old 05-10-2009, 03:55 PM
Nick Keefen Nick Keefen is offline
Newbie
 
Join Date: May 2009
Posts: 16
please show
grep -i handler httpd.conf
what PSM was talking about were type handlers, not mime types

Reply With Quote
  #6  
Old 05-10-2009, 07:38 PM
longvnit longvnit is offline
Newbie
 
Join Date: Aug 2008
Posts: 14
# Off) when the "server-status" handler is called. The default is Off.
# AddHandler allows you to map certain file extensions to "handlers":
#AddHandler cgi-script .cgi
#AddHandler send-as-is asis
AddHandler type-map var
# Format: Action handler-name /cgi-script/location
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
AddHandler type-map var
# SetHandler server-status
# SetHandler server-info

That is content, after i executed command grep -i handler httpd.conf. Please explain more about that problem ?
Thank u so much .


Last edited by longvnit; 05-10-2009 at 07:43 PM.
Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
The Apache Software Foundation Launches Hadoop v1.0 Web Hosting News 2012-01-05 18:29:16
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Patch Released for Apache Software DDoS Vulnerability Web Hosting News 2011-08-26 15:03:10


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?