Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache .htaccess problem ? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Wed Mar 07, 2012 1:15 pm    Post subject: apache .htaccess problem ? [solved] Reply with quote

I'm running Apache and I want to change my php variables using .htaccess.

eg: upload_max_filesize = 50M


I set .htaccess to
$chmod +x .htaccess

Here is my error: at: http://71.80.154.239/stream/
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache Server at 71.80.154.239 Port 80

I set this in the httpd.conf file


<Directory /home/cwc/html>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

I know I might need to set this at 00_default_ssl_vhost.conf
But I thought I'd give it a try at httpd.conf

Any ideas?
_________________
Without diversity there can be no evolution:)


Last edited by cwc on Sun Apr 01, 2012 12:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Wed Mar 07, 2012 2:04 pm    Post subject: Re: apache .htaccess problem ? Reply with quote

Hi,

There is strictly no need having .htaccess executable. It's also a security hole especially if part of your web tree and if you're allowing uploading.

Now the "internal error" message is for visitor only.
Have a look in Apache's error.log for a full explanation of what it doesn't like :)
Most of the time, Apache is really explicit.

Let us know ...
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed Mar 07, 2012 2:27 pm    Post subject: Reply with quote

How are you trying to set the php variable in .htaccess? It needs to be done with php_value or php_flag as explained here. E.g.

Code:
php_value upload_max_filesize 50M

_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Wed Mar 07, 2012 2:41 pm    Post subject: Reply with quote

tomk wrote:
How are you trying to set the php variable in .htaccess? It needs to be done with php_value or php_flag as explained here. E.g.

Code:
php_value upload_max_filesize 50M


That solved the problem.


Thank you very much. This is my test sever:)
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
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