New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Server Error - .htaccess (Trac #673) #673
Comments
trac user marcus wrote on 39035707-03-01 I'm not able to replicate this, could you give me some data as to your server configuration? |
trac user cloo wrote on 39038534-03-29 I get like that immediatly after submitting database data in installer. error message:The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] 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. |
trac user RationalRabbit wrote on 39039763-10-30 Here's my PHPInfo file, followed by .htaccess, followed by settings.php PHP Logo System Linux 2.6.9-023stab043.1-enterprise #1 SMP Mon Mar 5 16:58:09 MSK 2007 i686 Zend logo This program makes use of the Zend Scripting Language Engine: PHP Credits apache Directive Local Value Master Value Apache Environment SERVER_SOFTWARE Apache/1.3.41 (Unix) mod_deflate/1.0.21 PHP/5.2.6 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2634a mod_ssl/2.8.31 OpenSSL/0.9.7a GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING no value REQUEST_URI /pi.php SCRIPT_NAME /pi.php HTTP Headers Information bcmath bz2 calendar ctype curl date Directive Local Value Master Value dba dom exif filter Directive Local Value Master Value ftp gd gettext hash iconv Directive Local Value Master Value imap json ldap libxml mbstring mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Directive Local Value Master Value mcrypt Directive Local Value Master Value mhash ming mysql Directive Local Value Master Value mysqli Directive Local Value Master Value NuSphere PhpExpress Directive Local Value Master Value openssl pcre Directive Local Value Master Value PDO pdo_sqlite posix pspell Reflection session Directive Local Value Master Value SimpleXML soap Directive Local Value Master Value sockets SPL SQLite Directive Local Value Master Value standard Directive Local Value Master Value sysvmsg tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend Optimizer zip zlib Directive Local Value Master Value Additional Modules Environment PHP Variables _SERVER["SERVER_SOFTWARE"] Apache/1.3.41 (Unix) mod_deflate/1.0.21 PHP/5.2.6 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2634a mod_ssl/2.8.31 OpenSSL/0.9.7a _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_URI"] /pi.php _SERVER["SCRIPT_NAME"] /pi.php _SERVER["PATH_TRANSLATED"] /home/buddy/public_html/pi.php _SERVER["PHP_SELF"] /pi.php _SERVER["REQUEST_TIME"] 1231912417 _ENV["SELINUX_INIT"] YES _ENV["CONSOLE"] /dev/null _ENV["TERM"] linux _ENV["INIT_VERSION"] sysvinit-2.85 _ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin _ENV["RUNLEVEL"] 3 _ENV["runlevel"] 3 _ENV["PWD"] / _ENV["LANG"] C _ENV["PREVLEVEL"] N _ENV["previous"] N _ENV["HOME"] / _ENV["SHLVL"] 2 ENV[""] /usr/local/apache/bin/httpd PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact licensephp.net. apache Directive Local Value Master Value Apache Environment SERVER_SOFTWARE Apache/1.3.41 (Unix) mod_deflate/1.0.21 PHP/5.2.6 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2634a mod_ssl/2.8.31 OpenSSL/0.9.7a GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING no value REQUEST_URI /pi.php SCRIPT_NAME /pi.php HTTP Headers Information bcmath bz2 calendar ctype curl date Directive Local Value Master Value dba dom exif filter Directive Local Value Master Value ftp gd gettext hash iconv Directive Local Value Master Value imap json ldap libxml mbstring mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Directive Local Value Master Value mcrypt Directive Local Value Master Value mhash ming mysql Directive Local Value Master Value mysqli Directive Local Value Master Value NuSphere PhpExpress Directive Local Value Master Value openssl pcre Directive Local Value Master Value PDO pdo_sqlite posix pspell Reflection session Directive Local Value Master Value SimpleXML soap Directive Local Value Master Value sockets SPL SQLite Directive Local Value Master Value standard Directive Local Value Master Value sysvmsg tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend Optimizer zip zlib Directive Local Value Master Value Additional Modules Elgg htaccess directivesCopyright Curverider Ltd 2008License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2Link http://elgg.org/<IfModule !mod_rewrite.c> <Files "htaccess-dist"> Don't listing directoryOptions -Indexes Follow symbolic linksOptions +FollowSymLinks Default handlerDirectoryIndex index.php Turn on expiryExpiresActive On ExpiresDefault "access plus 10 years"php 4, apache 1.xErrorDocument 500 "Elgg error: Elgg does not support PHP 4." RedirectMatch 302 .\* index.phpphp 4, apache 2ErrorDocument 500 "Elgg error: Elgg does not support PHP 4." RedirectMatch 302 .\* index.phpphp 5, apache 1 and 2# default memory limit to 64Mb php_value memory_limit 64M # to make sure register global is off php_value register_globals 0 # max post size to 8Mb php_value post_max_size 8388608 # upload size limit to 5Mb php_value upload_max_filesize 5242880 # hide errors, enable only if debug enabled php_value display_errors 0Turn on mod_gzip if availablemod_gzip_on yes mod_gzip_dechunk yes mod_gzip_keep_workfiles No mod_gzip_minimum_file_size 1000 mod_gzip_maximum_file_size 1000000 mod_gzip_maximum_inmem_size 1000000 mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/javascript$ mod_gzip_item_include mime ^application/x-javascript$ # Exclude old browsers and images since IE has trouble with this mod_gzip_item_exclude reqheader "User-Agent: ._Mozilla/4.._[" mod_gzip_item_exclude mime ^image/.*The section below is causing Internal Server error so commented outApache2 deflate support if available# AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascriptBrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4.0[svn:678] no-gzipBrowserMatch \bMSIE !no-gzip !gzip-only-text/html# Configure ETags<FilesMatch ".(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf)$"> RewriteEngine on If Elgg is in a subdirectory on your site, you might need to add a RewriteBase linecontaining the path from your site root to elgg's root. e.g. If your site ishttp://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need#RewriteBase /sites/elgg/ here, only without the # in front.If you're not running Elgg in a subdirectory on your site, but still getting lotsof 404 errors beyond the front page, you could instead try:#RewriteBase / RewriteRule ^action/([A-Za-z_-/]+)$ engine/handlers/action_handler.php?action=$1 RewriteRule ^export/([A-Za-z]+)/([0-9]+)$ services/export/handler.php?view=$1&guid=$2 RewriteRule ^_css/css.css$ _css/css.php RewriteRule ^pg/([A-Za-z_-]+)/(.*)$ engine/handlers/pagehandler.php?handler=$1&page=$2 RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php *********************** settings.php ****************************** dbuser = '(removed)'; // Database password $CONFIG->dbpass = '(removed)'; // Database name $CONFIG->dbname = '(removed)'; // Database server // (For most configurations, you can leave this as 'localhost') $CONFIG->dbhost = 'localhost'; // Database table prefix // If you're sharing a database with other applications, you will want to use this // to differentiate Elgg's tables. $CONFIG->dbprefix = 'elgg'; /* * Multiple database connections * * Here you can set up multiple connections for reads and writes. To do this, uncomment out * the lines below. */ /* // Yes! We want to split reads and writes $CONFIG->db->split = true; // READS // Database username $CONFIG->db['read']->dbuser = ""; // Database password $CONFIG->db['read']->dbpass = ""; // Database name $CONFIG->db['read']->dbname = ""; // Database server // (For most configurations, you can leave this as 'localhost') $CONFIG->db['read']->dbhost = "localhost"; // WRITES // Database username $CONFIG->db['write']->dbuser = ""; // Database password $CONFIG->db['write']->dbpass = ""; // Database name $CONFIG->db['write']->dbname = ""; // Database server // (For most configurations, you can leave this as 'localhost') $CONFIG->db['write']->dbhost = "localhost"; */ /* * For extra connections for both reads and writes, you can turn both * $CONFIG->db['read'] and $CONFIG->db['write'] into an array, eg: * * $CONFIG->db['read'][svn:0]->dbhost = "localhost"; * * Note that the array keys must be numeric and consecutive, i.e., they start * at 0, the next one must be at 1, etc. */ /** * Memcache setup (optional) * This is where you may optionally set up memcache. * * Requirements: * 1) One or more memcache servers (http://www.danga.com/memcached/) * 2) PHP memcache wrapper (http://uk.php.net/manual/en/memcache.setup.php) * * Note: Multiple server support is only available on server 1.2.1 or higher with PECL library > 2.0.0 */ //$CONFIG->memcache = true; // //$CONFIG->memcache_servers = array ( // array('serve[svn:1]', 11211), // array('serve[svn:2]', 11211) //); /** * Url - I am not sure if this will be here ? **/ // URL $CONFIG->url = ""; ``` ?> |
trac user marcus wrote on 39040300-04-03 Hrrm... there seems to be nothing obvious going on here. I would suggest that since we can't replicate it and that nobody else to my knowledge has reported this issue that it may be something specific to your configuration. If disabling mod_deflate works for you I suggest you do that. It sounds like, if this is the case, that it may be something to do with the deflate configuration that is causing the fault. Might be worth seeing if there's an upgraded version. |
trac user marcus wrote on 39158031-02-10 Out of interest, what OS are you running - if linux, what distro and version? |
Original ticket http://trac.elgg.org/ticket/673 on 39034426-01-18 by trac user RationalRabbit, assigned to unknown.
Elgg version: 1.2
The following section in .htaccess causes a non-specific Internal Server Error on my server:
The text was updated successfully, but these errors were encountered: