apply any mod gives mistake:

Started by BiG_NoBoDy, May 28, 2008, 08:51:04 PM

Previous topic - Next topic

BiG_NoBoDy

hy!

SMF - 2 beta 3.1

Linux server
lighttpd - webserver
ext3 - fs
PHP 5

zlib supported

it downloads packag, but when i click on a script: Apply Mod
it gives me such error:
Code ("An Error Has Occurred!") Select
You cannot download or install new packages because the Packages directory or one of the files in it are not writable! anny ideas?

BiG_NoBoDy

ProFTPd doesn't want to change permitions...
Code ("/var/log/proftpd/proftpd.log") Select
May 29 03:55:36 ruu.lt proftpd[6419] ruu.lt (ruu.lt[127.0.0.1]): FTP session opened.
May 29 03:55:36 ruu.lt proftpd[6419] ruu.lt (ruu.lt[127.0.0.1]): USER hds: Login successful.
May 29 03:55:36 ruu.lt proftpd[6419] ruu.lt (ruu.lt[127.0.0.1]): mod_cap/1.0: cap_set_proc failed: Operation not permitted
May 29 03:55:36 ruu.lt proftpd[6419] ruu.lt (ruu.lt[127.0.0.1]): mod_cap/1.0: attempt to configure capabilities failed, reverting to normal operation
May 29 03:55:36 ruu.lt proftpd[6419] ruu.lt (ruu.lt[127.0.0.1]): FTP session closed.
May 29 03:55:36 ruu.lt proftpd[6421] ruu.lt (ruu.lt[127.0.0.1]): FTP session opened.
May 29 03:55:36 ruu.lt proftpd[6421] ruu.lt (ruu.lt[127.0.0.1]): USER hds: Login successful.
May 29 03:55:36 ruu.lt proftpd[6421] ruu.lt (ruu.lt[127.0.0.1]): mod_cap/1.0: cap_set_proc failed: Operation not permitted
May 29 03:55:36 ruu.lt proftpd[6421] ruu.lt (ruu.lt[127.0.0.1]): mod_cap/1.0: attempt to configure capabilities failed, reverting to normal operation
May 29 03:55:36 ruu.lt proftpd[6421] ruu.lt (ruu.lt[127.0.0.1]): FTP session closed.

HoTmetal

#2

Hmmm, check
http://docs.simplemachines.org/index.php?topic=5.0
Sounds like you may have some weird server settings...,  try creating a dir called temp inside the packages folder and chmod it to 777..See if that works. If not try another FTP program.

BiG_NoBoDy

Quote from: rickC on May 28, 2008, 10:11:47 PM

Hmmm, check
http://docs.simplemachines.org/index.php?topic=5.0
Sounds like you may have some weird server settings...,  try creating a dir called temp inside the packages folder and chmod it to 777..See if that works. If not try another FTP program.

i can chmod ower ssh ;) or xterm

what to chmod to what?

SlammedDime

chmod the Packages folder to 777
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

BiG_NoBoDy

#5
Quote from: SlammedDime on May 29, 2008, 04:29:54 AM
chmod the Packages folder to 777
it is!
Code ("ls -la /var/www/hds") Select
drwxrwxrwx  3 hds    hds       4096 2008-05-29 03:45 Packages/


Code ("ls -laR /var/www/hds") Select
/var/www/hds/:
total 2512
drwxrwxr-x  9 hds    hds       4096 2008-05-27 20:58 ./
drwxr-xr-x 22 apache apache    4096 2008-05-27 20:35 ../
-rw-r--r--  1 hds    hds       3355 2008-05-27 20:51 agreement.txt
drwxr-xr-x  2 hds    hds       4096 2008-05-27 20:39 attachments/
drwxr-xr-x  4 hds    hds       4096 2008-05-27 20:40 avatars/
drwxr-xr-x  2 hds    hds       4096 2008-05-29 09:28 cache/
-rw-r--r--  1 hds    hds      14485 2008-05-27 20:51 index.php
-rw-r--r--  1 hds    hds       4049 2008-05-27 20:51 license.txt
-rw-r--r--  1 hds    hds       2674 2008-05-27 20:51 news_readme.html
drwxrwxrwx  3 hds    hds       4096 2008-05-29 03:45 Packages/
-rw-r--r--  1 hds    hds       8775 2008-05-27 20:51 readme.html
-rw-r--r--  1 hds    hds       3953 2008-05-29 03:04 Settings_bak.php
-rw-r--r--  1 hds    hds       3953 2008-05-27 21:06 Settings.php
-rw-r--r--  1 hds    hds    2371734 2008-05-27 20:39 smf_2-0-beta3-1p_install.zip
drwxr-xr-x  5 hds    hds       4096 2008-05-29 02:56 Smileys/
drwxr-xr-x  2 hds    hds       4096 2008-05-27 20:41 Sources/
-rw-r--r--  1 hds    hds       6007 2008-05-27 20:51 ssi_examples.php
-rw-r--r--  1 hds    hds       5738 2008-05-27 20:51 ssi_examples.shtml
-rw-r--r--  1 hds    hds      71941 2008-05-27 20:51 SSI.php
-rw-r--r--  1 hds    hds       9487 2008-05-27 20:51 subscriptions.php
drwxr-xr-x  5 hds    hds       4096 2008-05-27 20:51 Themes/

/var/www/hds/attachments:
total 16
drwxr-xr-x 2 hds hds 4096 2008-05-27 20:39 ./
drwxrwxr-x 9 hds hds 4096 2008-05-27 20:58 ../
-rw-r--r-- 1 hds hds   73 2008-05-27 20:39 .htaccess
-rw-r--r-- 1 hds hds  327 2008-05-27 20:39 index.php

/var/www/hds/avatars:
total 24
drwxr-xr-x 4 hds hds 4096 2008-05-27 20:40 ./
drwxrwxr-x 9 hds hds 4096 2008-05-27 20:58 ../
drwxr-xr-x 2 hds hds 4096 2008-05-27 20:39 Actors/
-rw-r--r-- 1 hds hds   43 2008-05-27 20:40 blank.gif
-rw-r--r-- 1 hds hds  323 2008-05-27 20:40 index.php
drwxr-xr-x 2 hds hds 4096 2008-05-27 20:40 Musicians/

/var/www/hds/avatars/Actors:
total 68
drwxr-xr-x 2 hds hds 4096 2008-05-27 20:39 ./
drwxr-xr-x 4 hds hds 4096 2008-05-27 20:40 ../
-rw-r--r-- 1 hds hds 1369 2008-05-27 20:39 Gwyneth_Paltrow.jpg
-rw-r--r-- 1 hds hds  200 2008-05-27 20:40 index.php

/var/www/hds/avatars/Musicians:
total 84
drwxr-xr-x 2 hds hds 4096 2008-05-27 20:40 ./
drwxr-xr-x 4 hds hds 4096 2008-05-27 20:40 ../
-rw-r--r-- 1 hds hds 1790 2008-05-27 20:40 Alanis_Morissette.jpg

/var/www/hds/cache:
total 484
drwxr-xr-x 2 hds hds  4096 2008-05-29 09:28 ./
drwxrwxr-x 9 hds hds  4096 2008-05-27 20:58 ../
-rw-r--r-- 1 hds hds   679 2008-05-29 07:27 data_176411a161a817dfce8062f01653b2c6-SMF-board-2.php
-rw-r--r-- 1 hds hds  2066 2008-05-29 10:54 data_176411a161a817dfce8062f01653b2c6-SMF-calendar_index_offset_0.php
-rw-r--r-- 1 hds hds   414 2008-05-29 10:54 data_176411a161a817dfce8062f01653b2c6-SMF-calendar_index.php

/var/www/hds/Packages:
total 172
drwxrwxrwx 3 hds hds   4096 2008-05-29 03:45 ./
drwxrwxr-x 9 hds hds   4096 2008-05-27 20:58 ../
-rw-rw-rwx 1 hds hds  41588 2008-05-29 02:56 ACinBlack.zip*
drwxrwxrwx 2 hds hds   4096 2008-05-29 03:29 backups/
-rw-rw-rwx 1 hds hds    324 2008-05-27 20:40 index.php*
-rw-rw-rwx 1 hds hds     10 2008-05-29 02:56 installed.list*
-rwxrwxrwx 1 hds hds 101362 2008-05-29 03:45 SMF_Arcade_2.0.13.zip*
-rw-rw-rwx 1 hds hds   3650 2008-05-29 03:39 Wiki_BBCode_v1.3.zip*

/var/www/hds/Packages/backups:
total 1460
drwxrwxrwx 2 hds hds    4096 2008-05-29 03:29 ./
drwxrwxrwx 3 hds hds    4096 2008-05-29 03:45 ../
-rw-rw-rwx 1 hds hds 1471386 2008-05-29 02:56 2008-05-29_before_ACinBlack.tar.gz*
-rw-rw-rwx 1 hds hds     119 2008-05-29 03:29 .htaccess*
-rw-rw-rwx 1 hds hds     218 2008-05-27 20:40 index.php*

/var/www/hds/Smileys:
total 24
drwxr-xr-x 5 hds hds 4096 2008-05-29 02:56 ./
drwxrwxr-x 9 hds hds 4096 2008-05-27 20:58 ../
drwxr-xr-x 2 hds hds 4096 2008-05-29 02:56 ACinBlack/
drwxr-xr-x 2 hds hds 4096 2008-05-27 20:40 classic/
drwxr-xr-x 2 hds hds 4096 2008-05-27 20:40 default/
-rw-r--r-- 1 hds hds  323 2008-05-27 20:40 index.php

/var/www/hds/Smileys/ACinBlack:
total 252
drwxr-xr-x 2 hds hds  4096 2008-05-29 02:56 ./
drwxr-xr-x 5 hds hds  4096 2008-05-29 02:56 ../
-rw-rw-rw- 1 hds hds   601 2008-05-29 02:56 angel.gif

[...]

/var/www/hds/Sources:
total 3816
drwxr-xr-x 2 hds hds   4096 2008-05-27 20:41 ./
drwxrwxr-x 9 hds hds   4096 2008-05-27 20:58 ../
-rw-r--r-- 1 hds hds  37284 2008-05-27 20:40 Admin.php
-rw-r--r-- 1 hds hds   6645 2008-05-27 20:40 BoardIndex.php

H

Did you also try creating a folder called temp, chmod 777 as Rick suggested?
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

BiG_NoBoDy

putty> host > login > pass
cd /var/www/hds
mkdir Packages/temp
chmod 777 Packages/temp
Code ("ls -la Packages/temp") Select
drwxrwxrwx 3 hds hds   4096 2008-05-29 03:45 ./
drwxrwxrwx 9 hds hds   4096 2008-05-27 20:58 ../

HoTmetal

Are you getting the same error, or a new one?


BiG_NoBoDy


SlammedDime

How about the /backups directory inside /packages.  is it set to 777?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

BiG_NoBoDy


青山 素子

You can try setting the owner of all files to the user that the web server is running as. Note that this might break FTP manipulation in that area.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Advertisement: