Those who use CentOS 7 , try disabling selinux and save yourself 🙂
Also It can be caused by a number of things, such as:
File Permissions
Fatal Code Errors
Web Server Issues
Those who use CentOS 7 , try disabling selinux and save yourself 🙂
Also It can be caused by a number of things, such as:
File Permissions
Fatal Code Errors
Web Server Issues
Run the following command to disable SELinux immediately
setenforce 0
getenforce
The mod_rewrite module is enabled by default on CentOS 7. If you find it is not enabled on your server, you can enable it by editing 00-base.conf file located in /etc/httpd/conf.modules.d/ directory.
vi
/etc/httpd/conf.modules.d/00-base.conf
LoadModule rewrite_module modules/mod_rewrite.so Service httpd restart
Looks like port 80 is not opened . Run the following command and try again.
$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent $ sudo firewall-cmd --reload
Another reason could be web server is down.
Issue the following command
php -me
Run the following command to list the modified files
git ls-files -m
Run the following command
sudo yum install -y yum-utils --enablerepo="base"
Looks like mysqld is not started . Run the following command to fix the issue.
service mysqld start
I fixed this issue by modifying user and group in /etc/php/etc/php-fpm.d/www.conf
user = nginx group = nginx
I had this issue and I have fixed this by creating the file php-fpm.sock
/var/run/php-fpm/php-fpm.sock;