Centos and Inodes

Robert AndresenProgramming Leave a Comment

In progress… This post will be updated if I get any more information/fixes… I currently have a web-server (Centos6) hosted at a third-party. Today the Inodes usage was 100% for the second time in 3 months. It looks like it’s the PHP sessions that fills up. Last time I tried to edit the session-settings in php.ini, but didn’t seem to have any affect, …

Centos7 – Something filling up the disk space

Robert AndresenProgramming, Tutorials Leave a Comment

When a webserver uses 100% of the diskspace, there is not enough space to create a session in PHP. In other words people cannot login to your web-application. I had some problems with the httpd logs (/var/log/httpd) over some time with one single webserver. The access log can take up to mulitple gigabytes. After deleting the logs, everything worked fine. After …

Linux Cockpit (Fedora 23 and CentOS 7)

Robert AndresenProgramming, Reviews, Tutorials Leave a Comment

  Today I installed and tested Fedora Server 23. This version of Fedora comes with cockpit, which are a web-interface for server monitoring. I have mostly used CentOS up to now, but Fedora looks more interesting for the reasons I will mention below. To add my CentOS servers to the Cockpit monitoring, I need to install Cockpit on them as well. Setting up …

Backup-script for MySQL

Robert AndresenProgramming Leave a Comment

Shell script for backing up MySQL database. I am running this on a Centos 7 DB-server with MariaDB, but should work on most OS and MySQL installations. This is only an example, and the script is without any warranty. Create a .sh file Edit the .sh file The basics Delete old backups in folder: Where +3 is number of days. …

phpDocumentor

Tutorial: Install phpDocumentor

Robert AndresenProgramming 2 Comments

I followed the tutorial on phpdoc.org: http://phpdoc.org/docs/latest/getting-started/installing.html#system-requirements. The phpdoc.org documentation isn’t exactly a beginners tutorial, so I wrote this tutorial for my self and others benifits 🙂 CentOS Server is used in this tutorial! Requirements are PHP 5.3.3 Intl extension for PHP Graphviz To check for your PHP version, type the following in SSH: To install Intl extension for PHP, type …