LINUX_LAMPP (XAMPP)

Source: Internet
Author: User
Tags aliases fully qualified domain name

1 What is Lampp???

The internet search is roughly the case:

Lampp=xampp #改名称为xampp because of a conflict with the LAMPP environment module

XAMPP (Apache+mysql+php+perl)) is a powerful built-in integration package

 01 Installing Apache

    • Yum install-y httpd #yum命令安装
      • Rpm-qa | grep httpd #检查是否安装httpd
    • /ETC/INIT.D/HTTPD Start #启动httpd
      • Ps-ef | grep httpd #检查进程是否启动
      • Service httpd Start #这个也可以查看是否运行
    • /ETC/INIT.D/HTTPD Stop #停止httpd
    • Chkconfig httpd on #设置开机自启动
    • Tips to learn
      • Give the path a name-alias, the next time the alias is directly executed, you can not use aliases directly unalias aliases
      • Vim ~/.bash_profile #编辑
      • Add the variable you want to set: Alias variable name = ' Execute path ', e.g., alias httpd_start= '/etc/init.d/httpd start ' save
      • SOURCE ~/.bash_profile #重载资源文件
      • Execute Httpd_start #等同于/etc/init.d/httpd start
      • Unalias Httpd_start Canceling aliases

Note:

This piece encounters a hate-strange problem, prompting when starting

Starting Httpd:httpd:apr_sockaddr_info_get () failed for root
Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName

Later after lunch, the computer lock screen after the network interruption, again open the screen, unexpectedly did not have this problem .... But still on the Internet to search the relevant information, to avoid similar problems in the follow-up, confused:

Reference article: http://blog.csdn.net/u010187139/article/details/50885071

Copy the following scenario in the article:

VI/ETC/HTTPD/CONF/HTTPD. conf #编辑

Found #ServerName www.example.com:80

Modified to servername www. 1000seo. com: #这里设置为你自己的域名,

If you don't have a domain name, you can set it to localhost:wq! #保存退出

02 Installing MySQL

Reference article: http://blog.csdn.net/u010187139/article/details/50885071

03 Installing PHP

LINUX_LAMPP (XAMPP)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.