![]() When prompted again to allow debconfig-common to install a database and configure select No. | | | | Web server to reconfigure automatically: | | | | apache2 | | lighttpd | | | | | | | | | +-+ +-+ Configuring phpmyadmin +-+ | Please choose the web server that should be automatically configured to | | run phpMyAdmin. When prompted to choose the webserver, selecat apache2 and continue. Sudo apt-get install phpmyadmin php-gettext Now that Apache2 and PHP are installed the final step is to install phpMyAdmin and configure. Sudo systemctl reload rvice Step 6: Install phpMyAdmin Sudo apt-get install php php-cgi libapache2-mod-php php-common php-pear php-mbstring Step 5: Configure Apache2 to Use PHPĪfter install PHP and other related scripts, run the commands below to enable Apache2 to use PHP. Run the commands below to install PHP and related PHP modules. Sudo systemctl restart rvice Step 4: Install PHP and Related Modules ServerAdmin DocumentRoot /var/ErrorLog $/access.log combined ![]() Then add the ServerName and ServerAlias to match your domain name… and save the file. Next, configure your domain or server name for your site… Open Apache2 default site config file by running the commands below. Make sure index.php is defined as a DirectoryIndex in the dir.conf file… DirectoryIndex index.html index.php index.xhtml index.htm Sudo nano /etc/apache2/mods-enabled/dir.conf ![]() To run PHP based apps, Apache2 must have index.php as a directory index in its dir.conf file. ![]() and more advanced configurations can be done later.įirst, confirm that your Ubuntu server configuration has Apache2 DirectoryIndex directives for php defined. Now run the commands below to configure Apache2 basic settings. Sudo apt install apache2 Step 3: Configure Apache2 Next, run the commands below to install Apache2 HTTP Web Server Run the commands below to install MySQL database server sudo apt update sudo apt install mysql-server mysql-clientĭuring the installation, you’ll be prompted to create and confirm MySQL root password. ![]()
0 Comments
Leave a Reply. |