Skip to main content

Installing XAMPP and configuring on Linux Ubuntu

Tutorial Title: Creating environment for PHP (Installing XAMPP and Configuring)
Course: PHP
Instructor: Muhammad Samim


1. Downloading XAMPP

2. Installing XAMPP
  • Go to folder where XAMPP file was downloaded
  • Right click and click on Open in Terminal and run below commands ($ is not included in command but an indicator of Terminal)
  • $ sudo chmod +x filename.run
  • $ sudo ./xampp-linux-x64-7.1.11-0-installer.run
  • Keep everything default and click next and install

3. Configuring XAMPP (In case not running of MySQL Database)
  • Open XAMPP
  • Click on Manage Servers
  • Click on MySQL Databse to be selected
  • Click on Configure
  • Change port 3306 to 3307
  • Click on OK 
  • Click on Start to Run MySQL Database

4. Running Server
  • Open your browser
  • Type localhost and enter

5. Creating Launcher for XAMPP
  • Open Terminal and run the below command ($ is not included in command but an indicator of Terminal)
  • $ sudo apt-get install gksu
  • $ sudo gedit /usr/share/applications/xampp-control-panel.desktop
  • Copy below codes, Paste and save in opened file
[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false

                  • Search by XAM and open


                  6. Giving permission to folder htdocs that can be usable by creating folders and file through any editor  (/opt/lampp/htdocs)
                  • $ sudo chown -R $USER:$USER /opt/lampp/htdocs



                  Comments

                  Popular posts from this blog

                  External Page Submission/Submission to another page

                  Tutorial Title:   External Page Submission/Submission to another page Course: PHP Instructor: Muhammad Samim 1. Submitting action from one page to another page 2. First make one page with name page1.php <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <title>Document</title> </head> <body>      <form action="page2.php" method="post"> //It will direct from page1.php to page2.php           <br><input type="text" placeholder="Email" name="anyNameForEmail">     <br><input type="password" placeholder="Password" name="anyNameForPassword">     <br><input type="submit" name="click">    </form>   </body> </html> 3. Second make another file with name page2.php <?php if(isset($_POST["click"])){     $anyNameO...

                  Extracting Information from form

                  Tutorial Title:  Extracting Information from form Course: PHP Instructor: Muhammad Samim 1. <?php if(isset($_POST["anyName"])) { $anyNameOfVariableForEmail = $_POST["anyNameForEmail"]; //Now because of it email must be typed otherwise it will not work $anyNameOfVariableForPassword = $_POST["anyNameForPassord"];//Now because of it password must be typed otherwise it will not work echo $anyNameOfVariableForEmail; //It will display the email echo $anyNameOfVariableForPassword; //It will display the password } ?> <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <title>Document</title> </head> <body>      <form action="21form.php" method="post">        <input type="text" placeholder="Email" name="anyNameForEmail">        <input type="password" placeholder="...