在分配路径和关联扩展包时遇到错误如下:
--------------------------------------------------------
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
首先安装
2.1安装Apache
yum install httpd httpd-devel
安装完成后,用/etc/init.d/httpd start 启动apache
设为开机启动:chkconfig httpd on
2.2 安装mysql
2.2.1 yum install mysql mysql-server mysql-devel
同样,完成后,用/etc/init.d/mysqld start 启动mysql
2.2.2 设置mysql密码
mysql>; USE mysql;
mysql>; UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
mysql>; FLUSH PRIVILEGES;
2.2.3 允许远程登录
mysql -u root -p
Enter Password: <your new password>
mysql>GRANT ALL PRIVILEGES ON *.* TO '用户名'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;
完成后就能用mysql-front远程管理mysql了。
PHP5.2
要下载
php-5.2.10.tar.bz2libiconv-1.14.tar.gzmcrypt-2.6.8.tar.gzmhash-0.9.9.9.tar.gzlibmcrypt-2.5.8.tar.gz
我已经整理好了
# 安装 libmcrypt
1 2 3 4 5 | cd /usr/local/src/PHP-5.2.17 tar -xzvf ./libmcrypt-2.5.8.tar.gz cd ./libmcrypt-2.5.8 ./configure --prefix=/usr make && make install |
出现报错
安装gcc 等待
完成
tar jxvf php-5.2.10.tar.bz2