Install the PHP free host control panel LxAdmin in CentOS5

Source: Internet
Author: User
Lxadmin is an open-source VPS control panel. Free and efficient is its absolute advantage. When using the unmanaged VPS service, Lxadmin not only reduces the cost of using VPS, but also makes it easier for you to control VPS. Lxadmin's latest version 5.0 supports Linux. in the future, Lxadmin will support Windows in version 6.0. The following describes how to install

Lxadmin is an open-source VPS control panel. Free and efficient is its absolute advantage. When using the unmanaged VPS service, Lxadmin not only reduces the cost of using VPS, but also makes it easier for you to control VPS.
Lxadmin's latest version 5.0 supports Linux. in the future, Lxadmin will support Windows in version 6.0. The following describes how to install and use Lxadmin.
If the VPS management interface is HyperVM, you can quickly reinstall the system from the "Rebuild" under the "Console" on the control interface. In addition, CentOS-i386-hostinabox is integrated with Lxadmin control panel CentOS, fast and simple. If this version is not provided on your host, and you want to use the free Lxadmin, it doesn't matter, I will teach you.

1. CentOS5 disable SeLinux first.

Edit/etc/selinux/config and find the following link:

# This file controls the state of SELinux on the system.
# SELINUX = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELINUX = enforcing

Comment out SELINUX = enforcing: # SELINUX = enforcing, and add a new line: SELINUX = disabled
Save and close.

Or run the setup command on the terminal to set disable in the firewall selinux and then save
Reboot and restart.

If this step is not performed, the following error occurs:

"Failed loading/usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer. so:/usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/ZendOptimizer. so: cannot restore segment prot after reloc: Permission denied"

.

II. run commands

# Wget http://download.lxlabs.com/download/lxadmin/production/lxadmin-install-master.sh
# Sh./lxadmin-install-master.sh

$ Wget http://download.lxlabs.com/download/kloxo/production/kloxo-install-master.sh
$ Sh./kloxo-install-master.sh

The installation of hosts in China may be slow, because the installation is online (the update source is abroad), and the installation of hosts in the United States will soon be completed. After installation, in addition to Lxadmin, you have installed a series of server software such as Apache, Lighttpd, MySQL, Xcache, Bind, and Djbdns.

Next we will complete the subsequent installation and complete the installation on the terminal (/* Here is the remarks, do not execute */).

* Yum install php-bcmath/* high-precision mathematical operation component, which is not installed by default and used in MD5 operation */
* Yum check-update/* check all updates */
* Yum update/* update all updates */
* Yum clean all/* clear all cached installation files (all installation is complete, leaving a waste of space )*/

OK. the Lxadmin panel is basically installed. you can close the terminal. Let's log on to Lxadmin. The first login username and password are both admin,
Address:

* Https: // yourdomain: 7777 * secure connection, but the default certificate is not trusted by IE */
/* Http: // yourdomain: 7778/* use this normal link */

Zend can be enabled in PHPConfig in the Lxadmin background, and Apache can be selected from SwichProgram. we recommend that you first select lighttpd and bind, and then select apache and djbdns. Otherwise, you will see high memory usage.
We recommend that you use Apache. 99% supports. htaccess rewrite rules.

3. select the server suite to use

Home-> Sever: inux-> SwitchProgram

The efficiency of the server program lighttpd is much higher than that of Apache, and the master can choose lighttpd. its Rewrite rules are different from those of Apache, which is a little troublesome. for a newbie, forget to be honest and practical. Dns uses djbdns, a lightweight and efficient DNS.

IV. domain name settings

Lxadmin control panel has a special feature. you must first set the DNS server; otherwise, you cannot add a domain name. You can set it as needed. The low-cost VPS we buy is not enough system resources, so we don't need to make it more affordable. However, we still need to introduce how to use DNS.

Home-> Resources-> DNS Templates

