raspberry_pi:projects:lamp_server
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| raspberry_pi:projects:lamp_server [2025/02/06 08:21] – jmbargallo | raspberry_pi:projects:lamp_server [2025/02/07 08:41] (current) – jmbargallo | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| Refresh your browser. You should see “hello world”. This page is not dynamic, but it is still served by PHP. | Refresh your browser. You should see “hello world”. This page is not dynamic, but it is still served by PHP. | ||
| + | |||
| + | ==== Priority PHP Apache’s Configuration File ==== | ||
| + | |||
| + | |||
| + | On Debian/ | ||
| + | |||
| + | sudo nano / | ||
| + | |||
| + | On CentOS/ | ||
| + | |||
| + | sudo nano / | ||
| + | |||
| + | If you're using virtual host configurations, | ||
| + | |||
| + | Modify the DirectoryIndex Directive | ||
| + | |||
| + | Look for a line like this: | ||
| + | |||
| + | DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm | ||
| + | |||
| + | Change it so that index.php comes first: | ||
| + | |||
| + | DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm | ||
| + | |||
| + | Save and Exit | ||
| + | |||
| + | If using nano, press CTRL + X, then Y, and hit Enter to save. | ||
| + | |||
| + | Restart Apache to Apply the Changes | ||
| + | |||
| + | On Debian/ | ||
| + | |||
| + | sudo systemctl restart apache2 | ||
| + | |||
| + | On CentOS/ | ||
| + | |||
| + | sudo systemctl restart httpd | ||
| + | |||
| ===== Install MariaDB ===== | ===== Install MariaDB ===== | ||
raspberry_pi/projects/lamp_server.1738830093.txt.gz · Last modified: 2025/02/06 08:21 by jmbargallo
