Issue the following command to fix the issue.
php bin/magento setup:static-content:deploy -f php bin/magento setup:di:compile php bin/magento indexer:reindex php bin/magento cache:flush
Issue the following command to fix the issue.
php bin/magento setup:static-content:deploy -f php bin/magento setup:di:compile php bin/magento indexer:reindex php bin/magento cache:flush
Login to MySQL using the current use details and run the following command.
UPDATE mysql.user SET Password=PASSWORD('Root@123') WHERE User='root'; FLUSH PRIVILEGES;
upstream fastcgi_backend {
server unix:/var/run/php-fpm/php-fpm.sock;
}
server {
listen 80;
server_name www.phpcodez.com phpcodez.com;
set $MAGE_ROOT /usr/share/nginx/html/phpcodez;
include /usr/share/nginx/html/phpcodez/nginx.conf.sample;
}
Run the following command to see if php-fpm is running
netstat -pl | grep php-fpm.sock
server { listen 80; server_name localhost; location / { root /usr/share/nginx/html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }
server { listen 80; server_name localhost; # note that these lines are originally from the "location /" block root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
Run the following command to fix the issue.
updatedb
Run the following command
gunzip < [backupfile.sql.gz] | mysql -u[username] -p[password] [database]
Run the following command s in the given order
yum -y update yum -y install epel-release yum install -y http://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-14.ius.centos7.noarch.rpm yum -y update yum -y install php71u php71u-pdo php71u-mysqlnd php71u-opcache php71u-xml php71u-mcrypt php71u-gd php71u-devel php71u-mysql php71u-intl php71u-mbstring php71u-bcmath php71u-json php71u-iconv php71u-soap php71u-fpm php71u-cli service httpd restart php -v
Edit apache configuration file and modify as follows. As per my installation, configuration file isĀ /etc/httpd/conf/httpd.conf
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
To
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>