歡迎您光臨本站 註冊首頁

RHEL5.1+SELINUX--LAMP=APACHE+PHP+MYSQL+PHPMYADMIN+ZEND

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

RHEL5.1+SELINUX--LAMP=APACHE+PHP+MYSQL+PHPMYADMIN+ZEND

Install LAMP
編譯環境:RedHat Enterprise AS 5.1 開啟SELlinux(我個人認為,它既然被REDHAT用上了,肯定就有它的道理,沒有理由關掉它啊,嘿嘿)
安裝所需要的軟體均為最新的源代碼包:
GD及庫相關         
curl-7.17.1.tar.gz     libpng-1.2.24.tar.bz2   zlib-1.2.3.tar.gz
freetype-2.3.5.tar.gz  libxslt-1.1.22.tar.gz   jpegsrc.v6b.tar.gz
gd-2.0.36RC1.tar.bz2   libxml2-2.6.30.tar.gz   


PHP相關軟體
phpMyAdmin-2.11.3-all-languages.tar.bz2
php-5.2.5.tar.bz2  
suhosin-patch-5.2.5-0.9.6.2.patch
ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz         
           
APACHE相關軟體
httpd-2.2.6.tar.bz2   

mysql相關軟體
mysql-5.1.22-rc.tar.gz  
                    


一、安裝GD庫及其它庫文件
1.install zlib
tar xzvf  zlib-1.2.3.tar.gz
cd  zlib-1.2.3
./configure
make
make install

2. install libpng
tar xjvf libpng-1.2.24.tar.bz2
cd libpng-1.2.24
cp ./scripts/makefile.std makefile
make
make install

3.install freetype
tar xzvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure
make
make install

4.install jpeg
tar xzvf jpegsrc.v6b.tar.gz
cd jpeg-6b
mkdir -p /usr/local/man/man1
./configure --enable-shared --enable-static
make
make install

5.install curl
tar xzvf curl-7.17.1.tar.gz
cd curl-7.17.1
./configure
make
make install

6.install libxml2
tar xzvf libxml2-2.6.30.tar.gz
cd libxml2-2.6.30
./configure
make
make install

7.install libxslt
tar xzvf libxslt-1.1.22.tar.gz
cd libxslt-1.1.22
./configure --with-libxml
make
make install

8.install gd
tar xjvf gd-2.0.36RC1.tar.bz2
cd gd-2.0.36RC1
./configure --jpeg --with-png --with-zlib --with-freetype
make
make install

二、安裝mysql資料庫

# mkdir /httpd

# tar xzvf mysql-5.1.22-rc.tar.gz
# cd mysql-5.1.22-rc
# groupadd mysql
# useradd -g mysql mysql
#  ./configure \
> --prefix=/httpd/mysql --sysconfdir=/httpd/mysql --enable-assembler \
> --with-unix-socket-path=/tmp/mysql.sock --with-mysqld-user=mysql \
> --with-mysqld-ldflags=-a-static --with-innodb --with-extra-charsets=all \
> --with-charset=gb2312 --with-collation=gb2312_chinese_ci \
> --enable-thread-safe-client
# make
# make install
# cp support-files/my-medium.cnf /etc/my.cnf
# ./scripts/mysql_install_db --user=mysql
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/httpd/mysql/bin/mysqladmin -u root password 'new-password'
/httpd/mysql/bin/mysqladmin -u root -h Kevin password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /httpd/mysql ; /httpd/mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /httpd/mysql/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com

#cd /httpd/mysql
# chown -R root .
# chown -R mysql var
# chown -R mysql var/.
# chown -R mysql var/mysql/.
# chgrp -R mysql .
#cd /soft/mysql-5.1.22-rc
# cp support-files/mysql.server /etc/rc.d/init.d/mysqld
# chmod 700 /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld
# chmod +x /etc/rc.d/init.d/mysqld

# /httpd/mysql/bin/mysqld_safe --user=mysql &
5321
# 071223 09:12:27 mysqld_safe Logging to
'/httpd/mysql/var/Kevin.err'.
071223 09:12:28 mysqld_safe Starting mysqld daemon with databases from
/httpd/mysql/var

