Wordpress: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
=Installing= | |||
Following the five minute installation process: https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install | |||
Downloaded the zip file | |||
Copied the zip file to the server | |||
Unzipped the zip file and put it in a wordpress folder along with other web/htdocs stuff | |||
==Database Prep== | |||
I already had a few existing databases from prior WP installations, so I had to figure out what was there and if anything needed to be cleaned out, or whatever. | |||
=FTP issues= | =FTP issues= | ||
Getting tired of fixing these problems over and over. | |||
==Set up FTP on your WP server== | ==Set up FTP on your WP server== | ||
Revision as of 21:33, 11 February 2017
Installing
Following the five minute installation process: https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install
Downloaded the zip file
Copied the zip file to the server
Unzipped the zip file and put it in a wordpress folder along with other web/htdocs stuff
Database Prep
I already had a few existing databases from prior WP installations, so I had to figure out what was there and if anything needed to be cleaned out, or whatever.
FTP issues
Getting tired of fixing these problems over and over.
Set up FTP on your WP server
install/run vsftpd on Unix
change /etc/vsftpd.conf to include the following line at the end:
listen_port=21
You could also change the port number that Wordpress uses.
Once that's done, and you go to update something in Wordpress, you can give it your usual login credentials (your Unix username/password) and everything should work.
If not, you may have a permissions problem with your server - wherever Wordpress is trying to install its extensions or updates. In that case, use chmod/chown to change ownership of your Wordpress content folder:
sudo chown -R charles:charles /www/wordpress/wp-content
FTP permissions
For a while there, I was having problems updating plugins from the WP admin panel. The problem was a permissions problem, and these are the notes on it.
To be able to use FTP through the Wordpress admin panel, you'll need to give your web user write access to plugins. Here's what that means:
Your web user is probably www-data. It depends on the web server you're using.
Your plugins directory is in /path/to/wordpress/wp-content/plugins. If you install the foobar plugin in WP, it will create a folder in /path/to/wordpress/wp-content/plugins/foobar with the plugin. So to create/update/delete plugins from the WP admin panel, the web user has to be able to do those things.
In practice, this means you can either make the web user the owner of the files, or you can add them to the web user's group and let anyone in the web user group edit them. I am doing the second case. I fixed this issue would be a sequence of commands like:
cd /path/to/wordpress/wp-content/
sudo chgrp -R www-data plugins/
sudo chmod -R g+w plugins/
Vsftpd for Wordpress
Here's a link to my Vsftpd page, where I discuss setting up vsftpd as an FTP server for Wordpress.