安装PHP
tar -zxvf php-5.2.13.tar.gz
cd php-5.2.13
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql/ --with-gd --enable-bcmath --enable-mbstring --with-xml --with-png-dir=/usr --enable-sockets --with-apxs2=/usr/local/httpd/bin/apxs --enable-maintainer-zts
make
make install
安装apache
./configure --prefix=/usr/local/httpd --datadir=/usr/local/httpd/var/ --with-mpm=worker
LoadModule php5_module modules/libphp5.so
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php5
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php-source .php5s
DirectoryIndex index.php DirectoryIndex index.php5
</IfModule>
cat mysql.sql | /usr/local/mysql/bin/mysql -u root -p Zabbix
cat data.sql |/usr/local/mysql/bin/mysql -u root -p Zabbix
cat images_mysql.sql |/usr/local/mysql/bin/mysql -u root -p Zabbix
./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl
echo /usr/local/mysql/lib/mysql/ >>/etc/ld.so.conf
ldconfig
/usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf
/usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/etc/zabbix_agentd.conf
/usr/local/httpd/bin/httpd -f /usr/local/httpd/etc/httpd.conf
/usr/local/mysql/bin/mysqld_safe --defaults-file=/usr/local/mysql/etc/my.cnf &
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-28156-4.html
国之幸
我家滴~
答