Install Visual Studio code

Note : After installation if you have logged in root the program might not execute. Login with another super user and check.

How to create super user in Debian

Enable mysqli script for PHP for installing wordpress

sudo apt-get update
sudo apt-get install php-mysql
sudo service apache2 restart

Apache shows PHP code instead of executing

this happens if PHP is not included in the mod module in apache. For example after installing wordpress , the setup will no show up but the PHP file will be displayed.

sudo apt-get install php libapache2-mod-php
sudo a2enmod mpm_prefork && sudo a2enmod php8.3
sudo service apache2 restart

Where is httpd.conf in apache2.

Ubuntu and debian


Centos and redhat


Apr_sockaddr_info_get() Failed

This error message is issued when apache2 config test is executed.

Fix your hosts file at /etc/hosts.

1) From command line type hostname to get your hostname. Example output might be

2) Edit /etc/hosts and change the lines to match your hostname. Example:

    ::1 localhost localhost example

3) Open your httpd.conf file and make sure ServerName is defined. If it is not add ServerName

4) Restart apache via command line apachectl -k graceful OR apachectl -k restart

Unable to locate package php-gettext

this error message is issued when PHP is installed.

sudo apt-get install php-gettext

Categories: Uncategorized


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *