List open ports and listening services

Command to list all open ports and listening services: netstat -lnptu The output should look something like this: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2458/cupsd tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 2353/postgres tcp6 0 0 :::22 :::* LISTEN 2335/sshd udp…

Installing or Enabling PDO

Benefits of PDO: Support for prepared statements; Object-oriented interface; Data access abstraction; and Produces cleaner code because you can escape multiple values at once PDO comes with PHP 5.1 and up by default. If you don’t have it on your server, try to install using pecl install pdo If it is already installed try edit…