Mautic Community Forums

Running mautic from github

Hi, I setup mautic, but I get this error:



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.



How do I access the installer? I followed some instructions on github to configure and setup the database.

Hi, I setup mautic, but I get this error:

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.

How do I access the installer? I followed some instructions on github to configure and setup the database.

So first off - do you want to run mautic off of Github? you don’t need to unless you’re going to actively be writing code for Mautic. If you’re not going to do that, using the package we provide at mautic.org/download is a ‘cleaner’ way to go.

That said - since you are using the development version, what happens if you go to yoursite.com/index_dev.php? It should give you some errors.

Can you make sure that app/cache is writable? That’s usually what causes this error in my experience.

I tried the package at mautic.org/download, but there were files missing that I had to get off of github, so I thought I would just try the github version.

index_dev.php says You are not allowed to access this file. Check index_dev.php for more information.

app/cache is writable too

Ah the index only works if you add your IP address to the array.

I think you should go back tot he full package - it shouldn’t be missing anything if you upload the entire thing.

After downloading the .zip and extracting it on the server:

Warning: include(/home/public/mautic/offline.php): failed to open stream: No such file or directory in /home/public/mautic/index.php on line 52

Warning: include(): Failed opening ‘/home/public/mautic/offline.php’ for inclusion (include_path=’.:/usr/local/php/5.4.33-nfsn1/lib/:/usr/local/php/lib/’) in /home/public/mautic/index.php on line 52


[bloginatoraxe /home/public/mautic]$ ls
1.0.5.zip addons bin index.php robots.txt translations
LICENSE.txt app favicon.ico media themes vendor

Hi Axecute:

So I checked the 1.0.5, 1.0.4, and 1.0.3 distributions and none of them have offline.php. This appears to be an oversight on the build side! you can grab that one file from the github repo.

BUT - we shouldn’t even be hitting the include for that if things are working properly.

What should happen is after you extract and you hit the index.php file, the install process should take over and execute. Did you ever make it to the installer? If not then something else is up. Can you make sure that mod_rewrite is enabled on your server? What happens if you go to domain.com/installer?

The forums say that mod_rewrite is on the server, I’m not sure how to verify it though. When I go to /installer it just says the original error 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.”

Since it says to check the server logs I tried to report it as a system problem, but they replied saying it’s not a system problem.

Hi Axecute,

Mod_rewrite is a module that is attached to Apache (most servers use Apache). This gives a bit of a background about what it is http://www.workingwith.me.uk/articles/scripting/mod_rewrite . You need mod_rewrite enabled on your website to run Mautic and many other web platforms.

Is this on hosting you pay for or your own server? Which provider is it with?

Zac

Hi axecute,

Is there a way for you to look at the php error logs yourself? Mautic has error logs, but since it looks like Mautic isn’t even booting up, so Mautic’s logs aren’t firing, so general PHP / Apache logs will show errors.

I finally installed it.

I found the error here “Bitnamimautic-1.2.3-0apache2logs” and it said:

“[2016-01-26 05:11:42] mautic.ERROR: Fatal: Maximum execution time of 120 seconds exceeded - in file C:Bitnamimautic-1.2.3-0appsmautichtdocsvendordoctrinedballibDoctrineDBALDriverPDOStatement.php - at line 35 [] []”

So I went to “C:Bitnamimautic-1.2.3-0php” opened php.ini with notepad (you must have visible extensions, other wise you won’t be able to see the file, and changed “max_execution_time = 300” it was on 30 sec before the change. Then restarted MySQL and Apache, and voila!!! is working perfect.

@javier I can see you are very happy that you managed to fix your problem, but this is the third thread where I see the same comment about it. Once is enough, please.

I have Matuic installed on my cpanel - I don’t seem to be able to to find C:Bitnamimautic-1.2.3-0php file

Please keep answe very simple if possible