![]() The often reported issue, that Lighttpd is not running dependent on a parallel installed and running apache server is really annoying.Ī running lighttpd can be easily checked out with: $ sudo systemctl status lighttpd Mysqladmin: connect to server at 'localhost' failedĮrror: 'Access denied for user (using password: YES)' Threads: 7 Questions: 66 Slow queries: 0 Opens: 32 Flush tables: 1 Open tables: 26 Queries per second avg: 0.001Ģnd locally (no access to mariadb): :~$ sudo mysqladmin -u -root -p version Mysqladmin Ver 9.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu on aarch64Ĭopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. This is an add on to my reported 404 issues.Īfter some tries, I have found out, that when accessing via ssh there is access to maria DB, but not when accessing locallyġst via ssh (access to mariadb): :~$ sudo mysqladmin -u root -p version That’s it, all of your server components are up and running now, You can start deploying your web projects. ![]() Now go to and it will ask you to enter the root password, that you’ve set above during MariaDB installation. $ sudo ln -s /usr/share/phpmyadmin/ /var/www We are almost done here, just run this simple command to create a symlink in /var/www/ to the PHPMyAdmin folder in /usr/share/. $ sudo apt install phpmyadminĭuring installation, it will show you the below dialog, choose NO. To install it on Ubuntu 20.04, run the below command. PhpMyAdmin is a powerful web interface to manage databases online, almost every system admin use it because it is very easy to manage databases using it. Secure MariaDB Installation Installing PhpMyAdmin in Ubuntu Thereafter, answer Y for every subsequent prompt. The script will be prompted to enter the root password or set it up. ![]() Once installed, you can run the security script to secure the MariaDB installation as shown. $ sudo add-apt-repository 'deb focal main' $ sudo apt-get install software-properties-common MariaDB is a fork from MySQL, it is also a good database server to use with Lighttpd, to install it on Ubuntu 20.04 run these series of commands in the terminal. Check PHP Info in Ubuntu Step 3: Installing MariaDB in Ubuntu You will see this page which means that PHP is installed successfully. Now go to your domain or IP address and call test.php file, like. Press ESC key, and write :x and press Enter key to save the file. Press the “ i” button to start editing, and add the following line to it. ![]() Now to test if PHP is working or not, let’s create a ‘ test.php‘ file in /var/$ sudo vi /var/www/html/test.php $ sudo lighty-enable-mod fastcgiĪfter enabling modules, reload the Lighttpd server configuration by running the below command. Now to enable the PHP module, run the following commands in the terminal. Additionally, you also need to install the ‘ php-mysql‘ package to enable MySQL support. Lighttpd web server won’t be usable without PHP FastCGI support. /etc/lighttpd/ – is the default folder for Lighttpd configuration files. ![]()
0 Comments
Leave a Reply. |