User Tools

Site Tools


computing:selfhostedwp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
computing:selfhostedwp [2023/06/29 04:40] oemb1905computing:selfhostedwp [2023/06/29 04:58] oemb1905
Line 51: Line 51:
   </FilesMatch>   </FilesMatch>
  
-That takes care of configuring php-fpm and mpm_event. Before proceeding, navigate to your tld.domain in a web browser and make sure that your site resolves properly. Nowto make sure that your WordPress index.php file resolves properly to display your home pagemake sure to move index.php to the top priority as follows: +That takes care of configuring php-fpm and mpm_event. Before proceeding, navigate to your tld.domain in a web browser and make sure that your site resolves properly. If it does notthen you should debug your setupTo do thatthere's three tools that can help: phpmyadmin, phpinfo page, and configuration checking. Since you might optionally desire phpadmin laterlet's set that up first.
-   +
-  sudo nano /etc/apache2/mods-enabled/dir.conf +
-  <DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm> +
- +
-*** +
- +
-Optionally, we can install phpmyadmin, and if you doyou should secure as follows:+
  
 +  sudo apt install phpmyadmin
   sudo htpasswd -c /etc/apache2/.phpmyadmin phpmyadmin     sudo htpasswd -c /etc/apache2/.phpmyadmin phpmyadmin  
-  sudo nano /usr/share/phpmyadmin/.htaccess +  sudo nano /usr/share/phpmyadmin/.htaccess  
-   +
-Enter the following in the file that opens: +
-  +
   <AuthType Basic>   <AuthType Basic>
   <AuthName "Restricted Files">   <AuthName "Restricted Files">
   <AuthUserFile /etc/apache2/.phpmyadmin>   <AuthUserFile /etc/apache2/.phpmyadmin>
   <Require valid-user>   <Require valid-user>
 +
 +If you don't need phpmyadmin, you can optionally make a phpinfo page instead:
 +
 +  sudo nano /var/www/wordpress.com/public_html/info.php
 +  sudo htpasswd -c /etc/apache2/.phpinfo phpinfo  
 +  sudo nano /usr/share/phpinfo/.htaccess  
 +  <AuthType Basic>
 +  <AuthName "Restricted Files">
 +  <AuthUserFile /etc/apache2/.phpinfo>
 +  <Require valid-user>
 +
 +Now, to make sure that your WordPress index.php file resolves properly to display your home page, make sure to move index.php to the top priority as follows:
      
 +  sudo nano /etc/apache2/mods-enabled/dir.conf
 +  <DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm>
 +
 Close and save the file.  Let's set up a database now for the WordPress instance: Close and save the file.  Let's set up a database now for the WordPress instance:
  
computing/selfhostedwp.txt · Last modified: 2023/12/16 20:33 by oemb1905