配置PHP服务
(1)cd /usr/local/src
(2)解压编译生成安装yasm源码包
(3)安装libmcrypt源码包
(4)安装libvpx源码包
(5)安装tiff源码包
(6)安装libpng源码包
(7)安装freetype 源码包
(8)安装jpegsrc源码包
(9)安装libgb源码包
(10)安装t1lib源码包
tar zxvf t1lib-5.1.2.tar.gz
cd t1lib-5.1.2
./configure --prefix=/usr/local/t1lib --enable-shared
make
make install
ln -s /usr/lib64/libltdl.so /usr/lib/libltdl.so
cp -frp /usr/lib64/libXpm.so* /usr/lib/
(11)安装php源码包
(12)删除当前php目录的的默认文件,把php服务得到配置文件复制过来
(13)修改PHP服务的配置文件
(14)把配置好的文件复制到/etc/rc.d/init.d中并赋予755权限并加入开机启动
(15)修改/usr/local/php/etc/php.ini文件
305 行
disable_functions= passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restor e,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,escapeshellcmd,dll,popen,disk_free_space,checkdnsrr,checkdnsrr,g etservbyname,getservbyport,disk_total_space,posix_ctermid,posix_get_last_error,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,po six_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posixgetpwnam,posix getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posixsetgid,posix setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname
(16)修改/usr/local/nginx/conf/nginx.conf文件
(17)重启服务 nginx 和php-fpm
(18)搭建Discuz论坛
(19)输入ip192.168.100.129安装登陆论坛
原文地址:http://blog.51cto.com/13956537/2177419