Install Visual Studio code

https://wiki.debian.org/VisualStudioCode

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

https://phoenixnap.com/kb/create-a-sudo-user-on-debian

Enable mysqli script for PHP for installing wordpress

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

https://stackoverflow.com/questions/54500881/how-do-i-enable-mysqli-for-my-php-script

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

https://stackoverflow.com/questions/12142172/apache-shows-php-code-instead-of-executing-it

Where is httpd.conf in apache2.

Ubuntu and debian

/etc/apache2/apache2.conf

Centos and redhat

/etc/httpd/conf/httpd.conf

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 example.com

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

    ::1 localhost.example.com localhost
    127.0.0.1 localhost.example.com localhost
    192.168.1.104 example.com example
    192.168.1.104 example.com.

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

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

https://webmasters.stackexchange.com/questions/29033/apr-sockaddr-info-get-failed

Unable to locate package php-gettext

this error message is issued when PHP is installed.

sudo apt-get install php-gettext

https://stackoverflow.com/questions/72193489/e-unable-to-locate-package-php-gettext

Categories: Uncategorized

0 Comments

Leave a Reply

Avatar placeholder

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