Mautic Community Forums

Unzipped, then "Offline" message

There is a lack of documentation on the install process.

I was following these directions “and then navigate to that location in your browser. You will find Mautic has a very easy to follow on-screen installation process.”

All I can see is the following message: “The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.System administrators, check server logs for errors.”



What’s next?

There is a lack of documentation on the install process.
I was following these directions “and then navigate to that location in your browser. You will find Mautic has a very easy to follow on-screen installation process.”
All I can see is the following message: “The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.System administrators, check server logs for errors.”

What’s next?

Because it is never reported, once doesn’t find anything in the forums.
On this page are instructions on how to check on the server logs when this error message comes up:
https://mautic.org/docs/en/tips/troubleshooting.html

In this case my admin didn’t work. I wasn’t even getting the installer screens.
Next step:
“If your Mautic administration doesn’t work, open the logs in via the file system. Go to [mautic_root]/app/logs folder. You should see one file for every day called mautic_prod-YYYY-mm-dd.php. Open the latest one.”

Don’t see any log files in /app/logs

Digging dipper in to server logs

Error log has the following listed:
RuntimeException: Unable to create the cache directory (/home/nptechprojects/public_html/connect/app/cache/prod)
[Tue Nov 29 11:52:21.352176 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: in /home/nptechprojects/public_html/connect/app/AppKernel.php:517
[Tue Nov 29 11:52:21.352186 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: Stack trace:
[Tue Nov 29 11:52:21.352195 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #0 /home/nptechprojects/public_html/connect/app/AppKernel.php(485): AppKernel->buildContainer()
[Tue Nov 29 11:52:21.352205 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #1 /home/nptechprojects/public_html/connect/app/AppKernel.php(247): AppKernel->initializeContainer()
[Tue Nov 29 11:52:21.352214 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #2 /home/nptechprojects/public_html/connect/app/AppKernel.php(107): AppKernel->boot()
[Tue Nov 29 11:52:21.352223 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #3 /home/nptechprojects/public_html/connect/app/middlewares/CORSMiddleware.php(92): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Tue Nov 29 11:52:21.352233 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #4 /home/nptechprojects/public_html/connect/app/middlewares/CatchExceptionMiddleware.php(44): Mautic\Middleware\CORSMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Tue Nov 29 11:52:21.352243 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #5 /home/nptechprojects/public_html/connect/app/middlewares/VersionCheckMiddleware.php(57): Mautic\Middleware\CatchExceptionMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Tue Nov 29 11:52:21.352252 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #6 /home/nptechprojects/public_html/connect/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Mautic\Middleware\VersionCheckMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
[Tue Nov 29 11:52:21.352262 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #7 /home/nptechprojects/public_html/connect/vendor/stack/run/src/Stack/run.php(13): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
[Tue Nov 29 11:52:21.352296 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #8 /home/nptechprojects/public_html/connect/index.php(31): Stack\run(Object(Stack\StackedHttpKernel))
[Tue Nov 29 11:52:21.352306 2016] [fcgid:warn] [pid 19436] [client 196.53.44.63:22664] mod_fcgid: stderr: #9 {main}

Had to make sure the directory is all owned by the right owner of the site.
Used command:
chown -R [owner]:[owner] mautic/