Check whether the LAMP is installed properly or not

  • To test the working of apache, go to your web browser and type http://localhost/’ in the address bar.
  • It will show you the following screen:

  • To test the working of php,Firstly change the permission of root files and folders. For this Type the following command in terminal

    gksudo nautilus

  • After this it ask you for your system password and then Root-filebrowser dialog box will be openFileSystem>usr>share

  • Choose file system. Then choose folder var  and then www.
  • Now right click on the www folder. Choose the Permissions. Now change the permission of owner to administrative user.
  • Now  type in terminal:

cd /var/www

  • It will change your directory to /var/www. Now type

vi testing.php

  • It will create testing.php file in your /var/www/ folder and in that file , write

<?php
   phpinfo();
  ?>

  • Save the file.After that type the following command in Terminal:

sudo /etc/init.d/apache2 restart

  • During this a problem can occur like on writing http://localhost/phpmyadmin it shows Not found. In this case phpmyadmin is in location /usr/share/phpmyadmin rather then in /var/www/phpmyadmin. To solve this problem copy folder phpmyadmin from FileSystem>usr>share to Filesystem>var>www.

  • Now login with username ‘root’ and enter the password you created earlier,and you will get this screen

  • Now LAMP is completely installed.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment