- First install Apache, PHP, MySQL, build the lamp environment
sudo apt-get install apache2 installation completed at the end of the following information: * Starting Web server apache2AH00558:apache2:Could not reliably determine the Server ' s fully qualified domain name, using 127.0.1.1. Set the ' ServerName ' directive globally to suppress this message *
Based on the conclusion of the online search: no httpd.conf configured.Check apahe2.conf file Discovery (sudo vim/etc/apache2/apache2.conf) There are no httpad.conf configuration items at all,/etc/apache2/ There are no httpd.conf files, so we have to do the following:1, under/etc/apache2/new httpd.conf file, the content is: ServerName 127.0.0.12, modify/etc/apache2/apache2.conf file in includeoptional Mods-enabled/*.conf is added as follows: # Include All the user configurations : include/etc/apache2/httpd.conf
sudo/etc/init.d/apache2 Restart
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo apt-get install mysql-server (set Password and duplicate password: root)
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo/etc/init.d/apache2 Restart
-
sudo ls /etc/apache2/mods-enabled See php5.conf and php5.load description OK
Here you also need to configure the next/etc/php5/apache2/php.ini
;d Ate.timezone ===> Remove comments after = add Asia/shanghaimax_input_time =600max_execution_time= 600post_max_size =32M
Sudo/etc/init.d/apache2 restart
- Zabbix installation
- sudo apt-get install zabbix-server-mysql
The installation process is very quiet, did not appear online said will enter 2-3 times the database password, sudo/etc/init.d/zabbix-server start will appear: * Zabbix_server is disabled in/etc/default/ Zabbix-server. View related files: sudo vim/etc/default/zabbix-server# The following section # This was by default set to "No" because a MySQL database nee DS to is prepared# and configured before you can start the Zabbix server for the first time.## instructions on what to set The up the database can be found in#/usr/share/doc/zabbix-server-mysql/readme. Debianstart=no is set to No, of course, will not start, change to Yes
-
It's not over yet, because the database is not set
View related files: cat/usr/share/ Doc/zabbix-server-mysql/readme. Debian can see the relevant information:-> Apt-get install mysql-servercreate a new database (let's call it "Zabbix"):-> mysql-p-E "Create Database Zabbix Character Set UTF8 "Create a MySQL user that have access rights to the database (* use another password than ' Secretpassword '):-> mysql-p-E "Grant all on zabbix.*-' Zabbix ' @ ' localhost ' identified by ' Secretpassword '" Cre Ate the database schema:-> zcat/usr/share/zabbix-server-mysql/{schema,images,data}.sql.gz | Mysql-uzabbix-psecretpassword Zabbix We do it (but I added the username, because I am currently logged in to the account is not root, if yes, do not add): Mysql-uroot-p-E "Create Database Zabbix Character Set UTF8 "Mysql-uroot-p-e" Grant all on zabbix.*-' Zabbix ' @ ' localhost ' identified by ' Zabbix ' "zcat/usr/share/zabbix-server-mysql/{schema,images,data}.sql.gz | Mysql-uzabbix-pzabbix Zabbix (Wait a little)
sudo/etc/init.d/zabbix-server Start (success!) )
then install the Zabbix website
sudo apt-get install zabbix-frontend-php again ann quietly installed, did not let input what root, and so, manually copied to the Apache directory: sudo cp-r/usr/share/zabbix/var/ Www/html/zabbix Restart Zabbixsudo/etc/init.d/zabbix-server stopsudo/etc/init.d/zabbix-server start
now access, can finally appear the Setup interface: HTTP//server address or domain name/zabbix
Step Three: Port 3306,password,user is root
but the installation to the last step and the problem, still good, provided the download, download after ftp to the server
After download, put the file in the /etc/zabbix/directory, refresh the page, OK
OK, it's finally ready. Login user name password Admin/zabbix
Finally, install the Zabbix client
sudo apt-get install zabbix-agent after installing the client, you need to modify the Zabbix configuration file/etc/zabbix/zabbix_agent.conf and/etc/zabbix/if it is not the server natively Zabbix_sagentd.conf line Server=zabbix server address or domain name
Problems that you may encounter
WORKAROUND: 1. Set "configuration--host" on the page to set the host to monitor the client's machine hostname. The hostname in 2./etc/zabbix/zabbix_agent.conf is consistent with the settings in 1.
Finally, this post references: http://blog.csdn.net/Yoara/article/details/41845473