LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-02-2006, 10:20 AM   #1
vital_101
Member
 
Registered: Jul 2005
Location: Mount Pleasant, Michigan
Distribution: Ubuntu Jaunty 9.04
Posts: 82

Rep: Reputation: Disabled
Permissions for Wordpress


Hello all,

I'm running apache2 on my by Dapper Server box. I wanted to get wordpress up and running, so installed all of the required packages (mysql, php4, etc), but when I try and use the wordpress, I get the error:
Code:
Fatal error: Call to undefined function: wp() in /var/www/wordpress/wp-blog-header.php on line 14
I have a feeling that this means wordpress doesn't have the rights to access/modify any files under the /var/www/ folder. Heck, I don't even have rights to do this. I always have to sudo to do anything in that folder. Is there anyway to change this so that wordpress can use this folder properly? Also, any hints on the setup of that folder would be great.

Vital_101
 
Old 10-02-2006, 08:38 PM   #2
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Just test it doing sudo chmod 777 /foldername

That will be insecure though, but test it to see if it works and if it does we'll go from there.
 
Old 10-03-2006, 07:46 AM   #3
vital_101
Member
 
Registered: Jul 2005
Location: Mount Pleasant, Michigan
Distribution: Ubuntu Jaunty 9.04
Posts: 82

Original Poster
Rep: Reputation: Disabled
That worked, but is there a better way to do this so that it's more secure?
 
Old 10-03-2006, 05:53 PM   #4
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Try chmod 711.

chmod 101:

Chmod changes the permissions on a file or folder.

7 = Read Write and Execute on said object

4 = read only
2 = write only
1 = execute only

If you wanted to do read and execute 4 + 1 = 5

First column is owner, second is group, third is user.

Or maybe 755 if that doesn't work. If you don't give read on the folder then people can't browse the directory tree on the site, eg they get the error Cannot list virtual directory or somesuch. But if you give execute then it still can run the php/html files.

Or I'm completely wrong but eh.

Play around with the permissions until you get it to work with the least amount of permissions.
 
  


Reply



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
LXer: Wordpress vulnerability? LXer Syndicated Linux News 0 07-28-2006 12:54 AM
LXer: Must-have WordPress plugins LXer Syndicated Linux News 0 02-10-2006 02:46 PM
LXer: WordPress 2.0 is better than ever LXer Syndicated Linux News 0 01-06-2006 02:31 AM
Wordpress (backport) nistelrooy Debian 0 10-17-2005 03:52 AM
wordpress don't working fllabron Linux - Software 2 09-08-2005 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:42 AM.

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
Open Source Consulting | Domain Registration