Maybe it is an apache permission problem. Try to put in your /etc/apache2/sites-available/default
the following lines
<Directory />
AllowOverride All
</Directory>
and check that the /var/www
folders owner is www-data
==================================================================================
Install mysql server: sudo apt-get install mysql-server
Here the installer will ask the mysql-server root password
Install apache 2: sudo apt-get install apache2
Test it: localhost (You must see "It works!" etc)
Install php5: sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
Testing it: create the file php_info.php in /var/www/
The content of the file: <?php phpinfo(); ?>
Install php modules: sudo apt-get install php-pear php5-gd php5-xsl curl libcurl3 libcurl3-dev php5-curl
Connect apache 2 and mysql together: sudo apt-get install libapache2-mod-auth-mysql
Install phpmyadmin:
`sudo apt-get install php5-mysql`
`sudo apt-get install phpmyadmin`
Connect php5 with mysql server:
Edit the file /etc/php/apache2/php.ini
Uncomment the following line: extension=mysql.so
Restart apache: service apache2 restart
Try phpmyadmin: localhost/phpmyadmin/
This worked for me many times.
Best Answer
After a lot of trial and error and searching around, this is what I discovered.
getting artisan command working
i did a lot of trial and error so each time i run the php5enmod command before, i had error messages. but on fresh install there was no error messages. after this step i got artisan command working
fixing the browser error
add the following line under the dynamically compiled extensions section of php ini
restart the apache server, purge the laravel cache and everything working.