Upgrade to Trunk results in Server error 500
-
Upgraded to Trunk today using SVN as directed by instructions here:
All looked to go well until I did a reboot and attempted to log into the management console. Upon so doing, I was presented with a Server error 500 : “The website encountered an error while retriving http://xxxxxxxx/fog/management/index.php”
Any out-of-the-gate ideas/quick remedies?
-
Pretty sure this isn’t a forum issue (I will move it.)
Please re-update and try again.
Sorry.
-
If updating and re-running the installed does not work for you then we need more information! When you load the page and get the 500 HTTP error see what you have in the apache error log /var/log/apache2/error.log (Debian/Ubuntu) or /var/log/httpd/error_log (RHEL/CentOS/Fedora)…
-
Pretty sure this is fixed, and I’m going to solve this now. I say it is solved because I am pretty sure many more would still be seeing and reporting this if it indeed were still throwing an issue.
-
var/log/Apache2/error.log
PHP Deprecated: Comments starting with ‘#’ are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Sun Mar 20 06:42:20 2016] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.30 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k configured – resuming normal operations
[Mon Mar 21 08:43:28 2016] [error] [client 192.168.0.216] PHP Parse error: syntax error, unexpected ‘[’ in /var/www/fog/lib/fog/fogftp.class.php on line 40 -
I’m going to guess the FOG account has some odd characters in its password.
-
No, this install is still utilizing default login/pw.
-
@Mark-M. The WebGUI login is not the same as the fog user account on the linux FOG server. That password is randomly generated, although I don’t believe it is allowed to generate characters that allows it to break itself, but you never know.
Check /opt/fog/.fogsettings for your FTP password
-
@Mark-M. Which version of FOG are you using (see in the blue cloud on the web interface!). Please let us know the exact 4 digit number. As well which version of php is installed?
dpkg -l | grep php
(Debian/Ubuntu) orrpm -qa | grep php
(CentOS/Fedora/RHEL) -
Quazz, checked out /opt/fog/.fogsettings No special characters, just alphanumeric string between quotes.
-
PHP v 5.3.2-lubuntu4.30
Unable to access web-interface. But last version before Trunk install was 0.32
-
Can you try installing a newer version of PHP?
-
Okay, I’ve tried a few times now to install a higher version of PHP on Lucid 10.04 LTS, but so far, I have been unsuccessful.
-
What did you try and what happened? Errors? Please let us know exactly what you did and what went wrong - we might be able to help you then.
-
Sebastian, attempted again following these instructions:
https://joshtronic.com/2013/12/30/upgrade-php-5-3-php-5-5-ubuntu-12-04-lts/No distinguishable errors. At the end of the process, php5 -v yields this:
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 PHP 5.3.2-1ubuntu4.30 with Suhosin-Patch (cli) (built: Apr 17 2015 15:01:29) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
So, from the looks of it, update/install not successful.
-
@Mark-M. But what version of FOG are you installing?
-
I already have FOG 0.32 installed. I attempted to upgrade to ‘trunk’, following the instructions provided in the link found in my original post. Doing do resulted in FOG becoming ‘broken’, yielding a 500 internal server error.
-
@Mark-M. And you’re still seeing this server error 500 with upgrading to trunk?
-
@Mark-M. As seen in the URL you posted this is talking about Ubuntu 12.04 (codename precise) but you seam to have 10.04 (codename lucid) installed. As you can see here there are no deb package files for licid: http://ppa.launchpad.net/ondrej/php5/ubuntu/pool/main/p/php5/
Unfortunately you can’t upgrade to trunk on this (very old!) Ubuntu installation because the PHP version is too old and cannot be upgraded via official or external package sources. You can look into compiling php from source I suppose…