kconfig --level 345 mysqld on
# service mysqld stop
Shutting down MySQL..071223 09:18:54 mysqld_safe mysqld from pid file
/httpd/mysql/var/Kevin.pid ended
                                                           [  OK  ]
+  Done                    /httpd/mysql/bin/mysqld_safe --user=mysql

ln -s /httpd/mysql/bin/mysql /sbin/mysql
# ln -s /httpd/mysql/bin/mysqladmin /sbin/mysqladmin
#  PATH=&PATH:/httpd/mysql/bin
25129
bash: PATH:/httpd/mysql/bin: No such file or directory
+  Done                    PATH=
# export PATH
# echo "/httpd/mysql/lib/mysql" >> /etc/ld.so.conf
# ldconfig

edit the file /etc/my.cnf
# vi /etc/my.cnf

add this two line under the

log = /var/log/mysqld/log.log

and touch the file

# mkdir /var/log/mysqld
# touch /var/log/mysqld/log.log

# chown -R mysql.mysql /var/log/mysqld

# service mysqld start
Starting MySQL.                                            [  OK  ]
#

set password for mysql root
# mysqladmin -u root -p password 'password'
insert the root password before , push enter


三、安裝APACHE伺服器
# tar xjvf httpd-2.2.6.tar.bz2
# cd httpd-2.2.6

#  ./configure --prefix=/httpd/apache --enable-so --enable-track-vars
--enable-mods-shared=all --enable-cache --enable-disk-cache --enable-mem-cache
--enable-rewrite --with-mpm=worker --enable-ssl --with-zlib --enable-suexec
--with-suexec-caller=daemon

# make
# make install
# cp support/apachectl /etc/rc.d/init.d/httpd

edit the file /etc/rc.d/init.d/httpd  and add this in it
# vim /etc/rc.d/init.d/httpd

# Startup script for the Apache Web Server
# chkconfig: 2345 85 15
# description: Apache is a World Wide Web server .It is used to server
# HTML files and CGI.
# processname: httpd
# pidfile: /httpd/apache/log/httpd.pid
# config: /httpd/apache/conf/httpd.conf

# chkconfig --add httpd
# chmod 755 /etc/rc.d/init.d/httpd
# chkconfig --level 345 httpd on

# vim /httpd/apache/conf/httpd.conf

# service httpd start
httpd: Syntax error on line 75 of /httpd/apache/conf/httpd.conf: Cannot load
/httpd/apache/modules/mod_deflate.so into server:
/httpd/apache/modules/mod_deflate.so: cannot restore segment prot after reloc:
Permission denied
提示這個錯誤是因為我開啟了SELINUX,解決方法如下:(後面也會出現這種問題,按照同樣的方法解決即可)

# tail /var/log/message
日誌提示信息如下:
Dec 23 10:32:52 Kevin setroubleshoot:      SELinux is preventing
/httpd/apache/bin/httpd from loading /httpd/apache/modules/mod_deflate.so
which requires text relocation.      For complete SELinux messages. run
sealert -l dea1fd12-6af0-493c-9767-e76b9d8bd3b3

其中For complete SELinux messages.run …… 意思就是說為了完成SELlinux,運行後面的命令

然後我們運行日誌里提示的命令,再從中找有用的信息。
# sealert -l dea1fd12-6af0-493c-9767-e76b9d8bd3b3
Summary
    SELinux is preventing /httpd/apache/bin/httpd from loading
    /httpd/apache/modules/mod_deflate.so which requires text relocation.

Detailed Description
    The /httpd/apache/bin/httpd application attempted to load
    /httpd/apache/modules/mod_deflate.so which requires text relocation.  This
    is a potential security problem. Most libraries do not need this
permission.
    Libraries are sometimes coded incorrectly and request this permission.
The
    http://people.redhat.com/drepper/selinux-mem.html web page explains how to
    remove this requirement.  You can configure SELinux temporarily to allow
    /httpd/apache/modules/mod_deflate.so to use relocation as a workaround,
    until the library is fixed. Please file a
    http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

Allowing Access
    If you trust /httpd/apache/modules/mod_deflate.so to run correctly, you
can
    change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
    /httpd/apache/modules/mod_deflate.so"

    The following command will allow this access:
    chcon -t textrel_shlib_t /httpd/apache/modules/mod_deflate.so
