Install the Apache + MySQL + PHP + PERL (XAMPP) environment in Ubuntu

Source: Internet
Author: User
Tags chmod phpmyadmin
Recently, I also started playing Linux and instantly felt like I had to go up again. So I installed Ubuntu + Win7 on my laptop. Of course, XAMPP must be installed in Ubuntu. I mean to me.

To install XAMPP, download it from the official website. The downloaded package has only the rw permission and does not have the X permission. Therefore, you must change the permission. For new Ubuntu users, they can only seek online tutorials, but the installation fails.

The first method is to add the x permission to the chmod a + x XAMPP installation package name and change it to an executable file, failure.
The second method is chmod 777 *. run, which previously changed the permission to 777, but still failure.
So I thought, it's always okay to use the root permission for installation. This is the highest permission. That is, try it. First, obtain the root permission.
Get root permission
1. Enter sudo passwd root
2. Enter a new password and confirm the password again.
3. Enter su root at each terminal
After obtaining the permission, switch to the xampp package directory and enter the full name of the./package to install it.
After the installation is complete, an xampp interface is automatically displayed. The storage path of ubuntu14 is under/opt/lampp.
In Ubuntu, there is also a control interface. The command to call up the control interface is as follows:
// The XAMPP graphic panel in Linux must have the root permission
$ Cd/opt/lampp/share/xampp-control-panel
$ Sudo./xampp-control-panel
As shown in the following figure:
     Configuration file directories:
Apache document root directory:/opt/lampp/htdocs/
Apache configuration file:/opt/lampp/etc/httpd. conf
MySQL configuration file:/opt/lampp/etc/my. cnf
PHP configuration file:/opt/lampp/etc/php. ini
ProFTPD configuration file:/opt/lampp/etc/proftpd. conf
PHPMyadmin configuration file:/opt/lampp/phpmyadmin/config. inc. php
    Common XAMPP commands (input as root on the Terminal ):
Start/stop/restart Apache:/opt/lampp start/stop/restart (including starting/stopping/restarting mysql, proftpd)
Security Settings:/opt/lampp security
Use php version/View version:/opt/lampp php4 (5)/phpstatus
Start and stop Apache only:/opt/lampp startapache/stopapache
Start and stop MySQL only:/opt/lampp startmysql/stopmysql
Start and stop only the ProFTPD server:/opt/lampp startftp/stopftp
Start and stop Apache SSL support:/opt/lampp startssl/stopssl
Self-starting with the system:
Ln-s/opt/lampp/etc/rc. d/rc3.d/S99lampp
Ln-s/opt/lampp/etc/rc. d/rc4.d/S99lampp
Ln-s/opt/lampp/etc/rc. d/rc5.d/S99lampp
Cancel auto start:
Ln-s/opt/lampp K01lampp
Uninstall XAMPP: rm-rf/opt/lampp

 

Related Article

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.