500 Internal Server Error
This is an open discussion with 11 replies, filed under Troubleshooting.
Search
If “installscript” refers to install.php, what is the “install-form” that you submitted?
When I install directly under localhost (http://localhost/symphony-2) I have to set RewriteBase to /symphony-2 for it to work properly.
yes sorry, the install-form is the install.php file. this contains a form which has to be submitted to complete the installation.
and “/symphony-2” in your case is in my one just “/” cause i mapped the virtual host to that dir:
<VirtualHost myLocalIp> ServerName myLocalIp DocumentRoot /home/userdir/public_html/projectdir/symphony-2 </VirtualHost>
I added this to my apache2.conf. (myLocalIp, userdir and projectdir are just placeholder)
btw my install-log.txt
============================================ Log Created: 2011-02-13T13:38:43+01:00 ============================================ Symphony Installer Log Opened: 2011-02-13T13:38:43+01:00 Version: 2.1.2 Domain: http://myLocalIp -------------------------------------------- 2011/02/13 13:40:42 > NOTICE: Configuration - Bad Document Root Specified: / ============================================ INSTALLATION PROCESS STARTED (2011-02-13T13:41:40+01:00) ============================================ 2011/02/13 13:41:40 > NOTICE: MYSQL: Establishing Connection...Done 2011/02/13 13:41:40 > NOTICE: MYSQL: Selecting Database 'dbName'...Done 2011/02/13 13:41:40 > NOTICE: MYSQL: Importing Table Schema...Done 2011/02/13 13:41:40 > NOTICE: MYSQL: Creating Default Author...Done 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'manifest' folder (/manifest) 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'logs' folder (/manifest/logs) 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'cache' folder (/manifest/cache) 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'tmp' folder (/manifest/tmp) 2011/02/13 13:41:41 > NOTICE: WRITING: Configuration File 2011/02/13 13:41:41 > NOTICE: CONFIGURING: Frontend 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'workspace' folder (/workspace) 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'data-sources' folder (/workspace/data-sources) 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'events' folder (/workspace/events) 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'pages' folder (/workspace/pages) 2011/02/13 13:41:41 > NOTICE: WRITING: Creating 'utilities' folder (/workspace/utilities) 2011/02/13 13:41:41 > NOTICE: Installation Process Completed In 1 sec ============================================ INSTALLATION COMPLETED: Execution Time - 1 sec (13.02.11 13:41:41) ============================================
///edit/// just saw this notice: 2011/02/13 13:40:42 > NOTICE: Configuration - Bad Document Root Specified: /
what does it mean? :o
Virtual host or not, the install log is telling you that you have a bad document root specified.
and what should I put in the there? it’s just a notice.. and my RewriteBase is ‘/’
well I also set my virtual host to ‘/home/userDir/public_html/project’ and setting ‘/symphony-2/’ as RewriteBase but it doesnt matter.
thats my browser-output then (http://myLocalIP/)
Index of / [ICO] Name Last modified Size Description Apache/2.2.16 (Ubuntu) Server at myLocalIp Port 80
and http://myLocalIp/symphony-2/ again:
Internal Server Error 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. Apache/2.2.16 (Ubuntu) Server at myLocalIp Port 80
… still 500 Internal Server Error
I don’t know much about a virtual host setup. Have you verified that Symphony installs correctly the plain vanilla way (http://localhost/symphony-2)?
VirtualHost setup needs changing, as your document root isn’t what it seems to be.
Firstly in the httpd.conf file, check the ServerName
directive. Is it the ip address of the machine? It should be, unless you have a DNS name resolving to this machine.
You need to then check the DocumentRoot
directive. This should not be the same as any Virtual Host you have set up, as it will conflict resulting in a 500 error. Set this to where you would like the default localhost files to serve from.
In your (most likely) virtualhost.conf file, you need to set up your Virtual Hosts like so…
NameVirtualHost: *:80 <VirtualHost *:80> ServerName yourservername DocumentRoot "/path/to/yourservername" <Directory "/path/to/yourservername"> AllowOverride ALL </Directory> </VirtualHost>
This is the most basic, but should help. What is your setup like at present?
ok, thanks for the information.
I tried to find the “virtualhost.conf” but there is none.. in /etc/apache2/ are just these files
-rw-r--r-- 1 root root 8215 2011-02-14 16:34 apache2.conf drwxr-xr-x 2 root root 4096 2011-02-12 13:15 conf.d -rw-r--r-- 1 root root 1169 2010-11-18 22:16 envvars -rw-r--r-- 1 root root 0 2011-02-12 13:15 httpd.conf -rw-r--r-- 1 root root 31063 2010-11-18 22:16 magic drwxr-xr-x 2 root root 4096 2011-02-12 19:14 mods-available drwxr-xr-x 2 root root 4096 2011-02-12 14:37 mods-enabled -rw-r--r-- 1 root root 750 2010-11-18 22:16 ports.conf drwxr-xr-x 2 root root 4096 2011-02-12 13:15 sites-available drwxr-xr-x 2 root root 4096 2011-02-12 13:15 sites-enabled
anyway I added the “directory” which you mentioned to my virtual host in apache2.conf and… now I dont get an 500 Internal Server Error, just a white page.
this is the virtualhost setup now
<VirtualHost myLocalIp:80> ServerName myLocalIp:80 DocumentRoot /home/userdir/public_html/project/symphony-2 <Directory /home/userdir/public_html/project/symphony-2> AllowOverride ALL </Directory> </VirtualHost>
before:
<VirtualHost myLocalIp> ServerName myLocalIp DocumentRoot /home/userdir/public_html/project/symphony-2 </VirtualHost>
here I got the 500 Internal Server Error.
now, I just have to get rid of the white page ;) perhaps someone of you got the similar problem. If I fix it myself, I ll let you know the solution
For my Ubuntu installation, virtualhost is defined in etc/apache2/sites-enabled/000-default.
Ah, it’s been a while since I used Ubuntu, I forgot that…
Where you have myLocalIp
, you need to replace this with a *
so that port 80 can be seen properly. You should only specify an ip address in the VirtualHost
Directive if you are running a multiple ip machine. Your ServerName
directive needs to be the name of the site, so if you have
http://myservername.local/
as the root to your Symphony install, then you will need
ServerName myservername.local
as the directive.
Hope this helps, and as @wisolman says, add your VirtualHost directives in the right file, to avoid conflicts.
ok, thanks for help!! :))
but this config still leads to a white page. anyway my server conf shouldnt be the problem no more.
I figured out that this line @ index.php causes the white-page:
$output = renderer($renderer)->display(getCurrentPage());
if I print_r() this and die() afterwards:
echo "<pre>"; print_r(renderer($renderer));die();
output:
Frontend Object ( [displayProfilerReport] => [Profiler] => Profiler Object ( [_starttime] => 1297856143.0705 [_records] => Array ( [0] => Array ( [0] => Engine Initialisation [1] => 0.0044560432434082 [2] => 1297856143.075 [3] => General [4] => [5] => 1846676 ) ) [_seed] => ) [Cookie] => Cookie Object ( [_index:Cookie:private] => sym- [_session:Cookie:private] => slcu0skpjo8apcgbld7c2kuqm6 [_timeout:Cookie:private] => 1209600 [_path:Cookie:private] => / [_domain:Cookie:private] => [_httpOnly:Cookie:private] => ) [Author] => [ExtensionManager] => ExtensionManager Object ( [_Parent] => Frontend Object *RECURSION* ) [_env] => Array ( ) [Database] => MySQL Object ( [_connection:MySQL:private] => Array ( [id] => Resource id #37 [host] => localhost [user] => ******* [pass] => ******* [port] => 3306 [database] => ******* [sym_prefix] => sym_ ) [_result:MySQL:private] => 1 [_lastResult:MySQL:private] => Array ( ) [_lastQuery:MySQL:private] => DELETE FROM `sym_sessions` WHERE `session_expires` <= '1296646543' OR `session_data` REGEXP '^([^}]+\|a:0:{})+$' [_affectedRows:MySQL:private] => [_insertID:MySQL:private] => [_dumpTables:MySQL:private] => Array ( ) [_client_info:MySQL:private] => 5.1.49 [_client_encoding:MySQL:private] => latin1 [_cache:MySQL:private] => [_logEverything:MySQL:private] => ) [Configuration] => Configuration Object ( [_properties:Configuration:private] => Array ( [admin] => Array ( [max_upload_size] => 5242880 ) [symphony] => Array ( [pagination_maximum_rows] => 17 [allow_page_subscription] => 1 [lang] => en [pages_table_nest_children] => no [version] => 2.1.2 [cookie_prefix] => sym- ) [log] => Array ( [archive] => 1 [maxsize] => 102400 ) [image] => Array ( [cache] => 1 [quality] => 90 ) [database] => Array ( [driver] => mysql [character_set] => utf8 [character_encoding] => utf8 [runtime_character_set_alter] => 1 [host] => localhost [port] => 3306 [user] => ******* [password] => ******* [db] => ******* [sym_prefix] => sym_ ) [public] => Array ( [display_event_xml_in_source] => no ) [general] => Array ( [useragent] => Symphony/2.1.2 [sitename] => Symphony CMS ) [file] => Array ( [write_mode] => 0775 ) [directory] => Array ( [write_mode] => 0775 ) [region] => Array ( [time_format] => H:i [date_format] => d F Y [timezone] => Europe/Berlin ) ) [_forceLowerCase:Configuration:private] => 1 ) )
so.. It seems that the called function “display(getCurrentPage());” of the object throws the white page..
indeed I set errorreporting to EALL but no errors are shown.
any suggestions? ;) Ill keep fixin it^^ let u know if I got the problem.
ok, just fixed it. the white page, was an 404.. and the template couldnt be found.
Create an account or sign in to comment.
hi,
I setup my apache, mysql and everything needed for symphony.
The installscript worked fine (tables, workspace, .htaccess etc. are created) but after submitting the install-form an internal server error occured.
at first I thought it could belong to my apache user dir.
then I created a virtualhost that matches this dir to root. so symphony-2 is executed if typing “http://mylocalip/” in my browser.
I started the install.php again and everything was also created, but the error still occured.
the .htaccess file created now:
I am sure that mod_rewrite is enable ‘cause I use it in other projects and it appears in phpinfo()
I tried to locate the error. if I delete the .htaccess I am able to die() in the index.php so the problem has to be something with the rewrite base/rules. But I donno what to try next.
It would be great if someone of you got some suggestions to get rid of this error and start working with symphony :)
thanks a lot, wild