I have obviously messed something up with my PAM configuration and received the following error message: [root@server]# crontab -l Permission denied You (root) are not allowed to access to (crontab) because of pam configuration. To get around this I amended the file: /etc/security/access.conf And added a line for the root user as follows: + :… Read more »
Posts By: jonny
PHP Built-In Web Server
LAMP Development just got a little easier with PHP version 5.4 and the in-built PHP web server. To test a PHP application we can now navigate to the directory on the filesytem: cd ~/websites/whatever.com/httpdocs Then run the PHP Web Server: php -S localhost:8000 In a web browser enter the location http://localhost:8000 to see your web… Read more »
Install Logtail on CentOS
I had a munin plugin script that uses the logtail program. Logtail comes with the ‘logcheck’ package – available in the EPEL repository. To install it make sure you have the EPEL repository installed. If not (for CentOS 6): rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm With the EPEL repository installed, install logcheck: yum install logcheck Logtail is installed… Read more »
Set Default Theme in phpMyAdmin on CentOS

I have installed phpMyAdmin on CentOS 6 via the EPEL repository using: yum install phpMyAdmin I was asked to set the default theme from the new jazzy one to the traditional one. To do so I edited the phpMyAdmin config file. On CentOS this was at /etc/phpMyAdmin/config.inc.php but on other installations it may be under… Read more »
Load Testing FTP with JMeter

I needed to test a ProFTP server to ensure that it could cope with 200 simultaneous users. The relevant lines in /etc/proftpd.conf to control this are: MaxInstances 30 MaxClientsPerHost 20 “Only %m connections per host allowed” MaxClients 20 “Only %m total simultaneous logins allowed” I followed the excellent instructions here for creating a Test Plan… Read more »
Getting Started PhoneGap/Cordova on Linux
I was following the guide How to Install PhoneGap in Ubuntu and I am regurgitating that advice here with my own changes: Install PhoneGap and Pre-requisites sudo apt-get install default-jre default-jdk ant sudo apt-get install npm sudo npm update npm -g sudo npm install n -g sudo n stable sudo npm install -g phonegap Download… Read more »
DigiCert Certificate Inspector on CentOS 6

Installation on CentOS Download the 64-bit RPM: wget https://www.digicert.com/certificate-inspector/agent-pkg/digicertagent-x64.rpm Install the package: rpm -ivh digicertagent-x64.rpm Register the Agent You will need your DigiCert credentials to register the agent: /usr/bin/digicertagent register -desc “MyORG AName” Scan an Server /usr/bin/digicertagent scan -include servername.domain.tld:443 -analyze Amend the Apache SSL Configuration for POODLE Vulnerability In the file used to… Read more »
Unlocking Active Directory Accounts using LDAP

I am using PHP with LDAP to manage some aspects of user accounts within Active Directory. One of the things I needed to do was to reset the accounts of users who had incorrectly entered their password too many times. Initially I thought that the ‘useraccountcontrol’ field was what I needed as this is used… Read more »
LDAPS Active Directory Issues with php-5.3.3-27.el6_5.2.x86_64

I upgraded a CentOS server today updating PHP from php-5.3.3-27.el6_5.x86_64 to php-5.3.3-27.el6_5.2.x86_64 This stopped a PHP web application I had written from being able to communicate with Active Directory over LDAPS. Normal LDAP appears to continue working fine but when I change my connections back to ldaps they stop working. To deal with the problem… Read more »
SSH Socks Proxy for Web Browsing Private Network
We were configuring OpenStack on a private 192.168 network and needed to use a web browser to browse to the OpenStack dashboard. The quickest easiest way to do that is by: ssh -D 8888 jonny@sshgateway From the ssh manpage: -D Specifies a local “dynamic” application-level port forwarding. This works by allocating a socket to listen… Read more »