| Start |
|---|
| Installing LAMP on Ubuntu Install apache: Install MySql: Install PHP: Restart system: Check PHP installation: |
Installing LAMP stack on CentoOS Install Apache Web ServerFirst step is to install web server Apache.
Once it is installed, enable (to run on startup) and start Apache web server service.
Point your browser to: http://localhost (opens new window) You will see the default Apache web server page. Install MariaDB ServerSecond step is to install MariaDB:
Then start and enable (on startup) the MariaDB server:
As needed, use mysql_secure_installation to secure your database. This script will allow you to do the following:
Install PHP
Then restart Apache's httpd service.
To test PHP, create a file called index.php in /var/www/html. Then add the following line to the file: Then point your browser to: http://localhost/index.php (opens new window) You should see information related to your server. If you do not, ensure that php is for sure installed correctly by running the following command:
If you receive something like:
Then PHP is installed correctly. If this is the case, please ensure that you've restarted your web server. |
Read Article
https://develop.horje.com/learn/1434/reference