Ms SaiGon Posted October 9, 2009 Posted October 9, 2009 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.
Byron Posted October 9, 2009 Posted October 9, 2009 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
Ms SaiGon Posted October 9, 2009 Author Posted October 9, 2009 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 ?
Ashoat Posted October 10, 2009 Posted October 10, 2009 You can't use php_value directives in HelioHost .htaccess files, as we have our PHP compiled under suPHP.
Ms SaiGon Posted October 10, 2009 Author Posted October 10, 2009 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.
Ms SaiGon Posted October 10, 2009 Author Posted October 10, 2009 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 ?
rvt Posted October 12, 2009 Posted October 12, 2009 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now