In Ubantu System xampp server using install the Magento 2 erorr!
1.Magento 2.3.4 admin penal does not open gives Error 404 .
2.When I open the terminal and hit the magento command like:
php bin/magento c:c
then gives error!
PHP Fatal error: Uncaught Error: Undefined class constant 'PDO::MYSQL_ATTR_SSL_KEY' in /opt/lampp/htdocs/magento234/setup/src/Magento/Setup/Model/ConfigOptionsList.php:179
Stack trace:
#0 /opt/lampp/htdocs/magento234/setup/src/Magento/Setup/Model/ConfigModel.php(71): Magento\Setup\Model\ConfigOptionsList->getOptions()
#1 /opt/lampp/htdocs/magento234/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php(64): Magento\Setup\Model\ConfigModel->getAvailableOptions()
#2 /opt/lampp/htdocs/magento234/vendor/symfony/console/Command/Command.php(77): Magento\Setup\Console\Command\ConfigSetCommand->configure()
#3 /opt/lampp/htdocs/magento234/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php(54): Symfony\Component\Console\Command\Command->__construct()
#4 /opt/lampp/htdocs/magento234/vendor/zendframework/zend-di/src/Di.php(512): Magento\Setup\Console\Command\ConfigSetCommand->__construct(Object(Magento\Setup\Model\ConfigModel), Object(Magento\Framework\Module\ModuleList), Object(Magento\Framework\App\DeploymentConfig))
# in /opt/lampp/htdocs/magento234/setup/src/Magento/Setup/Model/ConfigOptionsList.php on line 179
Thanks in advance!!
Best Answer
i have issues faced after long time ago
Then I solved it just adding the .htaccess file in root folder.
Magento root file .htaccess code :-
Now run this command :-
And second Solutions:-
For Linux edit the file /etc/apache2/apache2.conf
To edit this file use sudo vi /etc/apache2/apache2.conf command
to
After this run command
Thanks.