Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 04, 2015 1:15 am 
Offline
Senior Newbie

Joined: Sat Sep 27, 2014 10:01 am
Posts: 6
Hi,

I wanted to edit my theme for adding a piece of code. However, i am unable to find www folder in /var directory. I have searched /home as well, but the home folder is empty. I am looking for WP-content folder to edit my theme.

Any idea where I can locate the www folder or directly access wp-content folder?


Top
   
PostPosted: Sat Apr 04, 2015 2:11 am 
Offline
Senior Newbie

Joined: Tue Apr 01, 2014 3:35 pm
Posts: 15
Check if there's a /srv, specifically /srv/www, that's becoming a somewhat common alternative to the old /var/www


Top
   
PostPosted: Sat Apr 04, 2015 2:50 am 
Offline
Senior Newbie

Joined: Sat Sep 27, 2014 10:01 am
Posts: 6
Yes, there is /SRV directory, but when I open it, it shows empty.

I used access it earlier without any problem. Now don't know what causing this.

Could this be a permission issue?


Top
   
PostPosted: Sat Apr 04, 2015 2:57 am 
Offline
Junior Member
User avatar

Joined: Mon Jul 07, 2014 8:47 pm
Posts: 21
Website: https://arlen.io
Location: Earth
Twitter: arlenwoot
If you could access it before, what did you change to make it so you can't now?


Top
   
PostPosted: Sat Apr 04, 2015 3:04 am 
Offline
Senior Newbie

Joined: Tue Apr 01, 2014 3:35 pm
Posts: 15
tashreef wrote:
Yes, there is /SRV directory, but when I open it, it shows empty.

I used access it earlier without any problem. Now don't know what causing this.

Could this be a permission issue?


Depending what user you're trying to access it as, potentially. Though root or the www-data user (usually named by default) should be able to see into it fine, are you using either one of those to attempt to access the folder? (Though using root to edit/modify web files would be a bad idea, but to simply 'check' if things exist you can't get more permission than root for the most part.)

You may also want to try for the hell of it, https://wordpress.org/plugins/wordpress-php-info/

Use that plugin temporarily to see phpinfo(), which will tell you what your document path is, specifically you'll want to look towards the bottom for a _SERVER["DOCUMENT_ROOT"] value, that will show you the general path where your wordpress is installed.

Just disable/remove that plugin after using it (no point in keeping plugins only needed once installed forever).


Top
   
PostPosted: Sat Apr 04, 2015 3:17 am 
Offline
Senior Newbie

Joined: Sat Sep 27, 2014 10:01 am
Posts: 6
Oh my Goodness, thank you so much for that plugin :)

Found it here /usr/share/nginx/html/my-blog (Document Root)

something I never expected.


Top
   
PostPosted: Sat Apr 04, 2015 11:15 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 567
Website: http://www.mattnordhoff.com/
You're not supposed to put your own files in /usr/share/nginx/html. Move them somewhere sane like /srv/www now. /usr/share is under the control of your package manager and your files may be deleted next time you upgrade Nginx.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
PostPosted: Sun Apr 05, 2015 2:44 am 
Offline
Senior Newbie

Joined: Sat Sep 27, 2014 10:01 am
Posts: 6
mnordhoff wrote:
You're not supposed to put your own files in /usr/share/nginx/html. Move them somewhere sane like /srv/www now. /usr/share is under the control of your package manager and your files may be deleted next time you upgrade Nginx.


Thank you for the input.

Any guide to do the same?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group