Permissions & Webhosting


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Permissions & Webhosting
# 1  
Old 01-26-2009
Permissions & Webhosting

I just setup a Fedora10 box.

I used yum to install : httpd php mysql mysql-server php-mysql
Then I went out to wordpress (blogging software) and installed wordpress in /etc/httpd/wordpress

I imported my wordpress database into mysql and its all working. Except for a few things. When I try to upload an image I get an error from the wordpress side of things "The uploaded file could not be moved to /etc/httpd/wordpress/wp-content/uploads/2009/01" This is only one of a few issues I am having. Apparently whenever I need wordpress to create or write a file, its unable to.

As a test I've set chmod 777 on all directories involved (/etc/httpd/wordpress/wp-content/uploads/2009/01) and I get the same error. All of these directories are owned by root:root. I am thinking that I need to change the permissions to allow the server to write to these directories. Does this sound feasable? How would I go about doing that?

I've asked in the WP forums and none of the suggestions have worked. Figured I'd try here.

Last edited by flood; 01-26-2009 at 08:55 PM..
# 2  
Old 01-26-2009
OS independent, I don't believe you should ever use anything under /etc for web accessible pages. That said, you could create a /home/uploads directory and have WordPress upload files there. Of course, you would need proper permissions to do so.
# 3  
Old 01-27-2009
Cool. That was all that I needed.

not only is that a 'best practice' (not to share /etc) but it solved my problem.

I created a document root under /var/www/html and moved my wordpress installation there. Reconfigured my httpd.conf and restarted httpd. Worked like a charm.

There must be something that simply will not allow the /etc directory to be shared? Either way its working now. Thanks!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. OS X (Apple)

Wordpress & Git, urgent permissions issues, need help...

Heya, So I recently upgraded my MacBook to a solid state drive, during the re-install of Snow Leopard I chose to abandon MAMP and use the built in Apache & PHP and in doing so moved my ~/Sites to /Library/WebServer/Documents from a Time Machine backup. During this transition the permissions... (0 Replies)
Discussion started by: s3w47m88
0 Replies

3. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

4. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

5. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

6. Shell Programming and Scripting

uuencode & uudecode - permissions

$ ls -l example_1.sh -rwxr--r-- 1 vsetm7am nofiles 918 Sep 5 19:54 example_1.sh $ stat -c %a example_1.sh 744 $ uuencode "test.file" <example_1.sh >uuexample.uu $ uudecode uuexample.uu $ ls -l test.file -rw-r--r-- 1 vsetm7am nofiles 918 Sep 7 14:44 test.file How come that the user... (2 Replies)
Discussion started by: MartyIX
2 Replies

7. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

8. UNIX for Dummies Questions & Answers

problem with rdist & permissions

I have a .rdist & .sh files. shell script contains code like this rdist -h -f <rdist file> when this script executed i am getting the following error. rdist:<full path of files>: Permission denied. I verified the folder on the other system by connecting FTP.It doesn't has write... (0 Replies)
Discussion started by: Mar1006
0 Replies

9. Shell Programming and Scripting

Extract directories, users, groups & permissions to excel

Hi As the title descibes I wish to create an excel spreadsheet which lists all directories in full allong with the users, groups and rights. I have not used Perl scripts before so I'm a little lost on this on. Cheers (0 Replies)
Discussion started by: MacLon
0 Replies
Login or Register to Ask a Question