Dear laracast comunity
i am in the phase of deploying my laravel project on dedicated server with LAMP environment:-
Linux (centOS)/
Apache/
MariaDB/
PHP
I was able to put the project in the document root of web server
installed the composer and generated key for laravel project, and do migration
i changed the .env file to the new environment
and now i am facing two problems:-
1- when i route to server ip address as: xxx.xx.xx.xx
i get apache page "Testing 123.." and i need to type xxx.xx.xx.xx/ public in order to go to index
2- when i type the URL xxx.xx.xx.xx/public i can view the welocme page of laravel
put if i want to login i need to type the URL like: xxx.xx.xx.xx/public/index.php/login
although i have followed the instruction in Laravel regarding pretty URLs: https://laravel.com/docs/master/installation
which first enabling mode_rewrite for apache and second replace the .htaccess with the recommended one
and it wont fix the problem
i was able to fix the problem by going to httpd.conf file in server and change every
AllowOverride none
to
AllowOverride All
this fixed some URLs not all of them
so far i am able to access welcome, login, register, and forget password pages
other pages i get the below error:-
Whoops, looks like something went wrong.
i also set up the home directory of Apache config to var/www/hml/public
any help will be valuable
thanks in advance