determining path to WordPress
-
This plug-in seems to assume WordPress and its files are in a certain location, what location is that? Are you assuming first that the sftp login is
/home/someuser
and you’re looking for something like/usr/local/www/apache23/website
… type of path to WordPress?I would first like to understand what path is being used in this plugin so I can get it working for me… and ideally, please point me to where in the PHP code this variable is set as I’d like to edit it myself. I’d like to request in the next version that it prints the the location to the screen that the SFTP user sees when logging in. Simpler, easier.
In the future it would be awesome to be able to edit the path from within WordPress. I run my own servers in a secure configuration, and it’s not a standard path to the web server when running inside a FreeBSD chroot jail. The / path that the jail sees is not normally the same as what the SFTP user sees, which is why the plugin isn’t working for me. However with some basic Unix skills I can make it look the same if I chroot the user as well, then providing the SFTP user a custom path to WordPress using
mount_nullfs
in FreeBSD (I believe it’smount --bind
in Linux). Or better yet, if I knew PHP better I would review the code on my own and customize this plugin for my own purposes.Thanks!
- The topic ‘determining path to WordPress’ is closed to new replies.