Install bugfree in Linux

Source: Internet
Author: User
Tags password protection startssl

Configuration environment:

OS: Linux fc7

XAMPP version: xampp-linux-1.7.7.tar.gz

Bugfree version: v2.1.3

1. preparations:

Before installation, check whether port 80 of the server is occupied, because port 80 is required for XAMPP to start. If the server is occupied, disable the service first.

Netstat-an | grep-W 80

2. Share XAMPP and bugfree

There are many ways to interact with files in windows. Here we use file sharing to share the folders where XAMPP and bugfree are located in windows. In VMWare, open Linux, setting-> options-> Shared Folders: Add a shared folder. After the folder is successfully added, you can view the shared file content in the MNT/HGFS folder of Linux.

3. Install XAMPP

Decompress xampp-linux-1.7.7.tar.gz to the OPT Folder:

[Root @ localhost/] # tar xfz MNT/HGFS/XAMPP-Linux/xampp-linux-1.7.7.tar.gz-C/OPT

Run the following command to run XAMPP:

[Root @ localhost/] # opt/lampp/start

The following message is displayed on the screen:
Starting XAMPP 1.7.7...
Lampp: Starting Apache...
Lampp: Starting MySQL...
Lampp started.

Apache and MySQL are running.

Check whether the task can run normally:

[Root @ localhost/] # curl http: // localhost/

Advanced start and stop parameters:

Parameters Description
Start Start XAMPP.
Stop Stop XAMPP.
Restart Restart XAMPP.
Startapache Start Apache only.
Startssl Start SSL support for Apache. This command will continue to activate SSL support. For example, after you execute this command, If you disable and restart XAMPP, SSL will remain active.
Startmysql Only start the MySQL database.
Startftp Start the ProFTPd server. Through FTP, you can upload files to your network server (username "nobody", password "lampp "). This command will continue to activate ProFTPd. For example, after you execute this command, If you disable and restart XAMPP, FTP will remain active.
Stopapache Stop Apache.
Stopssl Disable SSL support for Apache. This command will continue to stop SSL support. For example, after you execute this command, If you disable and restart XAMPP, SSL will still be in the stopped state.
Stopmysql Stop the MySQL database.
Stopftp Stop the ProFTPd server. This command will continue to stop ProFTPd. For example, after you execute this command, if you close and restart XAMPP, FTP will still be in the stopped status.
Security Start a small security check program.

For example, to enable Apache with SSL support, you only need to enter the following command (as root ):

[Root @ localhost/] # opt/lampp startssl
Important files and directories

File/directory Purpose
/Opt/lampp/bin/ XAMPP command library. For example,/opt/lampp/bin/MySQL can execute the MySQL monitor.
/Opt/lampp/htdocs/ Apache document root directory.
/Opt/lampp/etc/httpd. conf Apache configuration file.
/Opt/lampp/etc/My. CNF MySQL preparation file.
/Opt/lampp/etc/PHP. ini PHP preparation file.
/Opt/lampp/etc/ProFTPd. conf ProFTPD preparation file. (Starting from version 0.9.5)
/Opt/lampp/PHPmyAdmin/config. Inc. php PhpMyAdmin preparation file.

4. 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.
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
In this way, XAMPP is set.

5. Install bugfree

First, extract the bugfree package to OPT/lampp/htdocs:

[Root @ localhost/] # unzip MNT/HGFS/XAMPP-Linux/bugfree2.1.3.zip-D opt/lampp/htdocs

Copy include/config. Inc. sample. php to include/config. Inc. php, edit and modify the database link address:

[Root @ localhost include] # cp include/config. Inc. sample. php Include/config. Inc. php

Modify the config. Inc. php file:

[Root @ localhost include] # vi config. Inc. php

/* 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.

Note: press I to modify the file. Press ESC to return to normal mode. Enter WQ to save the file and exit. Enter Q! Do not save the modified file and leave.

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

At this point, the bugfree has been configured. Access bugfree under Win to set a new database.

Http: // ip/bugfree

Log on to bugfree. The following page appears:

View solution on the Internet: Modify the OPT/lampp/etc/PHP. ini file

 

Allow_call_time_pass_reference = off, and change off to on

Restart the server to solve the problem.

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.