HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   ISPConfig 3 + .htaccess (http://www.howtoforge.com/forums/showthread.php?t=36653)

vikmur 17th June 2009 15:55

ISPConfig 3 + .htaccess
 
Hi,
Maybe someone would be kind enough to help solve out a problem. With ISPConfig 3 installed I can't use .htaccess files, as if it's in server's root directory, pointing to website brings out this kind of error:
Quote:

Internal Server Error

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

Please contact the server administrator, webmaster@********************* 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.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2008-08-11) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at ******************* Port 80
After deletion of .htaccess file everything works just fine....

fhawk 17th June 2009 16:03

show your .htaccess!!

vikmur 17th June 2009 16:34

Quote:

ns1:~# cat /var/www/**********/web/.htaccess
php_flag magic_quotes_gpc off
php_flag register_globals off
ns1:~#
Even tho it can be empty have rewrite rules or whatever of text in it, result is still the same....

That's why I didn't post .htaccess file before :P

fhawk 17th June 2009 16:59

you try:
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag register_globals off
</IfModule>

vikmur 17th June 2009 18:03

Same result: Error 500 ...

Croydon 17th June 2009 18:04

Please post the corresponding entries in the apache error log.

vikmur 17th June 2009 18:07

error.log:

Quote:

[Wed Jun 17 19:02:33 2009] [alert] [client 88.x.x.x] /var/www/*********/web/.htaccess: php_flag not allowed here

Croydon 17th June 2009 18:12

For security reasons you cannot change php settings via .htaccess as a client.
Imagine you were a hosting provider with 100 clients where each client could break out of his limits by setting php flags ;)

vikmur 17th June 2009 18:16

Imagine, that this is exact what I need to do... many different sites, with different requirements of php flags...

Croydon 17th June 2009 18:24

Quote:

Originally Posted by vikmur (Post 194902)
Imagine, that this is exact what I need to do... many different sites, with different requirements of php flags...

Yes but you should not let the clients set them theirselves.
Maybe you could use the "Options" tab in a site's settings page as admin.
There you can define apache directives (like php flags).


All times are GMT +2. The time now is 21:22.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.