Advertisement:

Author Topic: "the Packages directory or one of the files in it are not writable!" BUT IT IS!  (Read 6016 times)

Offline themavesite

  • Semi-Newbie
  • *
  • Posts: 82
I want to install a mod through the package manager but when I upload it and try to install, SMF gives me this error

Quote
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Though I set the file and folder permissions in /Packages to 777...

Anyone knows what the problem is??
TheMaveSite | Forums
Over 157225 posts and 20369 topics.
I ensure a ton of fresh content every day. Looking for new active forum members.
http://forums.themavesite.com/index.php?action=forum

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 36,676
do you have a temp folder in the packages folder?

MrPhil

  • Guest
777, paradoxically, isn't always writable. Your host may run security software such as suPHP that blocks access to the [world writable] folder (and, incidentally, lets SMF write to the folder with 755 permissions). I don't think that SMF looks at the permissions -- IIRC it actually tries to write. So, a 777 permission will result in a failed write, and the message that it's not writable. Always start with 755 for permissions. Only if you're told that SMF can't write, try 775, and as a last resort, 777. Try to change 777 back to 755 when you're done with your update operation. But first, see if you're missing your temp folder.

Offline themavesite

  • Semi-Newbie
  • *
  • Posts: 82
I made a temp folder, still get this error

"You cannot download or install new packages because the Packages directory or one of the files in it are not writable!"

I'm on my own VPS btw.
TheMaveSite | Forums
Over 157225 posts and 20369 topics.
I ensure a ton of fresh content every day. Looking for new active forum members.
http://forums.themavesite.com/index.php?action=forum

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 36,676
what are the permissions on the temp folder?

Offline themavesite

  • Semi-Newbie
  • *
  • Posts: 82
what are the permissions on the temp folder?

777
TheMaveSite | Forums
Over 157225 posts and 20369 topics.
I ensure a ton of fresh content every day. Looking for new active forum members.
http://forums.themavesite.com/index.php?action=forum

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 36,676
try 755, not all servers like 777

Offline themavesite

  • Semi-Newbie
  • *
  • Posts: 82
try 755, not all servers like 777

Still get

Quote
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

:(
TheMaveSite | Forums
Over 157225 posts and 20369 topics.
I ensure a ton of fresh content every day. Looking for new active forum members.
http://forums.themavesite.com/index.php?action=forum

Offline themavesite

  • Semi-Newbie
  • *
  • Posts: 82
try 755, not all servers like 777

Still get

Quote
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

:(

Nobody?
TheMaveSite | Forums
Over 157225 posts and 20369 topics.
I ensure a ton of fresh content every day. Looking for new active forum members.
http://forums.themavesite.com/index.php?action=forum

MrPhil

  • Guest
1) You created the directories that are needed? (especially "temp")
2) The ownership of the directories are consistent with the rest of your site?
3) You tried 755 permissions, then 775, and as last resort, 777 (for directories)?
4) You tried 644, then 664, and as last resort, 666 (for files)?

Offline TeeJay

  • Semi-Newbie
  • *
  • Posts: 67
I'm getting the same error message on numerous SMF sites
Tried all the above suggestions but no success
Running 2.02 on 1and1 shared servers

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 36,676
please open a separate thread this thread belongs to someone else.

Offline Luka Paunović

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
  • :)
    • internetfazon on Facebook
    • @lukapaunovic on Twitter
    • Internet Fazoni
I have same error and  i tried everything i'm on vps, i dont know what type of php to set...
suphp, or mod_php?

I still getting error, PLEASE help!


www.pegazhosting.com
█ Web Hosting | Reseller Hosting | Registracija Domena

Offline evildrome

  • Semi-Newbie
  • *
  • Posts: 15
I am also having the exact same issue.

Cheers,

 Wilson.

Offline pkrack

  • Jr. Member
  • **
  • Posts: 302
  • Gender: Male
  • Enjoying summer fruits
    • Free smf web hosting
I was having that issue and got solved when i created temp folder. One thing i noticed that you should not have a temp file in packages. Like temp.zip or temp folder will also not work

Offline Luka Paunović

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
  • :)
    • internetfazon on Facebook
    • @lukapaunovic on Twitter
    • Internet Fazoni
Guys , i found solution :)
just switch to mod_php_ruid2

all will be working great, as like in shared hosting ;)


www.pegazhosting.com
█ Web Hosting | Reseller Hosting | Registracija Domena

Offline BlondChick

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Female
  • Smile, tomorrow will be worse.
    • Amazing-Dreamz
Be sure, the FTP path to SMF is correct.

Offline Luka Paunović

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
  • :)
    • internetfazon on Facebook
    • @lukapaunovic on Twitter
    • Internet Fazoni
SOLUTION FOR THIS IS REALLY CLEAR, OK?

If you using shared hosting, just set permissions to your packages directory to 777.
If it didn't work, and even with temp folder, then contact your host via ticket, because problem is in hosting , and it will be fixed fast

If you using VPS , and you have problem with permissions, solution is really EASY, change php type, change from mod_php (or suphp,etc..) to mod_php_ruid2 and all problems with permissions, installing mods, ownerships will be fixed


www.pegazhosting.com
█ Web Hosting | Reseller Hosting | Registracija Domena

MrPhil

  • Guest
SOLUTION FOR THIS IS REALLY CLEAR, OK?

If you using shared hosting, just set permissions to your packages directory to 777.
SIGH. 777 (World Writable) doesn't always work!. Many hosts forbid such permissions and will bar access to such directories, Maybe you'll get a 500 error, maybe you'll just get an inability to write. But STOP GIVING OUT BAD ADVICE -- you should always start with 755, and only if that doesn't work try 775, and as a last resort, 777.

You need to understand how your hosting service has configured PHP, so that you know when PHP is allowed to write to a given directory.

Offline opan

  • Newbie
  • *
  • Posts: 2
Thanks for the support. I've try and succesed.  :D