SELinux

PEAR::Logで/var/log/test.logを作ったらSELinuxに警告された。

Warning: chmod(): Permission denied in /usr/share/pear/Log/file.php on line 225 Call Stack: 0.0005 323868 1. {main}() /var/www/html/pear_log_test.php:0 0.0031 486228 2. Log_file->log() /var/www/html/pear_log_test.php:7 0.0031 486228 3. Log…

Samba覚書その2

Sambaで共有した(ホーム)ディレクトリに、そのディレクトリ外のディレクトリ(具体的には/var/www/html)への シンボリックリンクを貼ってアクセス出来なかったのを出来るようにしたメモ。 SELinux いつものヤツ。 setsebool -P samba_export_all_rw true …

CentOSでphpでmemcache。

memcached yum -y install memcached chkconfig memcached on service memcached start php-pecl-memcache yum -y install php-pecl-memcache コード。 connect('localhost', 11211) or die("接続できませんでした。"); echo("接続しました。"); $memcache->…

Sambaの覚書。

Sambaの導入。 Homeserver on Linux – 自宅サーバーを作ろう | Just another WordPress site ポートを開ける。 iptables -I INPUT -p tcp -m tcp --dport 139 --syn -j ACCEPT service iptables save service iptables restart sambaで利用するポート|samba…