How to correctly install XAMPP on Linux and check that it installed correctly. Also, how to add the XAMPP control panel to the Menu and Quick Launch Bar on Linux.
Advertisement:
Earn up to $30 per 1000 clicks : https://linkvertise.net/ac/18643 (*)
The commands needed and instructions are shown below:
You may also be interested in books on XAMPP: https://amzn.to/2DrxEuA
Thanks for watching.
Advertisement:
Earn up to $30 per 1000 clicks : https://linkvertise.net/ac/18643 (*)
COMMANDS & LINKS:
XAMPP : https://link-to.net/18643/XAMPP
Installation: from the Download directory run the following:
Make the file executable: chmod 755 xampp-linux-*-installer.run
Run the installer : sudo ./xampp-linux-*-installer.run
After installation (if it is not already started, start XAMPP then):
In your Browser enter the address : localhost/dashboard/
Check your PHP settings : Click on PHPInfo on the menu
Change the Apache2 User (not necessary in Windows):
1. Click on the "Manage Servers" tab
2. Click on "Apache Web Server"
3. Click on the "Configure" button
4. Click on "Open Conf File" (accept the warning message)
5. Find the entry: User (Note: the User is usually preset to "daemon" or "www-data")
6. Change the User to "YOUR USERNAME" i.e. john (you can leave the Group as is or change it to "YOUR GROUP NAME")
7. Save the file
8. Click OK
9. Restart Apache - IMPORTANT
Change permissions on the "htdocs" directory (not necessary in Windows):
1. Open a Terminal
2. change to the /opt/lampp directory:
cd /opt/lampp
3. Enter:
sudo chown -R $USER:$USER ./htdocs
4. Restart the Apache Web Server from the XAMPP Control Panel
Setup the Security:
1. In Terminal enter:
sudo /opt/lampp/lammp security
2. Perform the recommended actions (Non-production system: use passwords you can easily remember or keep them in a secure place)
3. Notes:
If you are running XAMPP on a Headless Server you might not want to turn off MySQL Network accessibility.
Passwords for MySQL must:
a) be 5 or more characters long
b) Contain UPPERcase and lowercase characters
c) Contain a number
The MySQL pma password isn't really necessary on a test system but it is Good Practice to set one.
The phpMyAdmin Error (existing file is not readable):
1. Open Terminal
2. Enter:
cd /opt/lampp/phpmyadmin/
3. Change the permissions (NOT RECOMMENDED on a production Server):
sudo chmod 644 config.inc.php
4. Change the user (not mentioned in the video but important!):
sudo chown $USER:daemon config.inc.php
Create a SymLink and a Shortcut to htdocs:
Shortcut:
In File Manager drag htdocs to the Directory List (on the left)
SymLink:
1. Open Terminal
2. Enter:
ln -s /opt/lamp/htdocs ~/Documents
Remove the PHPMyAdmin Blowfish secret error:
1. Open Terminal
2. Enter:
cd /opt/lampp/phpmyadmin/
3. Enter:
sudo nano ./config.inc.php
4. Change the $cfg['blowfish_secret'] = 'xampp'; from 'xampp' to a 32 random character string.
5. Save and Exit (ctrl+O, Y and ctrl+X)
Remove the PHPMyAdmin TempDir Error
1. Open Terminal
2. Enter:
sudo mkdir /opt/lampp/phpmyadmin/tmp
3. Change Ownership to you:
sudo chown -R $USER:$USER /opt/lampp/phpmyadmin/tmp
4. Change permissions to 770:
sudo chmod 770 /opt/lampp/phpmyadmin/tmp
Add XAMPP to the Menu and Quick Launch Bar (in Linux):
1. Right click on the Menu Button on the Start Bar
2. Click on "Configure"
3. Click on "Menu"
4. Click on "Open the menu editor"
5. In the left hand column, click on Internet
6. Click on "New Item" button.
7. Enter the Name:
XAMPP
8. Enter the Command:
a) Browse to /opt/lampp
b) Select manager-linux-x64.run
c) Add gksudo plus a space to the start of the command so it reads:
gksudo /opt/lampp/manager-linux-x64.run
9. Change the Icon by clicking on the icon and selecting a new one (can't be an .ico file)
10. Click "OK"
11. Right Click on XAMPP on the Menu and click "Add to panel"
==========================
MY LINKS:
Affordable Web Hosting : https://rapidtechhosting.com/clients/... (affiliate)
Internet development: http://jlavelle.uk
Visual Accounts: https://visualaccounts.co.uk
If you found the video useful, become a Patron: / jlavelle
NOTES:
I tend to make the videos "on the fly", there's no script and everything is done from memory with just a few notes to jog the "old, grey cells". I do apologise for the umms, ahhs, erms, and pregnant pauses in the video - men tend not to be quite as good at multi-tasking :D .
I will, when possible, copy and paste commands to make the videos a little quicker and so as to not waste your time.