Moving Images and changing image location
-
I restarted my FOG machine and now Apache won’t start I get the below error on the command line:
mj@fog-server:/opt/trunk/bin$ sudo service apache2 start
- Starting web server apache2 *
- The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 12 of /etc/apache2/sites-enabled/001-fog.conf:
SSLCertificateFile: file ‘/var/www/fog/management/other/ssl/srvpublic.crt’ does not exist or is empty
Action ‘configtest’ failed.
The Apache error log may have more information.
Going to the logs now.
-
This is what is filling the apache logs:
[Tue May 26 16:23:52.091869 2015] [:error] [pid 10042] [client 172.25.100.46:58826] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 146, referer: http://172.25.5.80/fog/management/index.php?node=home
[Tue May 26 16:23:53.348758 2015] [mpm_prefork:notice] [pid 10036] AH00169: caught SIGTERM, shutting down -
I am going to move the Apache issue to the Technical Help I think since it is now turning into something that is truely broken.
-
On the modified storage node, can you un-check the “Is Graph Enabled
(On Dashboard)” just to see if it makes a difference? -
I wish I could. Since Apache is not starting I can’t get to the Webpage.
-
@Tim.Trageser said:
move the Apache issue to the Technical Help I think since it is now turning into something
Can you re-run your installer?
-
Already did, no change.
-
@Tim-Trageser Can you rerun installer, but as:
sudo ./installfog.sh --recreate-vhost --recreate-CA --recreate-keys
-
No change still get * Setting up and starting Apache Web Server…Failed!
-
What exact distro of Linux and version are you running for this?
-
Ubuntu 14.04 LTS
Fog - SVN 3463 -
Can you update and then try the installer command below?
-
Do what Tom says first. If that doesn’t work, then try this:
Can we try moving your DB to a new spot temporarily?
[CODE]mv /var/lib/mysql /var/lib/mysqlOLD[/CODE]
Then try re-starting apache and/or re-installing FOG.
-
Well Apache starts now, but I get a blank screen when I open up the webpage.
-
Shift + F5
-
Refreshing with Shift+F5 did not work. Just for transparency I did what Tom said and that fixed Apache. I did not do what Wayne suggested.
-
@Tim.Trageser said:
Refreshing with Shift+F5 did not work. Just for transparency I did what Tom said and that fixed Apache. I did not do what Wayne suggested.
Can you get a copy of the Apache error logs -
This is a snippet of the bottom of the log:
Any more ideas about getting the page to show properly, rather than just white? Should I do what Wayne suggested?
-
Well… What i suggested can easily be un-done by just swapping the directories back.
You might ought to export your DB before hand.
backup:
[CODE]mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql[/CODE]restore:
[CODE]mysql -u root -p[root_password] [database_name] < dumpfilename.sql[/CODE]Move the db out:
[CODE]mv /var/lib/mysql /var/lib/mysqlOLD[/CODE]Put the db back:
[CODE]mv /var/lib/mysqlOLD /var/lib/mysql[/CODE]After moving the DB out of there, you should be presented with the DB schema updater. Go ahead and do it. It can always be undone later by moving the files back.
-
Can you check that MySQL is running and if you have a MySQL password that it is properly set in config?