Category Archives: Webhosting

Home »  Webhosting

I love Splunk for log aggregation and searching through it. It’s a great tool that comes is various versions  including a limited free cloud based version I use the because of it ease, compression and security when sending my logs over. There is a nice guide on how to install and use the Splunkstorm forwarder. However, to make it autostart by itself rather than having to write something myself to get it running at a reboot you have to: /opt/splunkforwarder/bin/splunk enable boot-start That will create a start script in /etc/init.d. Happy Splunking Related posts: (Obsolete) CentOS 6.x / Nginx / Zpanel: Install Zpanel with Nginx on Centos 6.x server (and a few additional modules) VPS : Basic checks for performance of a VPS and or a Server NagiosXI: Install on CentOS 6.x in an OpenVZ container CentOS / RedHat: Quick Network Bonding eth0 and eth1 Import MySQL […]

There is more than one way to check the performance available on a VPS Server but I go for a 1st quick shot to test if something is falling over. All I one Script: The Guys @ offer a script that does it all or you. Host info , Download Speed Test , and disk IO. Give it a try, it does help you quick and dirty to get some results. wget -O – -o /dev/null | bash VPS Upload and Download Speed: Quick check to see your up and downstream speed for the VPS. wget –share IO (also covered by the all in one script): To get a brief feeling about IO capabilities of a VPS you could use dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync;rm test 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 9.91105 s, 108 MB/s Some com­monly accepted aver­ages […]

Update 03.03.2015: Added author link and changed the installation procedure to match the latest. I hate searching for something more than 10 minutes … twice. I have some things running on DigitalOcean and I’m very happy with them. They are running fast KVM VPS on SSD drives which gives them an amazing performance for an very affordable price. </shameless advertisement> For Ubuntu there is a little DigitalOcean Indicator showing the current VPS status and allowing basic operation. Just enough for my needs. Here is how to get it. sudo add-apt-repository ppa:andrewsomething/digitalocean sudo apt-get update sudo apt-get install digitalocean-indicator To make it fly you will need your digitalocean api key from your account. Related posts: Ubuntu: Powersaving Tweak for Netbooks RedHat/CentOS/Scientific Linux/Debian/Ubuntu/Solaris: Quick NTP Client config Debian 7.0 Wheezy / Proxmox 3.x: Install ZFS Native Centos / Debian / LVM: Add a new disk as a LVM volume Import MySQL Dumpfile […]

I recently switched to backwpup to backup my wordpress sites. Its a nice handy tool to make and sql dump a wordpress xml export zips its all up and uploads to dropbox. What else would anyone want ? you can find the free version of it here. So in the case of a migration or restore I unzip the file in its new home and have to load the databasedump.sql back into the database. Presuming I have setup a database and a user with the appropriate permissions its just mysql -u username -p -h localhost databasename < databasedump.sql And thats pretty much it. The data is in the database. Related posts: RedHat / Centos 6.x: Upgrade or install MySQL 5.6 (fixed again) Centos: How to make splunkstorm forwarder autostart at boot. VPS : Basic checks for performance of a VPS and or a Server RedHat 6.x / Centos 6.x: How to install in […]

There is a build into Owncloud updater, which for whatever reason didn’t work for me. There is also a guide on how to update a self hosted Owncloud under However I find it lacks a few things, so I wrote up my own steps since I use a self hosted Owncloud instance on a server. This applies to the current version 6.0.0 to 6.0.1 upgrade 1. It is recommended to deactivate all 3rd party applications in Owncloud. 2. To Upgrade I performed the following steps as root in the web servers root directory above the “owncloud” home directory. 3. Make a backup of the ownCloud folder. rsync -a owncloud/ owncloud_bkp`date +”%Y%m%d”`/ 4. Download the latest version to the root directory above owncloud: wget 5. Delete everything from your ownCloud installation directory, except data and config. (Your data directory should be a separate “external” directory unless you have it configured it […]

Obsolete, do not use. A) Zpanel is not designed for Nginx b) Zpanel has moved on and is forked as Full credit for the first part goes to khanhicetea Installation zpanal module add-ons zppy commands Troubleshooting Step 1 : Disabled SELinux by changing /etc/sysconfig/selinux with SELINUX=disabled Step 2 : Reboot server. reboot Step 3 : Become root and download the installer script : su – root cd /tmp wget Step 4 : Run it chmod +x ./ Step 5 : Follow instruction to install Step 6 : Reboot server again reboot Step 7 : Login in to ZPanel and set Enabled NGINX Module. Browse to http://ipadressoftheserver login with the details from the install script Step 8 : increase file limit in PHP vi /etc/php.ini upload_max_filesize = 60M #or whatever you want afterwards service php-fpm restart service nginx restart Step 9: Afterwards install additional Modules A list of Zpanel Repos could be […]

MySQL 5.6 has been released as GA and as per Oracle  Notes “With increased performance, scalability, reliability and manageability, MySQL 5.6 helps users meet the most demanding Web, Cloud and embedded application requirements.” So lets try to install it on an existing Centos 6.3 OpenVZ Container running LAMP. Its my Lab container with WordPress and other things running. There is already mysql-5.1.67 on it which we will remove. Please make sure you have a backup / snapshot to roll back if it breaks anything or doesn’t work or perform as expected. We start getting the rpm packages. You can browse for the latest version packages here cd /tmp wget wget wget libaio is needed yum install libaio Now it’s time to say good bye to the old mysql. yum remove mysql mysql-server mysql-libs Hello mysql 5.6 rpm -ivh MySQL-shared-compat-5.6.12-2.el6.x86_64.rpm rpm -ivh MySQL-server-5.6.12-2.el6.x86_64.rpm rpm -ivh MySQL-client-5.6.12-2.el6.x86_64.rpm (updated) I now […]

Assumption: clean fresh minimal installed RedHat or Centos (or any similar linux) registered and updated to the latest revisions: rhn_register #with your details yum -y update #to get latest updates make sure either dns is working or your hosts and IP are in the local /etc/hosts file Time to start the clock: Install the needed packages. # yum -y install mysql-server httpd php php-mysql unzip wget # chkconfig httpd on; chkconfig mysqld on # /etc/init.d/mysqld start Initializing MySQL database:  Installing MySQL system tables.. . OK Filling help tables… OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password ‘new-password’ /usr/bin/mysqladmin -u root -h password ‘new-password’ Alternatively you can run: /usr/bin/mysql_secure_installation which will also […]

I had that on one custom installation I took over where I didn’t want to change anything or rework the whole installation. The fix was extreme  easy. the WordPress directory was owned by root while apache was running as apache user. WordPress updates are executed by the apache client. So changing the directory to be owned by apache removed the ftp request. chown apache:apache wordpress Make sure you apply all other security measures. Related posts: RedHat 6.x / Centos 6.x: How to install in WordPress in less than 10 minutes

%d bloggers like this: