Skip to main content

Command Palette

Search for a command to run...

Install XAMPP for Linux

Published
•View as Markdown

We could download latest XAMPP from http://www.apachefriends.org/en/xampp-linux.html.

  • Installation: tar xvzf xampp-linux-1.x.x.tar.gz -C /opt. This step is very important, we must use the command to install XAMPP. If you want upgrade exist XAMPP, also use the command to replace old files to upgrade.
  • Run /opt/lampp/lampp start, then XAMPP start.
  • Test page: http://hostname, if there is a page displayed, then XAMPP work well.
  • Restart XAMPP, run /opt/lampp/lampp restart; Security check; run /opt/lampp/lampp security; Switch PHP version, run /opt/lampp/lampp php4 or /opt/lampp/lampp php5; Check PHP version, run /opt/lampp/lampp phpstatus.
  • Close FTP, run /opt/lampp/lampp stopftp, Then FTP would be closed. Even restart XAMPP next time, FTP would not start together.
  • Parameter include: start/stop/restart/startapache/stopapache/startssl/stopssl/startsql/stopsql/startftp/stopftp/security.
  • Run rm -rf /opt/lampp to remove XAMPP.

File directory:

  • /opt/lampp/bin/, XAMPP module directory. For example, /opt/lampp/bin/mysql can start MySQL.
  • /opt/lampp/htdocs/, Apache files directory.
  • /opt/lampp/etc/httpd.conf, Apache configuration files.
  • /opt/lampp/etc/my, MySQL configuration files.
  • /opt/lampp/etc/php.ini, PHP configuration files.
  • /opt/lampp/etc/proftpd.conf, ProFTPD configuration files.
  • /opt/lampp/phpmyadmin/config.inc.php, phpMyAdmin configuration files.

More from this blog

写在新财年前

我不停的有重新开始博客写作的冲动。一直没有付诸行动的原因很多,总结一下,不外乎以下几点: 在当下的简中环境下,因为与中国内地仍有无数联系,我无法做到真正无所顾忌的在线袒露自己的真正观点。 在个人博客和推特之间无法取舍。个人博客确实较重,无法做到推特那样方便。而且据说推特在不久之后也会支持长推特,那就和个人博客更加没有区别了。但是推特上环境过于吵闹,让人无法静下心来输出观点。 懒。或许这才是最

Jun 30, 2023

Hashnode 做博客的一点感受

正在迁移自己的博客,从 Wordpress 到 Hashnode 。发现一些不满意,写在下面: 对标题要求太长。很多中文标题往往两三个字,三四个字即可。但是Hashnode要求至少六七个字符的长度,我经常还得给标题里添加语气废话来扩充长度,满足发布要求; 标题内不支持中英文混合中,英文字母全大写。会自动将标题内的英文字符变为首字母大写,非常讨厌!!! 文章URL是自动从文章标题中取词,但是如果有些文章是系列的,标题相同,只有标题末尾的序号不同,那么这些文章的URL居然是一样的!!!简直是笑话!...

Jul 1, 2022
达

达客宁

153 posts

江南有佳丽 生于帝王州

繁花未曾见 王谢纸上闻

茕茕影孑立 烟雨两凄迷

凭栏望楼台 四百寺安在