-
install memcached 1.4.13 on CentOS 6.2 –
install memcached 1.4.13 on CentOS 6.2 –
#bash #CentOS #Database #Linux #memcached #MYSQL #PHPinstall memcached 1.4.13 on CentOS 6.2 :: GadElKareemgadelkareem.com
- Make sure to check PHP-FPM and MYSQL posts. – One of the dependencies of memcache is libevent, get latest version from libevent.org mkdir libevent cd
-
Install PHP 5.3.10 with php-fhm on CentOS 6.2 64-bit –
Install PHP 5.3.10 with php-fhm on CentOS 6.2 64-bit –
#bash #CentOS #curl #Linux #MYSQL #PHP #php-fhm #sapiInstall PHP 5.3.10 with PHP-FPM on CentOS 6.2 64-bit :: GadElKareemgadelkareem.com
- Make sure to check Nginx, memcached and MYSQL posts. – remove old version #find installed packages rpm -qa | grep php #remove php packages yum
-
install curl 7.24 on CentOS 6.2
- Make sure to check PHP-FPM post.
- install from source
wget http://curl.haxx.se/download/curl-7.24.0.tar.bz2 tar xfj curl-7.24.0.tar.bz2 cd curl-7.24.0 ./configure --prefix=/usr make make install #check version curl -V
-
Install MySQL 5.5.21 64-bit RPM on CentOS 6.2 x86_64 :: GadElKareem –
Install MySQL 5.5.21 64-bit RPM on CentOS 6.2 x86_64 :: GadElKareem –
#bash #CentOS #Database #Linux #MYSQLInstall MySQL 5.5.21 64-bit RPM on CentOS 6.2 x86_64 :: GadElKareemgadelkareem.com
Check Installing CentOS 6.2 on VMware, Install PHP 5.3.10 with PHP-FPM on CentOS 6.2 64-bit, Install Nginx 1.0.12 for PHP-FPM on CentOS 6.2 and install
-
Configuring vsFTPd on CentOS with different port :: GadElKareem –
Configuring vsFTPd on CentOS with different port :: GadElKareem –
#bash #CentOS #files #ftp #Linux #vsftpdConfiguring vsFTPd on CentOS with different port :: GadElKareemgadelkareem.com
Check Installing CentOS 6.2 on VMware post. – make sure SELINUX is disabled and iptables is configured for FTP – add ftp user adduser ftpuser -g ftp -s
-
Adding new users and admins to Linux server
Check Installing CentOS 6.2 on VMware post.
Using admin user avoids common mistakes done when logging as root, instead use sudo to run root commands.
mkdir /server #adding web-server user www adduser www -d /server -s /sbin/nologin #adding admins group to use instead of root groupadd admins visudo #add %admins ALL=(ALL) NOPASSWD: ALL #add new admin adduser admin -g admins #set password passwd admin #add email for user admin vi /etc/aliases #add admin: admin@example.com #rebuild data newaliases
-
mounting partitions with noatime
Check Installing CentOS 6.2 on VMware and increase linux file descriptors posts.
This should help reduce disk IO by telling the system not to update inode access times. more here
vi /etc/fstab #add noatime to the options of the / file system ex: /dev/mapper/vg_centos6-lv_root / ext4 defaults,noatime 1 1
- remount file system
mount -o remount / #check cat /proc/mounts | grep noatime
-
Change ssh port and enable X11 forwarding
Check Installing CentOS 6.2 on VMware post.
- configure ssh port
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old vi /etc/ssh/sshd_config #uncomment port 22 and change to port 4568
- enable X11 forwarding
#install needed libraries yum -y install xorg-x11-xauth xorg-x11-fonts-base liberation-fonts vi /etc/ssh/sshd_config #add X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes
- restart sshd
/etc/init.d/sshd restart
Now you should connect to 192.168.126.128:4568
-
Change server hostname :: GadElKareem –
Change server hostname :: GadElKareem –
#bash #CentOS#Linux #systemChange server hostname :: GadElKareemgadelkareem.com
Check Installing CentOS 6.2 on VMware post. Adding Hostname to Linux server vi /etc/hosts # add 127.0.0.1 localhost.localdomain
-
Configuring iptables on CentOS :: GadElKareem –
Configuring iptables on CentOS :: GadElKareem –
#bash #CentOS#Linux #system #iptablesConfiguring iptables on CentOS :: GadElKareemgadelkareem.com
- disable SELINUX vi /etc/selinux/config #change SELINUX=disabled – reboot or run setenforce 0 – add iptables rules mv
