1.2.3 Fresh Install

I am trying to install 1.2.3 and running into errors. I have a CentOS box that I normally use for testing things and I was getting errors. So I figured I would cheat and try an install on Cloudways hosting (digital ocean reseller.) They use both nginx and apache in their environment. Yes, it is ODD, but it works and works fast :)



Here is what I did:


  1. Fresh and clean html dir.
  2. Uploaded 1.2.3.zip
  3. Unzipped 1.2.3.zip
  4. Went to a browser and got an offline error message.
  5. Checked the error logs.



    [Sun Jan 03 05:16:41 2016] [error] [client xx.xx.xx.xx] exception ‘RuntimeException’ with message ‘Unable to create the cache directory (/home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/cache/prod)n’ in /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php:520nStack trace:n#0 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php(488): AppKernel->buildContainer()n#1 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php(252): AppKernel->initializeContainer()n#2 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php(71): AppKernel->boot()n#3 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/index.php(56): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}


  6. So for my sanity I checked the permissions and they are set fine.
  7. I then created the directory myself.
  8. Back to the browser and getting offline message again.
  9. Now it cannot create app/logs
  10. created the logs dir (mkdir app/logs)
  11. Back to the browser and voila it changed, but still some issues.



    Major Problems that need to be fixed now

    We have detected 1 major problems. You must fix them before continuing:



    Mautic is unable to write your configuration file to the appropriate location. Please check your filesystem permissions to ensure the following path is writable: .


  12. Checked the web server error log to see if anything was in there. No dice.



    For my own sanity . . .


  13. I nuked all the files
  14. I uploaded Wordpress.
  15. I installed Wordpress
  16. It worked. Same user, same everything as above.



    Is 1.2.3 broken on fresh installs?



    Thanks,



    dave






I am trying to install 1.2.3 and running into errors. I have a CentOS box that I normally use for testing things and I was getting errors. So I figured I would cheat and try an install on Cloudways hosting (digital ocean reseller.) They use both nginx and apache in their environment. Yes, it is ODD, but it works and works fast :slight_smile:

Here is what I did:

  1. Fresh and clean html dir.
  2. Uploaded 1.2.3.zip
  3. Unzipped 1.2.3.zip
  4. Went to a browser and got an offline error message.
  5. Checked the error logs.

[Sun Jan 03 05:16:41 2016] [error] [client xx.xx.xx.xx] exception ‘RuntimeException’ with message ‘Unable to create the cache directory (/home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/cache/prod)n’ in /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php:520nStack trace:n#0 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php(488): AppKernel->buildContainer()n#1 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php(252): AppKernel->initializeContainer()n#2 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/app/AppKernel.php(71): AppKernel->boot()n#3 /home/xxx.cloudwaysapps.com/kcpwhvyret/public_html/index.php(56): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}

  1. So for my sanity I checked the permissions and they are set fine.
  2. I then created the directory myself.
  3. Back to the browser and getting offline message again.
  4. Now it cannot create app/logs
  5. created the logs dir (mkdir app/logs)
  6. Back to the browser and voila it changed, but still some issues.

Major Problems that need to be fixed now
We have detected 1 major problems. You must fix them before continuing:

Mautic is unable to write your configuration file to the appropriate location. Please check your filesystem permissions to ensure the following path is writable: .

  1. Checked the web server error log to see if anything was in there. No dice.

For my own sanity . . .

  1. I nuked all the files
  2. I uploaded Wordpress.
  3. I installed Wordpress
  4. It worked. Same user, same everything as above.

Is 1.2.3 broken on fresh installs?

Thanks,

dave

So if I’m not mistaken this sounds like a problem with the permissions…ownership. Would you verify that all Mautic files are actually owned by the web user and not root? For some reason due to the way Symfony runs it requires hat everything be owned by the web or Apache user to create directories for temp etc…

Let me know if that helps by any chance.

Thanks,
David

Here you go.

