Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rob54321

    (@rob54321)

    Hi James,
    Thanks once again for your help.

    I have no plugins activated so I don’t think it is related to plugins.

    I have wordpress installed directly on my linux box, Ubuntu linux 14.10.
    I access it with https://localhost/wd-admin.
    All the apache2 modules are installed including rewrite.

    The one thing I have changed, don’t know if this is causing a session timeout, I changed the url in the settings ‘site address’ of wp to
    https://localhost/panda.
    Panda is the host name and in my /etc/hosts
    I have:

    127.0.0.1	localhost
    127.0.1.1	panda
    192.168.1.100	panda
    # 192.168.1.10	rpi
    192.168.1.8     rpi
    192.168.1.103   gfsi
    172.25.0.1	gfs
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

    And true to form there is a new problem.
    I uploaded jpegs to my media library. I can view them, insert them but cannot edit them (rotate etc). When I click the edit button the image shows a broken image.

    All these issues are taking too much time.
    WP and Ubuntu Linux do not work well together. I will try WP with different versions of linux maybe windows (which I never use).
    So I will close this thread. It is not resolved but taking too much time.

    Once again thanks for your help.
    Thanks,
    Rob

    Thread Starter rob54321

    (@rob54321)

    Thanks James,

    I deleted index.html and I can see my blogs.

    A new problem has come up now. My session times out almost immediately and I have to login continuously, but that is a new post.
    Thanks so much,
    Rob

    I have the same problem with WP 4.1. I have tried all the different options in the permalinks. I cannot view a blog. In my case control is passed to https://localhost which then brings up https://localhost/index.html which is Apache2’s default web page.

    I also deactivated all plugins.

    If I delete /var/www/html/index.html then I also get error 404 every time I try and view a blog.

    I have saved a draft, then published. Nothing works.
    I am using Ubuntu linux. I suspect this is the problem.

    Really frustrating.
    I personally don’t think WP works in Ubuntu linux. There are many other issues I have had.
    I never use Microsoft Os’s but in this case I might be forced to try it out with WP.
    Rob

    Thread Starter rob54321

    (@rob54321)

    Hi Jan, and thanks.

    I have actually solved it and wanted to report my findings here as I’m sure there are some other linux users who had the same issue.

    When apache2 is installed the the web root is /var/www/html for the latest version. Unfortunately all the files are set to root.root ownership. Even the directories are marked as so.

    The problem is not the ownership permissions of .htaccess, but the ownership of the parent directory /var/www/html.
    This should be:

    drwxr-xr-x 5 www-data www-data 4096 Dec 28 12:45 html

    which has a mod of 755.

    I then changed all files and directories to www-data.www-data.
    All done as root:

    /var/www# chown -R www-data.www-data *

    I also changed all directories to mod 755

    /var/www# find html -type d -exec chmod 755 {} \;

    I also set apache2 environment vars in /etc/apache2/envvars to

    export APACHE_LOCK_DIR=/var/lock/apache2
    export APACHE_RUN_USER=www-data
    export APACHE_RUN_GROUP=www-data
    export APACHE_LOG_DIR=/var/log/apache2
    export APACHE_PID_FILE=/var/run/apache2/apache2.pid
    export APACHE_RUN_DIR=/var/run/apache2

    and now it works!! Yay /var/www/html/.htaccess is writable by WP.

    The crucial thing is.
    /var/www/html MUST be owned by www-data which it is not when one installs apache2.

    Hope this helps others and thanks for your help.
    Rob

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