![]() ![]() MariaDB is developed as an open source software program and as a relational database, it affords an SQL interface for getting entry to data. MariaDB is used due to the fact it is fast, scalable and robust. MariaDB is an open source relational database administration system (DBMS) that is a well-matched drop-in substitute for the extensively used MySQL database technology. I've chosen to use MariaDB right here as a substitute for MySQL. Use the following command to check the webpage in Terminal Now, open your web browser and give your server IP address as "" and if you see the Apache test page as shown below, then it means your Apache server is operational and successfully installed. # firewall-cmd -list-all Step 5: Test the default Apache page in Browser and Terminal If you want to know more about firewalld services, have a look at this article on 15 basic useful firewall-cmd commands in Linux. List all applicable information for the default zone. # firewall-cmd -permanent -add-port=443/tcp # firewall-cmd -permanent -add-port=80/tcp Use the following command to open firewall ports for HTTP (80) and HTTPS (443) services. # systemctl status httpd Step 4: Add a Firewall rule Use the following command to Start httpd service and enable it to start automatically after every reboot Use the following command to install Apache web server # yum -y install epel-release Step 3: Install Apache Server # rpm -import /etc/pki/rpm-gpg/RPM-GPG-KEY* Use the following command to install EPEL Repository It provides useful software packages that are not included in the official CentOS or Red Hat repositories. You can get the same from the EPEL repository. By default, this package is not found in the official CentOS repositories. It is a free open source web interface tool, used to manage the MySQL/MariaDB database. Note: In addition to the LAMP package (Linux, Apache, MySQL/MariaDB, and PHP), we need to install PhpMyAdmin. You should see a page containing a table with all php settings displayed.Thank you for your endless support! Step 1: Check the server hostname and IP address Now, point your browser to ' localhost/index.php'. To verify that php is properly working, create a `index.php` file into the `/srv/www/htdocs/` folder with the following content: Systemctl restart apache2 Testing the installation Now that you have installed php, you have to restart the apache2 webserver: Note you need to choose if to install php7 or php5. Zypper in php5 php5-mysql apache2-mod_php5 a2enmod php5īy need in `/etc/apache2/mod_nf` add a lineĪddType application/x-httpd-php. If instead you want to install PHP5, the steps are the same as above with 'php5' instead of 'php7': Which makes apache treating files with ending `.php` with the correct mime-type, In addition, ensure that in `/etc/apache2/mod_nf` Zypper in php7 php7-cli php7-mysql apache2-mod_php7ĭon't forget to enable mod-php by executing: Make sure you have root access - see above.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |