Serendipity Installation Permissions Problem

Having trouble installing serendipity?
Post Reply
nikropht
Posts: 2
Joined: Fri Feb 24, 2006 6:05 am
Location: Dallas, Texas
Contact:

Serendipity Installation Permissions Problem

Post by nikropht »

I am trying to upgrade from 0.8.5 to 1.0-beta1, I get 2 permission errors:

/home/content/n/i/k/nikropht/html/ Not writable
/home/content/n/i/k/nikropht/html/templates_c Not writable

However the true path to my files are :
/var/www/vhosts/nikropht.com/httpdocs

a directory listing shows:

Code: Select all

[root@apollo nikropht.com]# ls -l
total 68
drwxr-x---   5 nikropht psaserv 4096 Jan 19 11:57 anon_ftp
drwxr-xr-x   2 root     root    4096 Jan 19 11:57 bin
drwxr-x---   2 nikropht psaserv 4096 Jan 19 11:57 cgi-bin
drwxr-x---   2 root     psaserv 4096 Feb 23 22:33 conf
drwxr-xr-x   2 root     psaserv 4096 Jan 19 11:57 error_docs
drwxr-xr-x   2 root     root    4096 Jan 19 11:57 etc
drwxrwxrwx  17 apache   apache  4096 Feb 23 22:56 httpdocs
drwxr-x---  15 nikropht psaserv 4096 Jan 23 09:55 httpsdocs
drwxr-xr-x   2 root     root    4096 Jan 19 11:57 lib
drwxr-x---   2 root     psaserv 4096 Feb 23 22:33 pd
drwx------   2 nikropht root    4096 Jan 19 11:57 private
dr-xr-x---   7 root     psaserv 4096 Jan 19 11:57 statistics
drwxr-xr-x   2 root     psaserv 4096 Jan 19 11:57 subdomains
drwxrwxrwt   2 root     root    4096 Jan 19 11:57 tmp
drwxr-xr-x   5 root     root    4096 Jan 19 11:57 usr
drwxr-xr-x   3 root     root    4096 Jan 19 11:57 var
drwxr-xr-x   2 root     psaserv 4096 Jan 19 11:57 web_users
and in the actual /httpdocs directory:

Code: Select all

-rw-r--r--   1 apache   apache 28534 Jan 19 23:20 Nikropht-Sig.gif
drwxrwxrwx  11 apache   apache  4096 Jan 23 09:41 bundled-libs
-rwxr-xr-x   1 apache   apache  6823 Jan 23 11:23 comment.php
-rwxr-xr-x   1 apache   apache   707 Jan 19 23:20 countdown.php
drwxrwxrwx   5 apache   apache  4096 Jan 23 11:23 deployment
drwxrwxrwx   2 apache   apache  4096 Jan 23 11:23 docs
-rwxr-xr-x   1 apache   apache  1530 Jan 23 11:23 exit.php
-rw-r--r--   1 apache   apache     0 Jan 19 23:20 favicon.ico
drwxrwxrwx   7 apache   apache  4096 Jan 23 09:45 htmlarea
drwxrwxrwx   5 apache   apache  4096 Jan 23 11:23 include
-rwxr-xr-x   1 apache   apache   604 Jan 19 11:57 index.html
-rwxr-xr-x   1 apache   apache 18851 Jan 23 11:23 index.php
drwxrwxrwx   3 apache   apache  4096 Jan 23 11:23 lang
drwxrwxrwx   2 apache   apache  4096 Jan 19 11:57 picture_library
drwxr-xr-x   2 apache   apache  4096 Jan 19 11:57 plesk-stat
drwxrwxrwx  37 apache   apache  4096 Jan 23 09:45 plugins
-rwxr-xr-x   1 apache   apache  8069 Jan 23 11:23 rss.php
-rwxr-xr-x   1 apache   apache  2088 Jan 23 11:23 serendipity.css.php
-rwxr-xr-x   1 apache   apache 15910 Jan 23 11:23 serendipity_admin.php
-rwxr-xr-x   1 apache   apache 14516 Jan 23 11:23 serendipity_admin_image_selector.php
-rwxr-xr-x   1 apache   apache 11490 Jan 23 11:23 serendipity_config.inc.php
-rwxr-xr-x   1 apache   apache   633 Feb 23 23:07 serendipity_config_local.inc.php
-rwxr-xr-x   1 apache   apache   589 Jan 23 11:23 serendipity_define.js.php
-rwxr-xr-x   1 apache   apache  8382 Jan 23 11:23 serendipity_editor.js
-rwxr-xr-x   1 apache   apache   413 Jan 23 11:23 serendipity_xmlrpc.php
drwxrwxrwx   2 apache   apache  4096 Jan 23 11:23 sql
drwxrwxrwx   2 apache   apache  4096 Jan 19 23:20 stats
drwxrwxrwx  23 apache   apache  4096 Jan 19 23:20 templates
drwxrwxrwx   2 apache   apache  4096 Jan 23 11:23 templates_c
drwxrwxrwx   6 apache   apache  4096 Jan 25 10:14 uploads
drwxrwxrwx   2 apache   apache  4096 Feb 22 09:02 vid
-rwxr-xr-x   1 apache   apache  1468 Jan 23 11:23 wfwcomment.php
What is goin on?

the url is http://www.nikropht.com, I have tried the fixperm.php trick with both the fake path and the real path, and it still no workie.

Thanks for your help. :)

-Nikropht
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity Installation Permissions Problem

Post by garvinhicking »

It seems that your /var/www/vhosts/... path is just a symbolic link to the /home/content directory. So the difference in paths should not matter to you.

You must make sure that the core directory ('.') is 777, and a templates_c directory is 777. You don't need the fixperm.php script for that, you must/can do that with FTP. The fixperm script is meant to change settings of files only writable for the webserver; in your case, the metnioned files are not writable for the webserver, so it cannot even change permissions.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
nikropht
Posts: 2
Joined: Fri Feb 24, 2006 6:05 am
Location: Dallas, Texas
Contact:

well....

Post by nikropht »

After messing with the permissions till I turned blue, i went into plesk and blew away the hosting part, recreated it, copied a fresh install of Serendipity, copied my uploads back, my custom template, and did the serendipity_config_local.inc.php trick to force it to upgrade the database and poof now everything is back to the way it was. Man permissions are a total pain.

it works finally, so go check it out http://www.nikropht.com :)

Thanks Garvin!

-Nikropht
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: well....

Post by garvinhicking »

Oh Dude, I'm really sorry for your problems! :-D

Sadly I don't know plesk at all, so I can't really tell what was going on there *g*

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply