Board index   FAQ   Search  
Register  Login
Board index System Administration Server installation and configuration

Doubt in Apache AddType directive.

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

Doubt in Apache AddType directive.

Postby gesf » Fri Dec 02, 2005 2:38 am

Hello my people!

I got Apache/1.3.34 installed as CGI.
I have this code to assign other file extensions for PHP script:
Code: Select all
AddType application/x-httpd-php .php .class .inc .check .rdf .error
In the old server (Apache API), this was working great.

The problem here is that the files being include like: .class, .inc, .check are working, but the other ones (.rdf, .error) that are called directly from the URL doesn't get recognized by Apache, where i get an "Internal Server Error" error.

Can someone help me solving this issue?
Thank you
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby gesf » Tue Dec 27, 2005 9:35 am

knock knock knock!
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby Redcircle » Tue Dec 27, 2005 6:28 pm

*cough* change hosts *cough*
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby ruturajv » Wed Dec 28, 2005 8:21 pm

u can check the error_log of your Apache server, will give you the exact problem
Or check the spelling u've actually put in the config
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby gesf » Thu Dec 29, 2005 4:51 pm

You got it Redcircle :D But i won't do it... not again...!
I already did what you said ruturajv, don't remember now with what i came up, but i know... it didn´t helped.
But now it's seems i shoud check it again... to make sure! :)
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby ruturajv » Thu Dec 29, 2005 8:27 pm

u must have added the config in httpd.conf and restarted Apache (as expected)
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby gesf » Thu Dec 29, 2005 11:18 pm

I can't do that :)
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby ruturajv » Sun Jan 01, 2006 8:33 pm

gesf wrote:I already did what you said ruturajv, don't remember now with what i came up, but i know... it didn´t helped.

check it ... that will lead the raod.
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby ruturajv » Mon Jan 02, 2006 8:11 pm

gesf,
i recommend u not to use .class .inc .check .rdf .error as php files instead..
use something like this

Code: Select all
classname.class.php
common-functions.inc.php
...etc.
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby gesf » Tue Jan 03, 2006 5:48 pm

Yeh... seems there's no way out!
But... are you talking about security aspects !?
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby ruturajv » Tue Jan 03, 2006 8:54 pm

gesf wrote:Yeh... seems there's no way out!
But... are you talking about security aspects !?

nay...
just a naming convention, all that ends with .php is a PHP script, a .class.php is a PHP Class script and so on...
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby gesf » Tue Jan 03, 2006 9:53 pm

Yeh i know.... just wanted to be different :D
Also all my text/php editors are prepared to assume that extensions as PHP :)
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden


Return to Server installation and configuration

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.