find . | wc -l
Tag Archives: CentOS
create temporary alias linux
$ alias wr=”cd /var/www/html”
Expand Root Partition CentOS
Run the following command to increase the root partition
lvextend -L+15G /dev/mapper/centos-root && xfs_growfs -d /dev/mapper/centos-root
List File Size In GB Linux
Use –block-size=M /G
For example ls -lrt --block-size=GB
will list the files with size info in GB
Magento 2 Session Factory Does Not Exist
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
Verify PHP-FPM service is running
Run the following command to see if php-fpm is running
netstat -pl | grep php-fpm.sock
Default Nginx Configuration
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; } }
Install PHP 7 Centos 7
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
The requested URL /magento/admin/ was not found on this server magento 2
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>
currently unable to handle this request. HTTP ERROR 500 Magento 2
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