cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to install Magento2 Community Edition

Unable to install Magento2 Community Edition

When running any magento commands - I keep getting a blank response then I check my error_log and see this:

 

[06-Oct-2024 12:21:33 Australia/Sydney] PHP Fatal error:  Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, bool given in /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/vendor/magento/framework/Filesystem/DirectoryList.php:137
Stack trace:
#0 /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/vendor/magento/framework/Filesystem/DirectoryList.php(137): str_replace()
#1 /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/vendor/magento/framework/Filesystem/DirectoryList.php(117): Magento\Framework\Filesystem\DirectoryList->normalizePath()
#2 /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/vendor/magento/framework/App/Filesystem/DirectoryList.php(193): Magento\Framework\Filesystem\DirectoryList->__construct()
#3 /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/vendor/magento/framework/App/Bootstrap.php(172): Magento\Framework\App\Filesystem\DirectoryList->__construct()
#4 /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/vendor/magento/framework/App/Bootstrap.php(139): Magento\Framework\App\Bootstrap::createFilesystemDirectoryList()
#5 /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/app/bootstrap.php(46): Magento\Framework\App\Bootstrap::populateAutoloader()
#6 /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/bin/magento(14): require('/home/{{USERNAMEREMOVEDFORSECURITY}}/...')
#7 {main}
  thrown in /home/{{USERNAMEREMOVEDFORSECURITY}}/public_html/magento/vendor/magento/framework/Filesystem/DirectoryList.php on line 137

Install command attempted:

 

bin/magento setup:install \
--base-url={{BASEURLOFSITE}} \
--db-host=localhost \
--db-name={{DB_NAME}} \
--db-user={{DB_USER}} \
--db-password={{DB_PWD}} \
--admin-firstname={{Me}} \
--admin-lastname={{still me}} \
--admin-email={{My Email}} \
--admin-user={{My Chosen Name}} \
--admin-password={{My Password}} \
--language=en_AU \
--currency=AUD \
--timezone=Australia/Perth \
--use-rewrites=1 

The server i'm using matches the requirements as advised by my webhost - I will be using Amazon OpenSearch