You are on page 1of 7

School of Computing

Science and Engineering

Program: B. Tech
Course Code:BCSE3096
Course Name: Cloud Application
Development
School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

2. INSTALLING PHP 5 AND MYSQL


• To install PHP5 and MySQL
• $ sudo apt-get install mysql-server libapache2-mod-auth-mysql
php5-mysql

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

TO CHECK IF  PHP IS WORKING


• Go to /var/www/ folder and create a file with .php extension
(test.php)
• Type or copy <?phpphpinfo(); ?>and save it.
• Now open up your browser and go to “http://localhost/test.php” if
you see the page same as below then php is successfully
installed.

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

To Check if PHP is Working


 Go to /var/www/ folder and create a file with .php extension (test.php)
 Type or copy <?phpphpinfo(); ?>and save it.
Now open up your browser and go to “http://localhost/test.php” if you see the page same as below
then php is successfully installed.

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

3. SETTING UP MYSQL PASSWORD


• Open the terminal and type:-
 $ mysql -u root                                    
    // MySQL console will open up
 $ mysql> SET PASSWORD FOR ‘root’@’localhost’ =
PASSWORD(‘yourpassword’)     //Open phpMyAdmin portal
• Open your Browser and type
in http://localhost/phpmyadmin.Username: root and password
(blank or either “password”).

Program Name: B.Tech


School of Computing Science and Engineering
Course Code : BCSE3096 Course Name: CAD

Program Name: B.Tech

You might also like