Enter the name as needed and select the IP address used for the DNS service. The following two DNS service domain names are generally in a format similar to ns.youtdomain.com (no requirements are required, so you can add them as needed.
Let's take a domain name registered in Godaddy as an example to see how to have your own DNS server. First, go to the domain name management interface and add content in Host Summary. the domain name is the DNS server you just set up, and the IP address is also just filled in.
Change the DNS server to your own. now you can add a domain name. after adding a domain name, the system will automatically generate an FTP account with the username yourdomain.com and administrator password. This account can only be a folder of the FTP domain name. Another admin can control all sites.
When it comes to installation, it takes a lot of space, because Lxadmin has preset various website programs for quick installation. After reading this, the software version is too old. delete it to save space.

/Home/lxadmin/httpd/installsoft/

5. install the kloxo/lxadmin Chinese language pack

1. log on to your VPS using ssh

2. go to the lang Directory:

$ Cd/usr/local/lxlabs/lxadmin/httpdocs/lang

Kloxo is:

Cd/usr/local/lxlabs/kloxo/httpdocs/lang

3. download the language pack:

$ Wget http://soft.vpser.net/lxadmin/lxadmin_cn_pack.zip

4. decompress:

$ Unzip lxadmin_cn_pack.zip
(If the unzip command is not installed, run yum-y install unzip to install it)

5. access http: // your IP: 7778/and set lxadmin language

Select Chinese in Appearance-> Language and click update to confirm.

This Chinese language pack is improved based on a version that has been circulated on the Internet, but there are still many areas where there is no Chinese language. you can reply in this post which key parts of the Chinese language pack are incorrect or not in Chinese language, we will make updates in time. we hope to make a perfect lxadmin Chinese language pack.

Note: This step is not required. skip this step if you do not need the Chinese language of LxAdmin.

6. disable lxadmin's automatic log file generation function

Recently purchased VPS space has been used a lot, and lxadmin is installed, most of the time because the log function of lxadmin is not disabled. The log file is in the following Directory:

/Home/httpd/* (directory name)/stats/* (file name)

The log file size varies with the access volume.

Cancellation method:

Domains> your domains> Domain Adm> Domain Features> Enable Statistics

In this way, the log function of lxadmin is disabled.

Note: This is not required. do not disable the log feature of LxAdmin if you need it.

VII. LXADMIN cracking

Modify the file display. php file path

/Usr/local/lxlabs/kloxo/httpdocs

Content:

PHP code

Function crack ()
{
Global $ gbl;
Global $ sgbl;
Global $ login;
Global $ ghtml;
$ License = $ login-> getObject ("license ");
$ Name = $ license-> licensecom_ B-> lic_ipaddress; // This section is used to determine whether the system-saved authorization has been cracked. If yes, the cracking process is skipped.
If (stristr ($ name, "Bendy ")){
Return;
}
$ License-> licensecom_ B-> lic_ipaddress = "crack by www. dezend. cc Bendy". stristr ($ name, "("); // change authorization file description
$ License-> licensecom_ B-> maindomain_num = "Unlimited ";
$ License-> licensecom_ B-> domain_num = "Unlimited ";
$ License-> licensecom_ B-> vps_num = "Unlimited ";
$ License-> licensecom_ B-> pserver_num = "Unlimited ";
$ License-> licensecom_ B-> client_num = "Unlimited ";
$ Login-> priv-> maindomain_num = "Unlimited ";
$ Login-> priv-> pserver_num = "Unlimited ";
$ Login-> priv-> vps_num = "Unlimited ";
$ License-> setUpdateSubaction ();
$ License-> write (); // update authorization materials
$ Login-> setUpdateSubaction ();
$ Login-> write (); // update permission information (I studied this for a long time and found out... TTMD, which originally had a permission information)
Throw new lxException ("Crack OK! Your have Unlimited domain/vps NUM and full fuction now! "," "); // The password is successfully cracked... it is displayed.
Exit;


}
$ V = 0;
Include_once ("htmllib/coredisplaylib. php ");
Sleep ($ v );
Print_time ("start ");
Display_init ();
Print_time ("start", "Start ");
Crack (); // This line is added. The previous line does not support cracking. This will call the cracking function.
Display_exec ();
?

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.