Permalink
Browse files

Update .sh

  • Loading branch information...
1 parent 38b1e18 commit b76b2f4619203d9e601075f7c8882cf2230475c4 @k1LoW committed Aug 17, 2012
Showing with 14 additions and 4 deletions.
  1. +2 −2 apache-php.sh
  2. +6 −1 lamp-cake-centos-simple.sh
  3. +6 −1 lapp-cake-centos-simple.sh
View
@@ -1,6 +1,6 @@
#!/bin/bash
# yum install httpd & php & mysql & postgresql
-yum -y install httpd httpd-devel php php-pear php-devel php-dom php-mbstring php-mysql php-pgsql php-gd
+yum -y install httpd httpd-devel mod_ssl php php-pear php-devel php-dom php-mbstring php-mysql php-pgsql php-gd
# virtual host
cat <<EOF > /etc/httpd/conf.d/virtualhosts.conf
@@ -18,7 +18,7 @@ NameVirtualHost *:443
EOF
# install APC
-yes yes|pecl install apc
+yum -y install php-pecl-apc
echo "extension=apc.so" > /etc/php.d/apc.ini
# pear/pecl command patch
@@ -11,4 +11,9 @@ curl $script_url/iptables-simple.sh|bash
#apache php
curl $script_url/apache-php.sh|bash
#mysql
-curl $script_url/mysql.sh|bash
+curl $script_url/mysql.sh|bash
+
+# SElinux
+setsebool -P httpd_can_network_connect_db 1
+/etc/init.d/httpd restart
+/etc/init.d/mysqld restart
@@ -11,4 +11,9 @@ curl $script_url/iptables-simple.sh|bash
#apache php
curl $script_url/apache-php.sh|bash
#postgresql
-curl $script_url/postgresql.sh|bash
+curl $script_url/postgresql.sh|bash
+
+# SElinux
+setsebool -P httpd_can_network_connect_db 1
+/etc/init.d/httpd restart
+/etc/init.d/postgresql restart

0 comments on commit b76b2f4

Please sign in to comment.