• hi,

    i am trying to setup an ftp account on my server for wordpress. i own and manage the server myself so i have complete control over it. its a debian etch server with wordpress.deb installation.

    i have added a wordpress user to the server for the purpose of facilitating the ftp sessions. and then added a symbolic link from the wordpess user’s home folder to the location of the wordpress files (/usr/share/wordpress). the wordpress user can access the folder /usr/share/wordpress through the wordpress link in its home folder but i am still getting “Unable to locate WordPress Content directory (wp-content).”

    the symbolic link looks like this “wordpress -> /usr/share/wordpress”.

    so it seems i need to either tell wordpress to follow the link or set the ftp session location for this user to /usr/share/wordpress?

    i can install plugins by hand using the command line and then activate them in the admin panel. my wp-config.php is debian specific, short perhaps 1/4 page and warns against making any changes to it.

    please advise.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘adding wordpress user to facilitate ftp session’ is closed to new replies.