{"action":"opened","issue":{"url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2621","repository_url":"https://api.github.com/repos/CachetHQ/Cachet","labels_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2621/labels{/name}","comments_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2621/comments","events_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2621/events","html_url":"https://github.com/CachetHQ/Cachet/issues/2621","id":241086727,"number":2621,"title":"HTTP 500 and Permission Denied errors on new Cachet 2.4 install","user":{"login":"nickxj","id":2001633,"avatar_url":"https://avatars3.githubusercontent.com/u/2001633?v=3","gravatar_id":"","url":"https://api.github.com/users/nickxj","html_url":"https://github.com/nickxj","followers_url":"https://api.github.com/users/nickxj/followers","following_url":"https://api.github.com/users/nickxj/following{/other_user}","gists_url":"https://api.github.com/users/nickxj/gists{/gist_id}","starred_url":"https://api.github.com/users/nickxj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickxj/subscriptions","organizations_url":"https://api.github.com/users/nickxj/orgs","repos_url":"https://api.github.com/users/nickxj/repos","events_url":"https://api.github.com/users/nickxj/events{/privacy}","received_events_url":"https://api.github.com/users/nickxj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-06T21:09:37Z","updated_at":"2017-07-06T21:09:37Z","closed_at":null,"body":"Hello Cachet developers!\r\nI'm receiving a HTTP 500 error when accessing the URL of a new install of Cachet 2.4.\r\n\r\n```\r\n[root]# wget http://localhost\r\n--2017-07-06 20:30:59--  http://localhost/\r\nResolving localhost (localhost)... ::1, 127.0.0.1\r\nConnecting to localhost (localhost)|::1|:80... connected.\r\nHTTP request sent, awaiting response... 302 Found\r\nLocation: http://localhost/setup [following]\r\n--2017-07-06 20:31:00--  http://localhost/setup\r\nReusing existing connection to [localhost]:80.\r\nHTTP request sent, awaiting response... 500 Internal Server Error\r\n2017-07-06 20:31:00 ERROR 500: Internal Server Error.\r\n```\r\n_Note: the output via wget is only for the benefit of showing the HTTP 302 redirect to /setup is occurring.  I also test using Chrome from a remote host._\r\n\r\nThe contents of [/var/log/httpd/error_log](https://github.com/CachetHQ/Cachet/files/1129159/error_log.txt) show errors attempting to open /var/www/Cachet/storage/logs/laravel-2017-07-05.log, however the apache user has full access to the directory.  A full listing of the effective directory permissions is near the end of post.\r\n\r\n**My install -**\r\n- CentOS 7-2.1511.el7x86_64\r\n- MySQL 5.7 Community\r\n- PHP 5.6\r\n- Laravel Framework 5.4.27\r\n- Composer 1.4.2\r\n- Apache 2.4.6\r\n\r\n**Content of /etc/httpd/conf.d/cachet.conf**\r\n```xml\r\n<VirtualHost *:80>\r\n   ServerName server\r\n   ServerAlias server\r\n   DocumentRoot \"/var/www/Cachet/public\"\r\n   <Directory \"/var/www/Cachet/public\">\r\n     Require all granted\r\n     Options Indexes FollowSymLinks\r\n     AllowOverride All\r\n     Order allow,deny\r\n     Allow from all\r\n   </Directory>\r\n</VirtualHost>\r\n```\r\n\r\n**Content of /var/www/Cachet/.env**\r\n```\r\nPP_ENV=production\r\nAPP_DEBUG=true\r\nAPP_URL=http://localhost\r\nAPP_KEY=base64:zcDji9zbQXiau7ga8tHcN5E5chmK8OUyG9EXvOIfhtI=\r\n\r\nDB_DRIVER=mysql\r\nDB_HOST=localhost\r\nDB_UNIX_SOCKET=null\r\nDB_DATABASE=cachet\r\nDB_USERNAME=cachetuser\r\nDB_PASSWORD=cachetuser_passwd\r\nDB_PORT=null\r\nDB_PREFIX=null\r\n\r\nCACHE_DRIVER=file\r\nSESSION_DRIVER=file\r\nQUEUE_DRIVER=sync\r\n\r\nCACHET_BEACON=true\r\nCACHET_EMOJI=false\r\nCACHET_AUTO_TWITTER=true\r\n\r\nMAIL_DRIVER=log\r\nMAIL_HOST=null\r\nMAIL_PORT=null\r\nMAIL_USERNAME=null\r\nMAIL_PASSWORD=null\r\nMAIL_ADDRESS=null\r\nMAIL_NAME=null\r\nMAIL_ENCRYPTION=tls\r\n\r\nREDIS_HOST=null\r\nREDIS_DATABASE=null\r\nREDIS_PORT=null\r\n\r\nGITHUB_TOKEN=null\r\n\r\nNEXMO_KEY=null\r\nNEXMO_SECRET=null\r\nNEXMO_SMS_FROM=Cachet\r\n```\r\n\r\n**Permissions**\r\n```\r\n[root]# ls -l /var/www/\r\ndrwxr-xr-x. 12 apache apache 4096 Jul  6 16:25 Cachet\r\ndrwxr-xr-x.  2 root   root      6 Apr 12 21:04 cgi-bin\r\ndrwxr-xr-x.  2 root   root      6 Apr 12 21:04 html\r\n```\r\n```\r\n[root]# ls -l /var/www/Cachet\r\ndrwxr-xr-x. 15 apache apache   4096 Jul  6 16:23 app\r\n-rw-r--r--.  1 apache apache   1639 Jul  6 16:23 artisan\r\ndrwxrwxrwx.  4 apache apache     64 Jul  6 16:23 bootstrap\r\n-rw-r--r--.  1 apache apache   3216 Jul  6 16:23 CODE_OF_CONDUCT.md\r\n-rw-r--r--.  1 apache apache   3384 Jul  6 16:23 composer.json\r\n-rw-r--r--.  1 apache apache 222177 Jul  6 16:23 composer.lock\r\ndrwxr-xr-x.  2 apache apache   4096 Jul  6 16:23 config\r\n-rw-r--r--.  1 apache apache   2806 Jul  6 16:23 CONTRIBUTING.md\r\n-rw-r--r--.  1 apache apache    240 Jul  6 16:23 crowdin.yaml\r\ndrwxr-xr-x.  6 apache apache     82 Jul  6 16:23 database\r\n-rw-r--r--.  1 apache apache   1504 Jul  6 16:23 LICENSE\r\n-rw-r--r--.  1 apache apache   1632 Jul  6 16:23 package.json\r\n-rw-r--r--.  1 apache apache 290749 Jul  6 16:23 package-lock.json\r\n-rw-r--r--.  1 apache apache   1584 Jul  6 16:23 phpunit.xml.dist\r\ndrwxr-xr-x.  5 apache apache   4096 Jul  6 16:27 public\r\n-rw-r--r--.  1 apache apache   2535 Jul  6 16:23 README.md\r\ndrwxr-xr-x.  5 apache apache     42 Jul  6 16:23 resources\r\n-rw-r--r--.  1 apache apache    405 Jul  6 16:23 server.php\r\ndrwxrwxrwx.  5 apache apache     60 Jul  6 16:23 storage\r\ndrwxr-xr-x.  8 apache apache   4096 Jul  6 16:23 tests\r\ndrwxr-xr-x. 38 apache apache   4096 Jul  6 16:25 vendor\r\n-rw-r--r--.  1 apache apache     10 Jul  6 16:23 VERSION\r\n-rw-r--r--.  1 apache apache   2132 Jul  6 16:23 webpack.mix.js\r\n-rw-r--r--.  1 apache apache  98606 Jul  6 16:23 yarn.lock\r\n```\r\n```\r\n[root]# ls -l /var/www/Cachet/storage\r\ndrwxrwxrwx. 2 apache apache 23 Jul  6 16:23 app\r\ndrwxrwxrwx. 5 apache apache 62 Jul  6 16:23 framework\r\ndrwxrwxrwx. 2 apache apache 23 Jul  6 16:23 logs\r\n```\r\n\r\nI've executed these commands as recommended by other posts and your documentation with no change in behavior  - \r\n```\r\n[root]# chmod -R 777 /var/www/Cachet/storage/\r\n[root]# chmod -R 777 /var/www/Cachet/bootstrap/\r\n[root]# chown -R apache:apache /var/www/Cachet/\r\n[root]# rm -rf /var/www/Cachet/bootstrap/cache/*\r\n[root]# php artisan config:cache\r\n[root]# php artisan key:generate\r\n[root]# systemctl restart httpd\r\n```\r\n\r\nThank you for your assistance!"}}
{"actor":{"display_login":"nickxj"}}