上面這一段,Allowing Acces意思就是說允許訪問(因為最開始的時候是提示許可權拒絕),
這正是我們要找的內容 ,繼續往下看,如果你相信,mod_deflate.so是可信的,你可以
改變這個文件的context為textrel_shlib_t.,用chcon -t textrel_shlib_t /httpd/apache/
modules/mod_deflate.so 這個命令。
用下面的命令將會允許這個訪問:chcon -t textrel_shlib_t /httpd/apache/modules/mod_deflate.so

Additional Information        

Source Context                root:system_r:unconfined_t:SystemLow-SystemHigh
Target Context                root:object_r:etc_runtime_t
Target Objects                /httpd/apache/modules/mod_deflate.so [ file ]
Affected RPM Packages         
Policy RPM                    selinux-policy-2.4.6-104.el5
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.allow_execmod
Host Name                     Kevin
Platform                      Linux Kevin 2.6.18-53.el5xen #1 SMP Wed Oct 10
                              17:06:12 EDT 2007 i686 i686
Alert Count                   1
Line Numbers                  

Raw Audit Messages            

avc: denied { execmod } for comm="httpd" dev=sda2 egid=0 euid=0
exe="/httpd/apache/bin/httpd" exit=-13 fsgid=0 fsuid=0 gid=0 items=0
path="/httpd/apache/modules/mod_deflate.so" pid=23414
scontext=root:system_r:unconfined_t:s0-s0:c0.c1023 sgid=0
subj=root:system_r:unconfined_t:s0-s0:c0.c1023 suid=0 tclass=file
tcontext=root:object_r:etc_runtime_t:s0 tty=pts0 uid=0


# chcon -t textrel_shlib_t /httpd/apache/modules/mod_deflate.so

再重新啟動APACHE服務,又有一個同樣的問題出現了,這次是mod_ssl.so,解決方法同上,我也
把信息貼出來。
# service httpd start
httpd: Syntax error on line 89 of /httpd/apache/conf/httpd.conf: Cannot load
/httpd/apache/modules/mod_ssl.so into server:
/httpd/apache/modules/mod_ssl.so: cannot restore segment prot after reloc:
Permission denied

# tail /var/log/message
Dec 23 10:35:52 Kevin setroubleshoot:      SELinux is preventing
/httpd/apache/bin/httpd from loading /httpd/apache/modules/mod_ssl.so which
requires text relocation.      For complete SELinux messages. run sealert -l
013a3462-7caf-4619-a80c-4c3863537004

# sealert -l 013a3462-7caf-4619-a80c-4c3863537004
Summary
    SELinux is preventing /httpd/apache/bin/httpd from loading
    /httpd/apache/modules/mod_ssl.so which requires text relocation.

Detailed Description
    The /httpd/apache/bin/httpd application attempted to load
    /httpd/apache/modules/mod_ssl.so which requires text relocation.  This is
a
    potential security problem. Most libraries do not need this permission.
    Libraries are sometimes coded incorrectly and request this permission.
The
    http://people.redhat.com/drepper/selinux-mem.html web page explains how to
    remove this requirement.  You can configure SELinux temporarily to allow
    /httpd/apache/modules/mod_ssl.so to use relocation as a workaround, until
    the library is fixed. Please file a
    http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

Allowing Access
    If you trust /httpd/apache/modules/mod_ssl.so to run correctly, you can
    change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
    /httpd/apache/modules/mod_ssl.so"

    The following command will allow this access:
    chcon -t textrel_shlib_t /httpd/apache/modules/mod_ssl.so

Additional Information        

Source Context                root:system_r:unconfined_t:SystemLow-SystemHigh
Target Context                root:object_r:etc_runtime_t
Target Objects                /httpd/apache/modules/mod_ssl.so [ file ]
Affected RPM Packages         
Policy RPM                    selinux-policy-2.4.6-104.el5
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.allow_execmod
Host Name                     Kevin
Platform                      Linux Kevin 2.6.18-53.el5xen #1 SMP Wed Oct 10
                              17:06:12 EDT 2007 i686 i686
Alert Count                   1
Line Numbers                  

Raw Audit Messages            

