View previous topic :: View next topic |
Author |
Message |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Wed Mar 07, 2012 1:15 pm Post subject: apache .htaccess problem ? [solved] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
destroyedlolo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Wed Mar 07, 2012 2:04 pm Post subject: Re: apache .htaccess problem ? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tomk Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/21003072644c471d218211e.jpg)
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Wed Mar 07, 2012 2:27 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cwc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/214155964644256c4d3adfc.jpg)
Joined: 20 Mar 2006 Posts: 1402 Location: Tri-Cities, WA USA
|
Posted: Wed Mar 07, 2012 2:41 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|