CentOS |
These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category. |
|||
Note that it is the .conf file that controls which version of php is used. For some reason this does not seem to be available for php55. |
|||
KVM: setting up bridged mode
systemctl disable NetworkManager systemctl enable network systemctl stop NetworkManager systemctl start network
chkconfig --list network # shows that it should be running systemctl start network # the |
|||
First: install server software and start ityum install nfs-utils nfs-utils-lib system-config-nfs yum install nfs-utils nfs4-acl-tools portmap chkconfig nfs on chkconfig portmap on service nfs start echo 'portmap:ALL' >> /etc/hosts.deny echo 'portmap:192.168.1.0/24' >> /etc/hosts.allow service portmap start run the firewall gui and turn on NFS4 (2049) |
|||
yum install ntp ntpdate ntp-doc chkconfig ntpd on ntpdate pool.ntp.org /etc/init.d/ntpd start date |
|||
Installation
yum install -y php5 php5-common php-xml php-mbstring php-gd yum install -y curl php-pdo #not sure if already in common: yum install -y libcurl3 libcurl3-dev
VER=5.0.12 ROOT=/var/www/owncloud #change to match your own setup wget http://download.owncloud.org/community/owncloud-$VER.tar.bz2 tar -xjf owncloud-$VER.tar.bz2 mv owncloud $ROOT rm -Rf owncloud-* chown -R apache:apache $ROOT
|
|||
wget http://pkgs.repoforge.org/rdiff-backup/rdiff-backup-1.2.8-4.el6.rf.x86_64.rpm rpm -ivh rdiff-backup*.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm #for 7 yum-config-manager --disable epel #disable since we on |
|||
yum list installed | grep php | cut -d' ' -f1 typical result: php.x86_64 php-cli.x86_64 php-common.x86_64 php-devel.x86_64 php-gd.x86_64 php-imap.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mhash.x86_64 php-mysql.x86_64 php-odbc.x86_64 php-pdo.x86_64 php-pear.noarch php-xml.x86_64 php-xmlrpc.x86_64
yum remove php php-* |
|||
|
|||
Recent exploits that use phpMyAdmin highlight the need to keep this code up to date. For more info, see: #first set up the basic info.
|
|||
