Process: 3631 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir rvice (code=exited, status=0/SUCCESS) Process: 3609 ExecStartPre=/usr/libexec/mariadb-check-socket (code=exited, status=0/SUCCESS) Loaded: loaded (/usr/lib/systemd/system/rvice enabled vendor preset: disabled)Īctive: active (running) since Tue 11:31:24 CEST 1s ago Verify if the service is running: $ systemctl status mariadb Once installed, start and enable the MariaDB service: sudo systemctl enable -now mariadb This can be installed using the command: sudo dnf install mariadb-server mariadb Rocky Linux 9 provides MariaDB 10 in the default repository. In this guide, we will opt for the MariaDB database due to its high-performance storage engines, faster and safer replication, and compatibility with MySQL. There are two options here, MySQL or the MariaDB database. We need a database server for web hosting. First, allow the HTTP traffic through the firewall: sudo firewall-cmd -add-service=http -permanentĪccess the web page using the URL or #2. You can also verify if Apache is running by accessing the default page on a browser. Status: "Total requests: 0 Idle/Busy workers 100/0 Requests/sec: 0 Bytes served/sec: 0 B/sec" Loaded: loaded (/usr/lib/systemd/system/rvice enabled vendor preset: disabled)Īctive: active (running) since Tue 11:29:32 CEST 10s ago Once installed, start and enable the service: sudo systemctl enable -now httpdĬheck the status of the service: $ systemctl status httpd To install it, execute the command: sudo dnf install httpd This software is provided as httpd in the Rocky Linux repositories. The first component to be installed here is the Apache Web server. In this guide, we will install and use Apache, MariaDB, and PHP (LAMP) on Rocky Linux 9. PHP then passes these results back to the Apache Web server which then sends them back to the browser. The LAMP stack is effective when handling both static and dynamic web pages where data changes from time to time when loaded. The PHP code and data fetched from the database are then used to generate HTML scripts that are used to display the web pages. PHP also links with the database(MySQL/MariaDB) to obtain any referenced data in the code. If a PHP file is requested, then it passes the request to PHP which then loads and executes the code contained in the file. The Apache web server receives requests for web pages for the browser. The main difference between PHP and other languages such as JavaScript is that the codes are executed on the server, and HTML scripts are generated and sent to the client. Moreso, this language can also be used with HTML when creating web applications. This is an open-source general scripting language that serves as a backend programming language for Web applications. PHP: This is an abbreviation of Hypertext Pre-processor.MariaDB: This is a relational database management system developed by the original developers of MySQL and guaranteed to stay open source.This software is developed and maintained by the Apache Software Foundation. Apache: This is an open-source cross-platform web server that runs 67% of all websites in the world.The components of the LAMP stack are well elaborated below: These tools work closely together to enable a server to host and run modern and dynamic web applications. The LAMP stack is a collection of open-source Linux tools that include Apache, MySQL/MariaDB, and PHP. For general web development and hosting, you need a Programming language, a database, and a web server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |