Restricting access to phpMyAdmin on an Ubuntu LAMP stack
Under Ubuntu, the phpMyAdmin apache conf file is located at: /etc/apache2/conf.d/phpmyadmin.conf Simply add the following order, allow, deny directives to make it available to localhost only.
CentOS, Hosting, Linux / September 22, 2021 / ashishpsk / 0
Under Ubuntu, the phpMyAdmin apache conf file is located at: /etc/apache2/conf.d/phpmyadmin.conf Simply add the following order, allow, deny directives to make it available to localhost only.
CentOS, Linux / May 19, 2021 / ashishpsk / 0
As usual make sure the system is fully up to date before installing any packages: We are going to use Apache as our web server, install it using this command: Install mod_ssl as well as we are going to need it to configure our Let’s Encrypt SSL certificate: Configure Apache: Create a document root folder
Hosting, wordpress / May 18, 2021 / ashishpsk / 0
Type the following command within the directory where you wish to install wordpress and press the “Enter” key. The latest compressed installation file of WordPress will download. Uncompress the following package. The WordPress platform files will unzip into a directory named “WordPress”. Move the wordpress platform files back up one directory level. Delete the installation
Uncategorized / May 12, 2021 / ashishpsk / 0
exigrep domain.com /var/log/exim_mainlogcat /home/username/.contactemailexim -bpc List the messages in the queue:exim -bop List frozen mais:exit -bp | grep frozen | wc -l Summary of messages in the queue (count, volume, oldest, newest, domain, and totals):exim -bp | exiqsumm Display what Exim is doing right now:exiwhat Test Exim SMTP transactionexim -bh ipaddress Display Exim settings exim -bP
CentOS, Linux / March 27, 2021 / ashishpsk / 0
Command to list groups on a CentOS / RHEL 7 Another option: Command to install GCC and Development Tools on a CentOS / RHEL 7 server: If above command failed, try: A note about failing groupinstall on CentOS/RHEL 7.x: To install all the packages belonging to a package group called “Development Tools” use the following
Linux / March 22, 2021 / ashishpsk / 0
The option -L (options) tells the find the command to follow symbolic links. The /var/www (path…) specifies the directory that will be searched. The (expression) -name "*.js tells find to search files ending with .js (JavaScript files). To search for a file named document.pdf in the /home/linuxize directory, you would use the following command: To run a case-insensitive search, change the -name option with -iname: Find Files by Extension Searching for files by extension