avc: denied { execmod } for comm="httpd" dev=sda2 egid=0 euid=0
exe="/httpd/apache/bin/httpd" exit=-13 fsgid=0 fsuid=0 gid=0 items=0
path="/httpd/apache/modules/mod_ssl.so" pid=23436
scontext=root:system_r:unconfined_t:s0-s0:c0.c1023 sgid=0
subj=root:system_r:unconfined_t:s0-s0:c0.c1023 suid=0 tclass=file
tcontext=root:object_r:etc_runtime_t:s0 tty=pts0 uid=0

# chcon -t textrel_shlib_t /httpd/apache/modules/mod_ssl.so
# service httpd start
#
OK,可以看到成功啟動了。不信還可以用命令查看一下httpd的進程
# ps -ef | grep httpd
看看有沒有相關的進程,如果沒有,我說如果,那就看看日誌里說什麼,根據日誌來判斷問題所在,進而解決。



[ 本帖最後由 HonestQiao 於 2008-1-18 21:17 編輯 ]
《解決方案》

RHEL5.1+SELINUX--LAMP=APACHE+PHP+MYSQL+PHPMYADMIN+ZEND

四、安裝PHP
# gunzip suhosin-patch-5.25-0.9.6.2.patch.gz
# tar xjvf php-5.2.5.tar.bz2
# patch -p1 < ../suhosin-patch-5.2.5-0.9.6.2.patch
#  ./configure --prefix=/httpd/php --with-apxs2=/httpd/apache/bin/apxs \
> --with-mysql=/httpd/mysql --with-curl --enable-ftp \
> --with-libxml-dir --enable-soap --with-xsl --with-gd --with-jpeg-dir --with-zlib \
> --with-freetype-dir --enable-mbstring --with-iconv --disable-ipv6 \
> --with-mysql-sock=/tmp/mysql.sock --enable-magic-quotes \
> --enable-force-cgi-redirect --enable-short-tags --disable-debug

# make

Build complete.
Don't forget to run 'make test'.

# make test
這個過程會報錯,不過沒關係,繼續
# make install
同樣出現上面的SELunix的問題,同樣的方法解決

/soft/php-5.2.5/sapi/cli/php: error while loading shared libraries:
/usr/local/lib/libxslt.so.1: cannot restore segment prot after reloc:
Permission denied
/soft/php-5.2.5/sapi/cli/php: error while loading shared libraries:
/usr/local/lib/libxslt.so.1: cannot restore segment prot after reloc:
Permission denied
make: Error 127 (ignored)

# tail /var/log/messages
Dec 23 12:23:56 Kevin setroubleshoot:      SELinux is preventing
/soft/php-5.2.5/sapi/cli/php from loading /usr/local/lib/libxslt.so.1.1.22
which requires text relocation.      For complete SELinux messages. run
sealert -l 732b8a74-391c-4243-8474-3bfc7aa88fee

# sealert -l 732b8a74-391c-4243-8474-3bfc7aa88fee
Summary
    SELinux is preventing /soft/php-5.2.5/sapi/cli/php from loading
    /usr/local/lib/libxslt.so.1.1.22 which requires text relocation.

Detailed Description
    The /soft/php-5.2.5/sapi/cli/php application attempted to load
    /usr/local/lib/libxslt.so.1.1.22 which requires text relocation.  This is
a
    potential security problem. Most libraries do not need this permission.
    Libraries are sometimes coded incorrectly and request this permission.
The
    http://people.redhat.com/drepper/selinux-mem.html web page explains how to
    remove this requirement.  You can configure SELinux temporarily to allow
    /usr/local/lib/libxslt.so.1.1.22 to use relocation as a workaround, until
    the library is fixed. Please file a
    http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

Allowing Access
    If you trust /usr/local/lib/libxslt.so.1.1.22 to run correctly, you can
    change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
    /usr/local/lib/libxslt.so.1.1.22"

    The following command will allow this access:
    chcon -t textrel_shlib_t /usr/local/lib/libxslt.so.1.1.22

Additional Information        

Source Context                root:system_r:unconfined_t:SystemLow-SystemHigh
Target Context                system_u:object_r:lib_t
Target Objects                /usr/local/lib/libxslt.so.1.1.22 [ file ]
Affected RPM Packages         
Policy RPM                    selinux-policy-2.4.6-104.el5
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.allow_execmod
Host Name                     Kevin
Platform                      Linux Kevin 2.6.18-53.el5xen #1 SMP Wed Oct 10
                              17:06:12 EDT 2007 i686 i686
Alert Count                   2
Line Numbers                  

Raw Audit Messages            

avc: denied { execmod } for comm="php" dev=sda2 egid=0 euid=0
exe="/soft/php-5.2.5/sapi/cli/php" exit=-13 fsgid=0 fsuid=0 gid=0 items=0
path="/usr/local/lib/libxslt.so.1.1.22" pid=11348
scontext=root:system_r:unconfined_t:s0-s0:c0.c1023 sgid=0
subj=root:system_r:unconfined_t:s0-s0:c0.c1023 suid=0 tclass=file
tcontext=system_u:object_r:lib_t:s0 tty=pts0 uid=0

# chcon -t textrel_shlib_t /usr/local/lib/libxslt.so.1.1.22

# make install
安裝成功

# cp php.ini-dist /httpd/apache/conf/php.ini

# vim /httpd/apache/conf/php.ini
;default_charset = "iso-8859-1"
在這行下面加一行
default_charset = "gbk"

配置apache
# vim /httpd/apache/conf/httpd.conf
找到#AddType application/x-tar .tgz 這行,在下面加兩行。
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
找到下面一行
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>


# service httpd restart
在安裝好PHP重新載入APACHE服務的時候又出現了同樣的問題,同樣的方法解決
httpd: Syntax error on line 108 of /httpd/apache/conf/httpd.conf: Cannot load
/httpd/apache/modules/libphp5.so into server:
/httpd/apache/modules/libphp5.so: cannot restore segment prot after reloc:
Permission denied

# tail /var/log/messages
Dec 23 13:11:05 Kevin setroubleshoot:      SELinux is preventing
/httpd/apache/bin/httpd from loading /httpd/apache/modules/libphp5.so which
requires text relocation.      For complete SELinux messages. run
sealert -l4568ea8d-d6f7-47f2-9b9a-2611e15833dc

# sealert -l 4568ea8d-d6f7-47f2-9b9a-2611e15833dc
Summary
    SELinux is preventing /httpd/apache/bin/httpd from loading
    /httpd/apache/modules/libphp5.so which requires text relocation.

Detailed Description
    The /httpd/apache/bin/httpd application attempted to load
    /httpd/apache/modules/libphp5.so which requires text relocation.  This is
a
    potential security problem. Most libraries do not need this permission.
    Libraries are sometimes coded incorrectly and request this permission.
The
    http://people.redhat.com/drepper/selinux-mem.html web page explains how to
    remove this requirement.  You can configure SELinux temporarily to allow
    /httpd/apache/modules/libphp5.so to use relocation as a workaround, until
    the library is fixed. Please file a
    http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

Allowing Access
    If you trust /httpd/apache/modules/libphp5.so to run correctly, you can
    change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
    /httpd/apache/modules/libphp5.so"

    The following command will allow this access:
    chcon -t textrel_shlib_t /httpd/apache/modules/libphp5.so

Additional Information        

Source Context                root:system_r:unconfined_t:SystemLow-SystemHigh
Target Context                root:object_r:etc_runtime_t
Target Objects                /httpd/apache/modules/libphp5.so [ file ]
Affected RPM Packages         
Policy RPM                    selinux-policy-2.4.6-104.el5
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.allow_execmod
Host Name                     Kevin
Platform                      Linux Kevin 2.6.18-53.el5xen #1 SMP Wed Oct 10
                              17:06:12 EDT 2007 i686 i686
Alert Count                   1
Line Numbers                  

Raw Audit Messages            

avc: denied { execmod } for comm="httpd" dev=sda2 egid=0 euid=0
exe="/httpd/apache/bin/httpd" exit=-13 fsgid=0 fsuid=0 gid=0 items=0
path="/httpd/apache/modules/libphp5.so" pid=10571
scontext=root:system_r:unconfined_t:s0-s0:c0.c1023 sgid=0
subj=root:system_r:unconfined_t:s0-s0:c0.c1023 suid=0 tclass=file
tcontext=root:object_r:etc_runtime_t:s0 tty=pts0 uid=0


