Hey guys, I want to say this sub has helped me with some wordpress problems. I appreciate it.
I’m using a raspberry pi to host in my LAN network a simple WP site.
This is where I’m at and done:
1. Created a site using ‘Local” and exported it using “All-in-on Migration” plugin. While developing it, I used the default Nginx server, when I exported it I selected Apache.
2. Installed Apache, PHP and MariaDB in my Raspberry Pi. Made the basic configurations according to articles online.
3. Installed WordPress.
4. Edited the php.ini file in /etc/php/7.4/apache2 so I could import files up to 256MB etc.
5. Imported the site I made on Local using All-in-one migration plugin.
6. Edited the file in /etc/apache2/apache.conf and “AllowOverride All” and executed “sudo a2enmod rewrite” and restarted the apache server, that fixed my permalinks that where giving me a 404 error page.
7. The site now works fine!
​
**QUESTION #1:**
How can I change the url from this:
to this:
so that when I navigate to other pages, the directory “wordpress” is no longer in the url?
I installed wordpress in:
/var/www/html/wordpress/
That was done when I extracted the tar.gz file, it generated that wordpress folder. All the wordpress files (.htaccess, wp-config.php etc) are inside that wordpress folder.
I tried changing “WordPress Address (URL)” and “Site Address (URL)” by removing “wordpress” from the url and I wasn’t able to login to the dashboard and it just gave me 404 errors, I had to start all over with a fresh new install on the raspberry pi. Noob here.
​
​
**QUESTION #2:**
How can I change the IP address and instead use a domain name:
http://mycoolsite/
http://mycoolsite/about
http://mycoolsite/contact
http://mycoolsite/store
I remember when developing using Local, my home url was:
Not sure if the way to do it is with something called “virtual hosts” in Apache files?
​
**QUESTION #3:**
Since my site is using http, can I get a SSL certificate for free just locally in my raspberry pi? I’ve heard “Let’s Encrypt” is free?
​
***Thanks for reading, any help will do!***
I’m doing all this mostly to learn about WordPress itself and not to be an expert in server administration etc, maybe just the basics.
[ad_2]