Install LAMP Stack.
Installing Apache.
In order to test if Apache is working you can open your web browser and type:
http://localhost/
If Apache is correctly installed, a page similar to this one must appear.
http://localhost/
If Apache is correctly installed, a page similar to this one must appear.
Installing PHP.
HelloWorld.PHP
In order to execute PHP scripts, open your favorite text editor and type the following code:
<HTML>
<BODY>
<?php
echo ("<H1>Hello World!</H1>");
?>
</BODY>
</HTML>
<BODY>
<?php
echo ("<H1>Hello World!</H1>");
?>
</BODY>
</HTML>
Move the file to the directory /var/www/html which is where PHP looks for the .php files to execute them.
After that if you open the web browser and type:
http://localhost/testphp.php
you should see the following:
http://localhost/testphp.php
you should see the following:
Installing MySQL.
Testing MySQL.
In order to use PHP with MySQL.
References.
[1] http://community.linuxmint.com/tutorial/view/486