and can the ftp user access /usr/share/wordpress/wp-content via ssh? (just for testing purposes)
Thread Starter
oznola
(@oznola)
indeed they can…
af@gaga:~$ ssh wordpress@bubba
Password:
Linux bubba 2.6.32.6 #1 Thu Jan 28 13:58:17 CET 2010 ppc
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
wordpress@bubba:~$ cd /usr/share/wordpress
wordpress@bubba:/usr/share/wordpress$ ls
index.php wp-comments-post.php wp-links-opml.php wp-rss.php
license.txt wp-commentsrss2.php wp-load.php wp-settings.php
readme.html wp-config.php wp-login.php wp-signup.php
wp-activate.php wp-config-sample.php wp-mail.php wp-trackback.php
wp-admin wp-content wp-pass.php xmlrpc.php
wp-app.php wp-cron.php wp-rdf.php
wp-atom.php wp-feed.php wp-register.php
wp-blog-header.php wp-includes wp-rss2.php
wordpress@bubba:/usr/share/wordpress$
Thread Starter
oznola
(@oznola)
i have changed the wordpress user home dir to /usr/share/wordpress (usermod -d /usr/share/wordpress wordpress). but when i ftp into the server i am located in /home….
af@gaga:~$ ftp bubba
Connected to bubba.localdomain.
220 ProFTPD 1.3.0 Server (Bubba) [::ffff:192.168.10.1]
Name (bubba:af): wordpress
331 Password required for wordpress.
Password:
230 User wordpress logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxr-xr-x 9 admin users 4096 Apr 7 23:31 admin
drwxr-xr-x 12 af users 4096 Apr 2 20:33 af
drwxr-xr-x 6 cnorland users 4096 Mar 22 05:54 cnorland
drwx------ 2 root root 16384 Jan 16 2009 lost+found
drwxrwxrwx 10 root users 4096 Feb 12 10:32 storage
drwxr-xr-x 4 thomas users 4096 Feb 26 19:24 thomas
drwxrwxr-x 2 admin users 4096 Apr 7 01:25 web
drwxr-xr-x 4 wordpress users 4096 Apr 9 23:20 wordpress
226 Transfer complete.
ftp> pwd
257 "/" is current directory.
ftp>
but pwd says i am in /? i have learned that i can make some changes that are usually made in wp-config.php in wp-settings.php. so we have some wiggle room there.
you can see from the contents of wp-config.php the absolute path is already set to /usr/share/wordpress…
<?php
/** WordPress's Debianised default master config file
Please do NOT edit and read about how the configuration works in the README.Debi
an
**/
require_once('/etc/wordpress/config-'.strtolower($_SERVER['HTTP_HOST']).'.php');
define('ABSPATH', '/usr/share/wordpress/');
require_once(ABSPATH.'wp-settings.php');
?>
please advise.