Tuesday , 24 January 2017
Home » Home

Home

Running PPTP VPN with CSF firewall

Most of the time pptp vpn doesnt work with csf firewall. Here is the guide to make it working. 1) type the following command: nano /etc/csf/csfpre.sh 2) Put the following into the file: iptables -A INPUT -i venet0 -p tcp --dport 1723 -j ACCEPT iptables -A INPUT -i venet0 -p gre -j ACCEPT iptables -A OUTPUT -p gre -j ACCEPT …

Read More »

CentOS Linux install and configure NTP to synchronize the system clock

Q. How do I install and configure NTP under CentOS Linux 5 server to synchronize the system clock? A. You can easily install NTP (Network Time Protocol, a means of transmitting time signals over a computer network) using yum command under Redhat or CentOS/Fedora core Linux. Procedure Login as the root user Type the following command to install ntp # …

Read More »

cPanel: Apache + PHP FastCGI Data Timeout Error

If you are run on cPanel server and have FastCGI enabled in Apache, you might facing following error which caused your website hang or prompting ’500 Internal Server Error’ message. When checking into/etc/httpd/log/error_log, you will see something similar as below: [warn] .. mod_fcgid: read data timeout in 40 seconds, ... [error] .. Premature end of script headers: index.php ... This …

Read More »

CentOS and RHEL 7 Restart, Stop, Start Networking Commands

I recently installed CentOS Linux version 7 or Red Hat Enterprise Linux version 7. How can I restart networking service using command line options? How can I start / stop and restart networking service on a CentOS/RHEL 7 based system?CentOS 7 / RHEL 7 / Fedora Linux (many other modern distor) uses Systemd. It is a system and service manager …

Read More »

UNIX Date Command Examples

How do I view and set date under UNIX operating systems? The date command under UNIX display date. It is also used to set date and time. You must be the super-user (root) to change the date and time. UNIX Date Command Syntax date date "+format" Task: Display Current Date and Time Type the following command: date Sample outputs: Tue …

Read More »

Display Hard Disk Specs and Details on Linux

Linux comes with various commands to find out information about your hard drive. I recommend hdparm command which provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE device driver subsystem. This command read / request identification information such as disk size, description and much more directly from the drive, which is displayed in …

Read More »

HowTo Run a Script In Linux

How do I run a Linux shell script? How can I run a script in Linux? By default script will not run. You need to set execute permission for your script. To execute or run script type the following command: chmod +x script-name-here OR chmod 0755 script.sh Use the ls command to view permission on the script: $ ls -l …

Read More »