Category Archives: php

Resolve Apache 403 Forbidden Error

First check whether index.php or index.html is present on the server. Make sure that the current user have access to the /var/www directory. For that, Open the Terminal and type sudo chmod -R 0755 /var/www Now restart apache with the command  sudo service apache2 restart

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> 403, access denied, apache, error, forbidden, linux, localhost, permission, php, server, web | Leave a comment

Install LAMP in Ubuntu 12.04 LTS Precise (Apache, MySQL, PHP)

1. Open a terminal and type the following sudo apt-get install lamp-server^ 2. Setup  MySql password when asked. 3. After the lamp server installation you will need write permissions to the   /var/www directory.For that, 4. Add your user to the www-data group sudo usermod -a -G www-data <user name> 5. Add the /var/www folder to […]

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> apache, LAMP, localhost, MySql, php, phpmyadmin, server, ubuntu, ubuntu 12.04 LTS | 4 Comments