LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-16-2013, 01:13 PM   #1
money_shots
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu
Posts: 3

Rep: Reputation: Disabled
Wordpress image issue


I'm hosting a WordPress installation on my Ubuntu server. It's installed, up and running with the LAMP bundle (Linux Apache2 Mysql PHP5). Apache2 is configured in vhost mode, where the WordPress site is symbolic linked from installation point to my /home-folder.
Also the usr/share/wordpress/wp-content/uploads is symbolic linked to var/lib/wordpress/wp-content/uploads.

I'm experiencing some strange issues when it comes to publishing pictures with the two only installed themes (Twenty Ten & Twenty Eleven)

For instance, if I want to update the theme with a custom header. I edit the image to the prefered resolution and upload it. Once I'm going to apply the image and get the "Crop Header Image", where the preview of the images is suppose to show, its all blank.

Disregarding the fact that the preview is blank, I can still press the "Crop and publish"-button, and the new header is published, only its blank.

Is this a permission-issue?
 
Old 10-18-2013, 09:09 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,881
Blog Entries: 18

Rep: Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345
It's hard to say.

What does ls -l say about permissions on the files in question?

When you look at the appropriate *.php file (probably header.php, but, depending on how the particular theme works, it could be elsewhere) in the editor, how does the link to the picture appear?
 
Old 10-24-2013, 06:23 AM   #3
money_shots
LQ Newbie
 
Registered: Nov 2012
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
It's hard to say.

What does ls -l say about permissions on the files in question?

When you look at the appropriate *.php file (probably header.php, but, depending on how the particular theme works, it could be elsewhere) in the editor, how does the link to the picture appear?
The original content is located in /usr/share/wordpress/wp-content/ and has the following permissions:

Quote:
drwxr-xr-x 6 USERNAME USERNAME 4096 okt 17 09:58 wp-content
My useraccount is owner and group. Owner rwx, group xr, others x.

So I have 2 questions:

1. What is best practise with permissions on directorys of wp-content, and the sub folders?

2. Why are there symlinks between /usr/share/wordpress/wp-content/ and /var/lib/wordpress/wp-content/ by default?
 
Old 10-24-2013, 08:36 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,881
Blog Entries: 18

Rep: Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345Reputation: 3345
This is getting beyond my experience, as I've not had to deal with this and my website is on a hosting service, so I can't really test for anything, but I think your initial suspicions are on the right track, but it appears that "others" have read access to that content.

Hopefully, some one with more clues than I will help out.

Just for curiosity, why the symlinks rather than having WordPress directly installed in the Apache docs directory? That seems to me to be an additional and unneeded layer of complexity. It's just a complete and total shot in the dark, but it could be that WordPress's trying to access to your home directory is what's complicating matters.
 
Old 10-24-2013, 09:05 PM   #5
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: High Sierra
Posts: 8,598
Blog Entries: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by money_shots View Post
1. What is best practise with permissions on directorys of wp-content, and the sub folders?
http://wordpress.org/support/topic/d...le-permissions
 
  


Reply

Tags
apache2, mysql, php5, ubuntu, wordpress


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
12.04 LTS wordpress issue wulfsburg Ubuntu 0 05-08-2013 04:44 AM
Wordpress issue Pascal Linux - Newbie 1 06-07-2012 10:34 PM
Apache2 Configuration or Wordpress Configuration: Wordpress index.php not loading khun Linux - Newbie 5 05-18-2012 09:26 AM
how to install pre existing wordpress directory on a existing wordpress to run a web ajbardhan Linux - Software 3 04-28-2012 08:01 PM
LXer: Three image extensions for WordPress LXer Syndicated Linux News 0 06-30-2008 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration