etc/php.ini [MySQL]に extension=mysql.so extension_dir="/usr/lib/php/modules" を追記 /usr/lib/php/modules にmysql.so を入れる # rpm -ivh php-5.0.4-10.src.rpm # cp /usr/src/redhat/SOURCES/php-5.0.4.tar.gz . # tar xzvf php-5.0.4.tar.gz # cd php-5.0.4 # ./configure --with-mysql=shared # make build-modules # cp modules/mysql.so /usr/lib/php/modules/ <2.SELinuxの設定ファイルと無効化> SELinuxの設定ファイルは、/etc/sysconfig/selinux です。 このファイルを編集し、サーバーの再起動(電源OFF,ON)をすることにより、SELinuxの無効化ができます。 具体的編集方法は、ファイル中の SELINUX=enforcing ↓ SELINUX=disabled にして、再起動(reboot)です。 (1.↓画面参照) [root@host ~]# vi /etc/sysconfig/selinuxr This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled←enforcingをdisabledに変更する # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted [root@host ~]# reboot