文章标签 » redhat

php-fpm 5.3.3 rpm package with root privileges for centos/redhat 6

出于安全的考虑从源里面安装的php-fpm是不允许以root权限运行的

ERROR: [pool www] please specify user and group other than root

但是有些时候确实需要root权限,可以使用我打的开放root版本

php-fpm-5.3.3-1.i_want_root.el6.i386.rpm
php-fpm-5.3.3-1.i_want_root.el6.x86_64.rpm

如果想打其他php版本的包,可以修改下面的脚本使用

#!/bin/sh
yum install rpm-build gcc make subversion wget
yum install bzip2-devel gmp-devel zlib-devel pcre-devel libxml2-devel openssl-devel
test ! -f ./autoconf-2.13-8.noarch.rpm && wget "http://rpm.bluehua.org/php-fpm/autoconf-2.13-8.noarch.rpm"
rpm -e autoconf
rpm -ivh ./autoconf-2.13-8.noarch.rpm
#修改源码版本
test ! -f ./php-5.3.3.tar.bz2 && wget "http://museum.php.net/php5/php-5.3.3.tar.bz2"
tar jxvf ./php-5.3.3.tar.bz2
cd php-5.3.3/
rm -rf ./sapi/fpm/
#选择适当的php-fpm版本
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_10/sapi/fpm/ ./sapi/fpm
./buildconf --force
test ! -f ./php-fpm-build-rpm.tar.gz && wget "http://rpm.bluehua.org/php-fpm/php-fpm-build-rpm.tar.gz"
tar zxvf ./php-fpm-build-rpm.tar.gz
#修改php-fpm.spec中的版本号
rpmbuild -bb ./php-fpm.spec

开始提供坑爹的找不到的rpm下载

php-sqlite-5.3.3-1.el6.i686.rpm
php-sqlite-5.3.3-1.el6.x86_64.rpm

之后碰到找不到的包都会打好放到这里~

backup:install virtualbox and vnc server on readhat/centos 6

__WIKI__
==Install pkg from yum==

yum install make gcc gcc-c++ kernel-devel qt qt-x11 libXmu SDL libXt
wget "http://download.virtualbox.org/virtualbox/4.2.4/VirtualBox-4.2-4.2.4_81684_el6-1.x86_64.rpm"
rpm -ivh Virtual*.rpm
yum install wqy-zenhei-fonts.noarch gnome-terminal gnome-session tigervnc-server

==VNC Server Config==
vim /etc/sysconfig/vncservers

#connect vnc with host:5902
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 800x600"

set password for vnc server

vncpasswd

use gnome for X system

vim ~/.vnc/xstartup

#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session &
gnome-terminal &