hosted by liquidweb


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

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: 15
*

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 !



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

  #3  
Old 05-07-2009, 06:36 PM
ServerManagement ServerManagement is offline
Platinum quality
 
Join Date: Jul 2005
Location: New Jersey, US
Posts: 1,351
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 and MOST TRUSTED 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.


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

  #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

  #6  
Old 05-10-2009, 07:38 PM
longvnit longvnit is offline
Newbie
 
Join Date: Aug 2008
Posts: 15
# 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

Related posts from TheWhir.com
Title Type Date Posted
Apache Market Share Falls in Netcraft October Web Server Survey Web Hosting News 2013-10-04 14:34:11
Apache Market Share Dips Slightly in June Netcraft Web Server Survey Web Hosting News 2013-06-06 13:40:21
Apache Continues to Dominate Web Server Market in Netcraft May Survey Web Hosting News 2013-05-06 14:29:02
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
CloudStack 4.0 Open Source Cloud Software Released as Apache Incubator Project Web Hosting News 2012-11-08 13:54: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?