For details about how to install XAMPPFORLinux, see here. What's more, the official website is very detailed. here I will talk about the solution that is wrong when I install XAMPP (LAMPP) server suite in UbuntuLinux. 1. When I install XAMPP on a terminal,/opt/lampp: line74: arch: commandnotfound error cause: solution not found: Enter sudonano/bin/on the terminal/
FOR more information about how to install xampp for Linux, see here. In addition, the official website is very detailed. Here we will discuss the solution to the error when I install XAMPP (LAMPP) server suite in Ubuntu Linux.
1. The/opt/lampp: line 74: arch: command not found error message is displayed when XAMPP is installed on the terminal.
Cause: not found
Solution:
Enter sudo nano/bin/arch on the terminal
In the displayed edit box, add an uname-m line to save and exit.
Enter sudo chmod + x/bin/arch in the terminal again
Problem Solving
2. If warning: World-writable config file/opt/lampp/etc/my. cnf is ignored
Cause: XAMPP sets the read permission for my. cnf and does not allow World-writable (literally, it can be read and written all over the World)
Solution: Run sudo chmod 644/opt/lampp/etc/my. cnf on the terminal.
3. The phpMyAdmin page displays: Wrong permissions on configuration file, shocould not be world writable
Cause: This is none of the XAMPP issues. It is a problem with phpmyadmin directory permission settings. If you set chmod 777 for all phpmyadmin files, this prompt will appear.
Solution: you only need to modify the file attributes. phpmyadmin must run under the 755 permission,
Run sudo chmod-R 755/opt/lampp/phpmyadmin on the terminal
The last two items 2 and 3 are shown in the figure to give the entire lampp directory to chmod-R 777. You should pay attention to this issue in the future.
If you think the xampp htdocs directory is not good under opt/lampp,
Run sudo/opt/lampp security on the terminal to solve the security problem,
Then sudo cp-R/opt/lampp/htdocs/home/htdocs copies the entire htdocs directory to/home,
Then sudo chmod-R 777/home/htdocs gives us the permission to modify the htdocs directory,