Skip to content
Browse files

Update setup_ioncube_zend

  • Loading branch information...
1 parent d418eab commit 053eed411c287804109a6bb948382099182389fb @inforserver2 committed May 3, 2014
Showing with 7 additions and 7 deletions.
  1. +7 −7 setup_ioncube_zend
View
14 setup_ioncube_zend
@@ -20,8 +20,8 @@ if [ ! -f /usr/local/lib/ioncube/ioncube_loader_lin_5.3.so ]; then
fi
cd ioncube
- mkdir -p /usr/local/lib/ioncube
- cp -rf ioncube_loader_lin_5.3.so /usr/local/lib/ioncube
+ sudo mkdir -p /usr/local/lib/ioncube
+ sudo cp -rf ioncube_loader_lin_5.3.so /usr/local/lib/ioncube
cd ~/pack; rm -rf ioncube
echo done.
@@ -46,8 +46,8 @@ if [ ! -f /usr/local/lib/Zend/ZendGuardLoader.so ]; then
cd ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x
fi
- mkdir -p /usr/local/lib/Zend
- cp -rf ZendGuardLoader.so /usr/local/lib/Zend
+ sudo mkdir -p /usr/local/lib/Zend
+ sudo cp -rf ZendGuardLoader.so /usr/local/lib/Zend
cd ~/pack/automate_files/files
rm -rf ZendGuardLoader-php-5.3-linux-glibc23-x86_64 ZendGuardLoader-php-5.3-linux-glibc23-i386
@@ -57,14 +57,14 @@ fi
if ! grep "zend_extension" /etc/php5/apache2/php.ini -q ; then
echo Pushing ioncube zend load instrutions to php.ini...
-cat >> /etc/php5/apache2/php.ini <<-EOF
+cat << EOF | sudo tee -a /etc/php5/apache2/php.ini
[Zend]
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.3.so
zend_extension=/usr/local/lib/Zend/ZendGuardLoader.so
EOF
- echo "<?php echo phpinfo(); ?>" > /var/www/phpinfo.php
+ echo "<?php echo phpinfo(); ?>" | sudo tee -a /var/www/phpinfo.php
echo done.
fi
-service apache2 restart
+sudo service apache2 restart

0 comments on commit 053eed4

Please sign in to comment.
Something went wrong with that request. Please try again.