# chcon -t textrel_shlib_t /httpd/apache/modules/libphp5.so

# service httpd restart
OK,成功

寫個測試頁面

vi /www/index.php

<?
phpinfo();
?>

打開網站http://localhost結果變成了下載PHP文件了
修改/httpd/apache/conf/httpd.conf  
AddType application/x-httpd-php .php .php5


# service httpd restart  

OK

用 http://loclahost/index.php or http://localhost 測試你的php and apache

五、安裝;zend and phpadmin
1.install zendoptimizer
# tar xzvf ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz
# cd ZendOptimizer-3.3.0-linux-glibc21-i386
# ./install.sh
->->->->->->->
->->
這個我是在圖形界面下安裝的,就沒有截圖了,基本的順序就是這樣子的。
use http://localhost/index.php or http://localhost test the zend program.

2.install phpMyadmin
# tar xjvf phpMyAdmin-2.11.3-all-languages.tar.gz
# cp -rf phpMyAdmin-2.11.3-all-languages /www/phpmyadmin
# cp config.sample.inc.php config.inc.php
# vim config.inc.php

phpMyadmin可以各人發揮了,每個人的需求不一樣,所以配置肯定也不一樣了。以下是我的配置:
CODE:

$cfg['blowfish_secret'] = 'cookie'; (使用cookie加密)


CODE:

$cfg['Servers'][$i]['connect_type']  = 'socket';  (以socket方式連接MySQL)


CODE:

$cfg['Servers'][$i]['compress']      = TRUE; (啟用壓縮以提高速度,如果訪問不正常請改回FALSE)


CODE:

$cfg['Servers'][$i]['auth_type']     = 'cookie'; (使用cookie進行身份驗證)

visite http://localhost/phpmyadmin

用mysql的root登陸,前面我們為root設置了密碼的,如果不設置密碼,用空密碼登陸也會出現一個警告吧 算是,你
用密碼登陸就沒有問題了。
還有一個提示錯誤,可能是php高版本的問題,需要用到mcrypt,我在前面沒有安裝,有時間我再做一次吧。

錯誤提示信息如下:
Cannot load mcrypt extension. Please check your PHP configuration.

因為之前沒有安裝mcrypt,在編譯php的時候也沒有--with-mcrypt
所以現在出現這個錯誤了。如果要解決只有重新編譯mcrypt and php (網上沒有找到答案。。。。。。)
這個問題我在網上找了很多資料,以及google,沒有找到答案,如果有人知道怎麼弄的話,請告訴我,謝謝!!
這樣就不用重新編譯了。

昨天做了一通宵,終於完成了在SELlinux下面配置好LAMP。

第一次在CU發貼,有問題請各位多多賜教!~ 謝謝





[ 本帖最後由 HonestQiao 於 2008-1-18 21:17 編輯 ]
《解決方案》

:em03:  自己先來一個  嘿嘿
《解決方案》

支持 期待完整版本 呵呵
《解決方案》

不錯。支持你。
《解決方案》

請教樓主一個問題,現在RHEL5.1是GLIBC2.5的,而樓主下的ZendOptimizer是GLIBC2.1的,這個不知道樓主是解決的。謝謝
《解決方案》

我現在用的環境還是在AS4下,因為AS5要個序列號,我就沒有想法用了.
樓主的功勞不可埋沒,加精華.
《解決方案》

搭車做個廣告:《SELinux和Apache、Zend Optimizer、MySQL共建和諧伺服器》
http://leopku.blog.sohu.com/73263692.html

基於CentOS 4的
《解決方案》

原帖由 er_shi 於 2008-1-9 20:25 發表 http://bbs.chinaunix.net/images/common/back.gif
請教樓主一個問題,現在RHEL5.1是GLIBC2.5的,而樓主下的ZendOptimizer是GLIBC2.1的,這個不知道樓主是解決的。謝謝


你在裝這個的時候有出錯嗎?把錯誤貼出來看看??
《解決方案》

帖子:6
精華:1
才看到  加精華了  哈哈哈  高興啊  謝謝謝謝:em03:

[火星人 ] RHEL5.1+SELINUX--LAMP=APACHE+PHP+MYSQL+PHPMYADMIN+ZEND已經有735次圍觀

http://coctec.com/docs/service/show-post-17572.html