Using XAMPP in Windows is a green light, while using tulinux is a red light, with many errors. This also shows that Linux is not for cainiao at all. 1. If you start lampp directly, mysql will not start it. Solution: chown-Rnobody.root/opt/lampp/var/mysql problem solved, mysql started normally! Make sure that mysql is started properly and proceed with the following steps. 2. Install XAMPP on the terminal
In Windows, XAMPP is a green light, while in Ubuntu Linux, it is a red light, with many errors. This also shows that Linux is not for cainiao at all.
1. If you start lampp directly, mysql will not start it.
Solution:
Chown-R nobody. root/opt/lampp/var/mysql
Solve the problem. mysql starts normally! Make sure that mysql is started properly and proceed with the following steps.
2. An error message indicating/opt/lampp: line 74: arch: command not found is displayed when XAMPP is installed on the terminal.
Solution:
Sudo vim/bin/arch
Add a line in the pop-up editing box:
Uname-m
Save and exit. Enter again in the terminal
Sudo chmod + x/bin/arch
Solve the problem.
3. 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:
Sudo chmod 644/opt/lampp/etc/my. cnf
4. 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,
Sudo chmod-R 755/opt/lampp/phpmyadmin
5. If you think the xampp htdocs directory is not good in 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,
Finally, sudo gedit/opt/lampp/etc/httpd. modify the Apache configuration file in conf and replace all/opt/lampp/htdocs in it with the htdocs directory address/home/htdocs. Save and quit.
Add:
If you want to use ProFTPD
Modify the configuration file sudo gedit/opt/lampp/etc/proftpd. conf.
Change/opt/lampp/htdocs to/home/htdocs.