cancel
Showing results for 
Search instead for 
Did you mean: 

Magento Installation failure on EC2

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento Installation failure on EC2

Hi,

 

trying to install Magento 2.3.0 on RH 7 based EC2 and getting the following error :

 

[[Fri Mar 29 14:03:46.790485 2019] [php7:error] [pid 32427] [client 176.231.19.189:51524] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/magento2/var/page_cache" is not writable in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/var...')\n#1 /var/www/html/magento2/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/var/www/html/m...')\n#2 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /var/www/html/magento2/vendor/magento/framework/App/Cache/Frontend/Factory.php(156): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /var/www/html/magento2/vendor/magento/framework/Cache/Frontend/Adapter/Zend.ph in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php on line 20

 

following is the process user:

 

ec2-user 6265 6228 0 14:12 pts/1 00:00:00 grep --color=auto httpd
root 32424 1 0 Mar27 ? 00:00:09 /usr/sbin/httpd -DFOREGROUND
magento 32425 32424 0 Mar27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
magento 32426 32424 0 Mar27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
magento 32427 32424 0 Mar27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
magento 32428 32424 0 Mar27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
magento 32429 32424 0 Mar27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
magento 32431 32424 0 Mar27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
magento 32435 32424 0 Mar27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND

 

following is the folder permission (as requested by installation):

 

-rwxrwxrwx. 1 magento apache 126 Nov 27 21:26 .htaccess
-rwxrwxrwx. 1 magento apache 0 Nov 27 21:27 .regenerate.ori
drwxrwxrwx. 14 magento apache 4096 Mar 27 08:37 ..
drwxrwsrwx. 3 magento magento 36 Mar 27 09:34 composer_home
drwxrwsrwx. 3 magento magento 23 Mar 27 09:35 page_cache
drwxrwsrwx. 19 magento magento 263 Mar 27 09:35 cache
-rwxrwxrwx. 1 magento magento 9 Mar 27 09:36 .sample-data-state.flag
drwxrwsrwx. 2 magento magento 84 Mar 27 13:59 session
drwxrwsrwx. 3 magento magento 17 Mar 27 14:01 view_preprocessed
drwxrwsrwx. 2 magento magento 6 Mar 27 14:01 tmp
drwxrwsrwx. 2 magento apache 62 Mar 27 14:02 log
drwxrwsrwx. 9 magento magento 191 Mar 27 14:02 .

 

please advice, what action should we take

 

 

2 REPLIES 2

Re: Magento Installation failure on EC2

Its a permission issue try to give 755 permission to var folder.

Re: Magento Installation failure on EC2

thanks for the response but already tried and didnt work:

 

drwxrwsrwx. 9 magento magento 191 Mar 27 14:02 var

 

i figured it's permission but couldn't find how to resolve