• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Apache will not start

Scheduled Pinned Locked Moved Solved
FOG Problems
5
27
12.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    Tim.Trageser
    last edited by May 27, 2015, 12:23 PM

    I was trying to move my image storage location to an external HDD connected to my FOG Machine. Info is in this post: https://forums.fogproject.org/topic/5027/moving-images-and-changing-image-location/21?page=1

    Since running the installer again with the new image location specified I am now having an issue with APache starting. Errors below:

    Command line error when attempting start:

    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.

    Apache error log repeated error:

    [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

    C 1 Reply Last reply May 27, 2015, 12:27 PM Reply Quote 0
    • C
      ch3i Moderator @Tim.Trageser
      last edited by May 27, 2015, 12:27 PM

      @Tim.Trageser

      Hi,

      Have you mysqlnd installed ?

      Regards,
      Ch3i.

      1 Reply Last reply Reply Quote 0
      • T
        Tim.Trageser
        last edited by May 27, 2015, 12:34 PM

        I do, as FOG was working normally before and the install skipped it when it was going through the motions.
        Though I did run sudo /etc/init.d/mysqld status and it couldn’t find the command, but a manual check of etc shows the folder for it and all the files appear to be there.

        C 1 Reply Last reply May 27, 2015, 12:38 PM Reply Quote 0
        • C
          ch3i Moderator @Tim.Trageser
          last edited by May 27, 2015, 12:38 PM

          @Tim.Trageser

          sudo service mysql status
          
          1 Reply Last reply Reply Quote 0
          • T
            Tim.Trageser
            last edited by May 27, 2015, 12:39 PM

            mj@fog-server:/opt/trunk/bin$ sudo service mysql status
            mysql start/running, process 5271
            mj@fog-server:/opt/trunk/bin$

            C 1 Reply Last reply May 27, 2015, 12:40 PM Reply Quote 0
            • C
              ch3i Moderator @Tim.Trageser
              last edited by ch3i May 27, 2015, 6:41 AM May 27, 2015, 12:40 PM

              @Tim.Trageser said:

              mj@fog-server:/opt/trunk/bin$ sudo service mysql status
              mysql start/running, process 5271
              mj@fog-server:/opt/trunk/bin$

              Mysql running 😉 But have you mysqlNd installed ? The native driver

              1 Reply Last reply Reply Quote 0
              • T
                Tim.Trageser
                last edited by May 27, 2015, 12:42 PM

                How do I find out?

                C 1 Reply Last reply May 27, 2015, 12:45 PM Reply Quote 0
                • C
                  ch3i Moderator @Tim.Trageser
                  last edited by May 27, 2015, 12:45 PM

                  @Tim.Trageser

                  sudo apt-get update
                  sudo apt-get install php5-mysqlnd
                  sudo service apache2 restart
                  
                  1 Reply Last reply Reply Quote 0
                  • T
                    Tim.Trageser
                    last edited by May 27, 2015, 12:47 PM

                    mj@fog-server:/opt/trunk/bin$ sudo apt-get install php5-mysqlnd
                    Reading package lists… Done
                    Building dependency tree
                    Reading state information… Done
                    php5-mysqlnd is already the newest version.
                    The following package was automatically installed and is no longer required:
                    account-plugin-windows-live
                    Use ‘apt-get autoremove’ to remove it.
                    0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.

                    1 Reply Last reply Reply Quote 0
                    • P
                      Polii123
                      last edited by May 27, 2015, 1:44 PM

                      Try to restart the server, may helps.

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tim.Trageser
                        last edited by May 27, 2015, 1:45 PM

                        Done that several times.

                        1 Reply Last reply Reply Quote 0
                        • P
                          Polii123
                          last edited by May 27, 2015, 1:48 PM

                          Already tried to reinstall FOG?

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tim.Trageser
                            last edited by May 27, 2015, 1:48 PM

                            Yes, I have. The install reports that Apache fails to start.

                            1 Reply Last reply Reply Quote 0
                            • P
                              Polii123
                              last edited by May 27, 2015, 1:50 PM

                              Tried to reinstall Apache manually?

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tim.Trageser
                                last edited by May 27, 2015, 1:55 PM

                                I have not manually tried reinstalling Apache, but I don’t think that will fix it as the error message from Apache states:

                                SSLCertificateFile: file ‘/var/www/fog/management/other/ssl/srvpublic.crt’ does not exist or is empty

                                When I look in that location the file doesn’t exist.

                                1 Reply Last reply Reply Quote 0
                                • P
                                  Polii123
                                  last edited by May 27, 2015, 2:01 PM

                                  Can you paste your V-Host config?

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Tim.Trageser
                                    last edited by May 27, 2015, 2:03 PM

                                    Where would I find that?

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      Polii123
                                      last edited by May 27, 2015, 2:06 PM

                                      /etc/apache2/sites-enabled

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        Polii123
                                        last edited by Polii123 May 27, 2015, 8:17 AM May 27, 2015, 2:16 PM

                                        Sorry, you don’t have to paste your V-Host Config, wouldn’t help.

                                        Try to put my srvpublic.crt to the location, mentioned by the error. Maybe this helps
                                        srvpublic.zip

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Tim.Trageser
                                          last edited by May 27, 2015, 2:25 PM

                                          Now I am missing:

                                          SSLCertificateKeyFile: file ‘/opt/fog/snapins/ssl/.srvprivate.key’ does not exist or is empty

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            3/27
                                            Last post

                                          169

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project