Linux + XAMPP + BugFree Configuration

Source: Internet
Author: User
Tags password protection

First download XAMPP:
XAMPPLinux1.6.8a:
Http://jaist.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.6.8a.tar.gz

For how to install and configure XAMPP in Linux, refer to the official website:
Http://www.apachefriends.org/zh_cn/xampp-linux.html

Before installation, check whether port 80 of your server is occupied.
Netstat-an | grep-w 80
If the service is in use, disable the service first. Port 80 is required for XAMPP startup.

Install XAMPP:
[Root @ localhost ~] # Tar xvfz xampp-linux-1.6.8a.tar.gz-C/opt
Then start (see the XAMPP website for command parameters ):
Opt/lampp start

You should be able to see a message similar to the following on the screen:

Starting XAMPP 1.6.8a...
LAMPP: Starting Apache...
LAMPP: StartingMySQL...
LAMPP started.

Okay. Apache and MySQL are running
You only need to enter the following link in your browser:Http: // localhost

The XAMPP start page of some sample programs indicates that the XAMPP installation is successful. Next, we need to configure XAMPP Security.

Configure XAMPP Security:
[Root @ localhost ~] #/Opt/lampp Security
XAMPP: quick security check...
XAMPP: Your XAMPP pages are not secured by a password.
XAMPP: Do you want to set a password? [Yes] XAMPP: Do you want to set a password? [Yes] Yes
XAMPP: Do you want to set a password? [Yes] Yes
XAMPP: password:
XAMPP: Password (again ):
XAMPP: password protection active. Please use 'lampp 'as user name!
XAMPP: MySQL is accessable via network.
XAMPP: normaly that's not recommended. Do you want me to turn it off? [Yes] Yes
XAMPP: turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: the MySQL/phpMyAdmin user PMA has no password set !!!
XAMPP: Do you want to set a password? [Yes] Yes
XAMPP: password:
XAMPP: Password (again ):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set !!!
XAMPP: Do you want to set a password? [Yes] yes
XAMPP: Write the password somewhere down to make sure you won't forget it !!!
XAMPP: Password:
XAMPP: Password (again ):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password is still set to 'lampp '.
XAMPP: Do you want to change the password? [Yes] yes
XAMPP: Password:
XAMPP: Password (again ):
XAMPP: Reload ProFTPD...
XAMPP: Done.

And set XAMPP to start automatically with the System
[Root @ localhost ~] # Ln-s/opt/lampp/etc/rc. d/rc3.d/S99lampp
[Root @ localhost ~] # Ln-s/opt/lampp/etc/rc. d/rc4.d/S99lampp
[Root @ localhost ~] # Ln-s/opt/lampp/etc/rc. d/rc5.d/S99lampp

Since then, XAMPP has been configured! Configure BugFree as follows:
Download BugFree2:
[Root @ localhost ~] # Wget-chttp: // www.bugfree.org.cn/download/bugfree2.tar.gz
Decompress the package to the htdocs file under Xampp:
[Root @ localhost ~] # Tar xvfz bugfree2.tar.gz-C/opt/lampp/htdocs/

Copy Include/Config. inc. Sample. php TO Include/Config. inc. php, edit and modifyDatabaseLink address:
(Copy command CP and modify command VI. I will not introduce it here)
/* 3. Define the username and password of the BugFree database .*/

$ _ CFG ['db'] ['user'] = 'root'; // database logon Username
$ _ CFG ['db'] ['Password'] = 'Password'; // Password of the database logon user
$ _ CFG ['db'] ['host'] = 'localhost'; // address of the Database Server
$ _ CFG ['db'] ['database'] = 'bugfree'; // specify the name of the bugfree database.
$ _ CFG ['db'] ['tableprefix'] = 'bf _ '; // database table prefix. The default value is BF _. It is not recommended to modify or leave it blank unless there is a conflict.
$ _ CFG ['dbcharset'] = 'utf8'; // sets the database encoding and retains the default value.

Then set the file directory permission:
[Root @ localhost ~] # Cd/opt/lampp/htdocs/bugfree
[Root @ localhost bugfree] # chmod 777 data/tplcompile/
[Root @ localhost bugfree] # chmod 777 bugfile/
[Root @ localhost bugfree] # chmod 777 include/config. Inc. php

After all the configurations are complete, you can access the bugfree:
Http: // localhost/bugfree/set a new database

Phpsql online:
Http: // localhost/PHPmyAdmin/
Use phpsql to operate Mysql Data or log on to MySQL on a Linux terminal
[Root @ ASP-web root] #/opt/lampp/bin/MySQL-u root-P

So far, all installation is complete! The XAMPP platform is really a good thing, saving a lot of trouble in Linux installation!

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.