Jump to content

500 internal server error by .htaccess


Ms SaiGon

Recommended Posts

Hi everybody,

 

When i setup joomla to heliohost.org, some setting must config:

 

Directive           Recommended       Actual
Safe Mode:                     Off    Off    
Display Errors:                 Off    On
File Uploads:                 On    On
Magic Quotes Runtime:         Off    Off
Register Globals:             Off    Off
Output Buffering:             Off    Off
Session Auto Start:         Off    Off

 

I use .htaccess to config:

 

AuthType Basic
AuthName "Secure Files"
AuthUserFile /*****/.htpasswd

php_flag safe_mode Off
php_flag display_errors Off
php_flag file_uploads On
php_flag magic_quotes_runtime Off
php_flag register_globals Off
php_flag output_buffering Off

 

after that bowser dispay error

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

 

But when i upload .htaccess to another host it don't have any problem and run very well.

 

and this's error log:

 

[Fri Oct 09 09:55:23 2009] [alert] [client 123.20.153.177] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://itcyb.co.cc/installation/index.php
[Fri Oct 09 09:55:23 2009] [alert] [client 123.20.153.177] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://itcyb.co.cc/installation/index.php
[Fri Oct 09 08:06:42 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://itcyb.co.cc/installation/index.php
[Fri Oct 09 08:06:42 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: http://itcyb.co.cc/installation/index.php
[Fri Oct 09 08:03:46 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:46 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:44 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:44 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:39 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:39 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:29 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:29 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:26 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Fri Oct 09 08:03:26 2009] [alert] [client 123.20.142.204] /home/mrbean/public_html/itcyb.co.cc/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

 

I think heliohost do not set mod php_flag.

how can i use it.

 

p/s: I don't want setup joomla by Fantastico.

Link to comment
Share on other sites

Well I know you can't use this flag

 

php_flag register_globals Off

 

Because register_globals is off by default anyway.

 

And I'm not sure about this one:

 

php_flag safe_mode Off

 

Have you tried using joomla without these flags?

 

php_flag safe_mode Off

php_flag display_errors Off

php_flag file_uploads On

php_flag magic_quotes_runtime Off

php_flag register_globals Off

php_flag output_buffering Off

 

 

Link to comment
Share on other sites

Well I know you can't use this flag

 

php_flag register_globals Off

 

Because register_globals is off by default anyway.

 

And I'm not sure about this one:

 

php_flag safe_mode Off

 

Have you tried using joomla without these flags?

 

php_flag safe_mode Off

php_flag display_errors Off

php_flag file_uploads On

php_flag magic_quotes_runtime Off

php_flag register_globals Off

php_flag output_buffering Off

 

Thank for your reply :)

flag safe_mode use secure your website, anti local hack if it's turn on. But you can not smooth install joomla and some extention. See more: http://www.php.net/manual/en/features.safe...e.functions.php

 

But in heliohost it turn off :)

 

I can using joomla without these flags above, but can not using without these flags:

php_value upload_max_filesize 20M
php_value memory_limit 16M

If without, I can't upload large file and can't use function create pdf for artical.

 

Who have anyone else ?

Link to comment
Share on other sites

OK, thank for your reply.

After install joomla complete it have some error, and i can't login to admin panel:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mrbean/public_html/itcyb.co.cc/administrator/includes/toolbar.php:507) in /home/mrbean/public_html/itcyb.co.cc/libraries/joomla/session/session.php on line 423

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mrbean/public_html/itcyb.co.cc/administrator/includes/toolbar.php:507) in /home/mrbean/public_html/itcyb.co.cc/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /home/mrbean/public_html/itcyb.co.cc/administrator/includes/toolbar.php:507) in /home/mrbean/public_html/itcyb.co.cc/libraries/joomla/session/session.php on line 426

If using php_value i will fix it by set session value path:

php_value session.save_path /public_html/itcyb.co.cc/custom/session_save_path 
php_value session.auto_start 1

But in Heliohost i can not fix by this way, how can fix it by other ways?

I look forward for your reply mr DjBob.

Link to comment
Share on other sites

Session value path error, i can't fix it

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mrbean/public_html/itcyb.co.cc/administrator/includes/toolbar.php:507) in /home/mrbean/public_html/itcyb.co.cc/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /home/mrbean/public_html/itcyb.co.cc/administrator/includes/toolbar.php:507) in /home/mrbean/public_html/itcyb.co.cc/libraries/joomla/session/session.php on line 426

 

Who can help me, please ?

Link to comment
Share on other sites

As the error says, you can't set session information once the server sends header information to the client. Your problem has nothing to do with session save paths, but rather content being sent to the client before you try and set your session.

 

Remember, your session has to come first before any output (or white space) on the requested page.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...