master_tfvbzhemvr@xxx:~/applications/mautic/public_html$ ls -lat total 21372 drwxr-xr-x 7 master_tfvbzhemvr www-data 4096 Jan 3 05:31 app drwxrwxr-x 10 kcpwhvyret www-data 4096 Jan 3 05:16 . -rw-rw-r-- 1 master_tfvbzhemvr www-data 21764964 Jan 3 05:12 1.2.3.zip drwxr-xr-x 8 root root 4096 Jan 3 04:44 .. drwxr-xr-x 7 master_tfvbzhemvr www-data 4096 Dec 23 11:05 media drwxr-xr-x 28 master_tfvbzhemvr www-data 4096 Dec 23 11:04 vendor drwxr-xr-x 2 master_tfvbzhemvr www-data 4096 Dec 23 11:04 bin drwxr-xr-x 2 master_tfvbzhemvr www-data 4096 Dec 23 11:00 addons -rw-r--r-- 1 master_tfvbzhemvr www-data 3922 Dec 23 11:00 CONTRIBUTING.md -rw-r--r-- 1 master_tfvbzhemvr www-data 12862 Dec 23 11:00 favicon.ico -rw-r--r-- 1 master_tfvbzhemvr www-data 2888 Dec 23 11:00 .htaccess -rw-r--r-- 1 master_tfvbzhemvr www-data 2602 Dec 23 11:00 index.php -rw-r--r-- 1 master_tfvbzhemvr www-data 38457 Dec 23 11:00 LICENSE.txt -rw-r--r-- 1 master_tfvbzhemvr www-data 1767 Dec 23 11:00 offline.php drwxr-xr-x 6 master_tfvbzhemvr www-data 4096 Dec 23 11:00 plugins -rw-r--r-- 1 master_tfvbzhemvr www-data 149 Dec 23 11:00 robots.txt drwxr-xr-x 5 master_tfvbzhemvr www-data 4096 Dec 23 11:00 themes drwxr-xr-x 2 master_tfvbzhemvr www-data 4096 Dec 23 11:00 translations

And then the dir I made.

master_tfvbzhemvr@xxx:~/applications/mautic/public_html$ ls -lat app/cache/ total 12 drwxrwxr-x 5 master_tfvbzhemvr www-data 4096 Jan 3 05:32 prod drwxr-xr-x 7 master_tfvbzhemvr www-data 4096 Jan 3 05:31 .. drwxrwxr-x 3 master_tfvbzhemvr www-data 4096 Jan 3 05:29 .

This is the user I log in as for SFTP and SSH. So to even make sure that the directory is writable.

master_tfvbzhemvr@xxx:~/applications/mautic$ ls -lat total 40 drwxrwxr-x 10 kcpwhvyret www-data 4096 Jan 3 05:16 public_html drwxr-xr-x 2 root root 4096 Jan 3 05:05 conf drwxr-xr-x 4 root root 4096 Jan 3 04:49 .. drwxrwxr-x 2 kcpwhvyret www-data 4096 Jan 3 04:44 tmp drwxr-xr-x 2 root root 4096 Jan 3 04:44 logs drwxr-xr-x 2 root root 4096 Jan 3 04:44 ssl drwxr-xr-x 8 root root 4096 Jan 3 04:44 . -rw-r--r-- 1 root root 3677 Jan 3 04:44 .bashrc -rw-r--r-- 1 root root 44 Jan 3 04:44 .vimrc drwxrwxr-x 2 kcpwhvyret www-data 4096 Jan 3 04:44 private_html master_tfvbzhemvr@xxx:~/applications/mautic$ whoami master_tfvbzhemvr

So I am confused :frowning:

Is there a config for symfony that perhaps is hardcoded to a user?

You were correct. As this is a shared hosting environment, I am stuck with what they do. I talked to Cloudways and they had me ‘reset’ all permissions. Something, somewhere got hosed and that fixed it.

Thanks!

dave

Ah, glad it got sorted. I had a feeling that was the problem. We’re actively looking for a way to resolve that without the need to adjust permissions. Hopefully someone in our brilliant community can provide a solution!