Advertisement:
2by2host

Author Topic: Having problems with the package manager?  (Read 495002 times)

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,918
  • Gender: Male
  • I don't speak German.
    • IchBin.us
Re: Having problems with the package manager?
« Reply #20 on: March 19, 2005, 01:33:08 AM »
put it in root and run the script by going to the URL www.yourdomain.com/fix_ownership.php
Brad "IchBin™" Grow        TinyPortal        Themes
Coding Guidelines       

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,142
  • Gender: Male
Re: Having problems with the package manager?
« Reply #21 on: March 19, 2005, 01:46:04 AM »
This could fix my problems. Do we delete the file once we've run it? and do we just put it in the root forum directory? or in sources or something

I do suggest you delete it afterward; I wouldn't want this to become a possible (however unlikely) security problem.

-[Unknown]

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,218
  • Mind the volcano!
    • My homepage
Re: Having problems with the package manager?
« Reply #22 on: March 19, 2005, 05:37:34 AM »
I ran this, but it didn't seem to do anything. It came up saying that the SMF detected FTP address was wrong, and what the correct one was. Is that all it does? should I change the directory somewhere in the admin settings? I've also tried installing a mod i've downloaded, but it's still coming up with the same SAFE mode error.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,142
  • Gender: Male
Re: Having problems with the package manager?
« Reply #23 on: March 21, 2005, 12:55:41 AM »
Did you run it again with the detected path?

-[Unknown]

Offline tapirul

  • Semi-Newbie
  • *
  • Posts: 69
Re: Having problems with the package manager?
« Reply #24 on: March 25, 2005, 10:48:49 PM »
hi all,

I tried to install some mods; I got pass the step where it tryes to change the permissions for some files, and asks "proceed". I click that I I get this:
Quote
2: copy(SSI.php~): failed to open stream: Permission denied
File: /nfs/raven/u2/d/dogaruc/public_html/tapirul/Sources/Subs-Package.php
Line: 1285

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,142
  • Gender: Male
Re: Having problems with the package manager?
« Reply #25 on: March 26, 2005, 07:23:45 PM »
Please chmod the directory SMF is in (e.g. forum) to 777.

How do I use chmod?

-[Unknown]

Offline tapirul

  • Semi-Newbie
  • *
  • Posts: 69
Re: Having problems with the package manager?
« Reply #26 on: March 27, 2005, 02:34:25 PM »
Thanks. It worked.

Offline toontastic

  • Jr. Member
  • **
  • Posts: 130
Re: Having problems with the package manager?
« Reply #27 on: March 28, 2005, 07:54:47 AM »
Looks like this is the thread for me. I'm trying to install a fair few mods on my board. I'll use the quick reply box mod as an example. Ok I've gone into Package Manager click apply mod next to the mod I want. I then get a screen

Quote
Package Manager - Install Actions
Install Actions for archive enhanced_qr.tar.gz:
Installing this package will perform the following actions:  Type Action Description

1. Execute Modification ./Themes/default/Display.template.php Success
 


Underneath this it says

Quote
FTP Information Required
Some of the files this package needs to modify are not writable. This needs to be changed by logging into FTP and chmoding the files. 

I've left it as local host and at the port cause that's the same port I use when I FTP. I've entered my username and password details and pressed Proceed. The screen the disappears and the exact same screen then comes up again. Can't see any obvious errors anywhere on the screen.

I've tried to CHMOD 777 the forum and that hasn't worked. What am I missing ??

Offline HEB XI 1

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Female
    • HEB XI 1
Re: Having problems with the package manager?
« Reply #28 on: March 29, 2005, 09:28:03 AM »
I have SMF 1.0.2 installed.  When trying to patch 1.0.3 from the package manager, I got an error (all the actions showed as successful on the install checklist):

Code: [Select]
2: fopen("/<root>/community/Sources/News.php", "w") - Permission denied
File: /<root>/community/Sources/Subs-Package.php
Line: 1454


I ran fix_ownership and got this:

Code: [Select]
Write this down!
In some cases, SMF 1.0.x does not detect your FTP path correctly. This tool has successfully used the (possibly detected) path below. You may wish to write this down, and make sure to use it when installing mods.

/httpdocs/community

This problem should be resolved in the next major release of SMF.

Thank you.

Now, when I went back to the package manager to apply the mod, I get failures on changelog.txt, index.php, Admin.php, ManageMembers.php and Calendar.php.

I have my SMF and Sources folders at 777 ... have also tried 755 and get the same error (I read somewhere that sometimes that works if you have issues with 777).  Any ideas?


Offline patrick

  • Newbie
  • *
  • Posts: 1
Re: Having problems with the package manager?
« Reply #29 on: March 30, 2005, 04:41:54 PM »
Bypassed the Safe_mode.
It takes some time but ik worked for me

- At 1st safe mode error : go with ftp client to the packages folder
- delete the temp folder
- create temp folder an chmod it to 777
- go back to page, click on REFRESH PAGE
- repeat this at al safe mode errors.

With de permission denieds, find the files and chmod them manualy.
( or do a complete chmod to you're site  ::))

took me 10 minutes to upgrade to 1.0.3.

Offline toontastic

  • Jr. Member
  • **
  • Posts: 130
Re: Having problems with the package manager?
« Reply #30 on: March 31, 2005, 02:19:31 AM »


With de permission denieds, find the files and chmod them manualy.
( or do a complete chmod to you're site  ::))

took me 10 minutes to upgrade to 1.0.3.


Well I've managed to get 1.0.3 by downloading it from here uploading it using FTP and then running upgrade.php but I'm still having problems with the mods. The mod Lots_o_Smileys installed no bother at all however the rest are now giving me failures. I've tried CHMODing the forum folder and that hasn't worked. The main folders (themes, packages, attachments etc) are all CHMOD 777 but it still isn't working. Any ideas what I'm missing ?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,142
  • Gender: Male
Re: Having problems with the package manager?
« Reply #31 on: March 31, 2005, 02:45:09 AM »
Code: [Select]
2: fopen("/<root>/community/Sources/News.php", "w") - Permission denied
File: /<root>/community/Sources/Subs-Package.php
Line: 1454

Are you certain the Sources/News.php file is 777?  It should be.

Remember, chmodding a folder isn't the same as chmodding its contents.  You have to select all the files and do it.

-[Unknown]

Offline unfluffybunny

  • Newbie
  • *
  • Posts: 3
Re: Having problems with the package manager?
« Reply #32 on: April 02, 2005, 12:26:08 PM »
tried everything written in this thread multiple times and i get the
Quote
2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 32280 is not allowed to access /home/unfluffy/public_html/Forums/Packages/temp/displaymembername owned by uid 99
File: /home/unfluffy/public_html/Forums/Sources/Subs-Package.php
Line: 1476

 :(

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,218
  • Mind the volcano!
    • My homepage
Re: Having problems with the package manager?
« Reply #33 on: April 03, 2005, 08:52:57 AM »
Now with patrick's method i can install mods yaY! Its slow but it works. Thanks for your help
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Offline Oldiesmann

  • Site Team
  • SMF Super Hero
  • *
  • Posts: 23,207
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Having problems with the package manager?
« Reply #34 on: April 04, 2005, 09:55:40 AM »
tried everything written in this thread multiple times and i get the
Quote
2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 32280 is not allowed to access /home/unfluffy/public_html/Forums/Packages/temp/displaymembername owned by uid 99
File: /home/unfluffy/public_html/Forums/Sources/Subs-Package.php
Line: 1476

 :(

SAFE MODE is an annoying "security" feature in PHP that prevents scripts from accessing files/folders that don't have the same UID. Unfortunately, the package manager currently doesn't work with Safe Mode enabled. You will have to install the package manually.

Offline Gidget

  • Newbie
  • *
  • Posts: 8
Re: Having problems with the package manager?
« Reply #35 on: April 04, 2005, 10:42:11 AM »
Bypassed the Safe_mode.
It takes some time but ik worked for me

- At 1st safe mode error : go with ftp client to the packages folder
- delete the temp folder
- create temp folder an chmod it to 777
- go back to page, click on REFRESH PAGE
- repeat this at al safe mode errors.

With de permission denieds, find the files and chmod them manualy.
( or do a complete chmod to you're site  ::))

took me 10 minutes to upgrade to 1.0.3.

Just wanted to thank you Patrick for these instructions  :D

I've just successfully upgraded to 1.0.3 with Safe Mode enabled.

I did get stuck for a while when I would CHMOD a file and it would just reject it again - then I found from another post (thanks [Unknown]) that if I also CHMOD'd the directory that the file resided in, it all came good and I could move onto fixing the permissions of the next file  ;)

All this might seem like a little victory to you gurus, but to a Noob like me it was great to be able to work through the issues myself and successfully install the upgrade.

Cheers

Gidget

Offline Oldiesmann

  • Site Team
  • SMF Super Hero
  • *
  • Posts: 23,207
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Having problems with the package manager?
« Reply #36 on: April 04, 2005, 02:54:01 PM »
Glad it worked for you guys :)

Offline toontastic

  • Jr. Member
  • **
  • Posts: 130
Re: Having problems with the package manager?
« Reply #37 on: April 07, 2005, 05:48:04 AM »
Any ideas about my problem lads and lasses ?

Offline toontastic

  • Jr. Member
  • **
  • Posts: 130
Re: Having problems with the package manager?
« Reply #38 on: April 07, 2005, 05:56:01 AM »
Just to add to this, two packages have now installed the quick reply and smilies however the rest are not becomming completly successful. It seems to be when extracting files and executing code. So for example when trying to install the warningv_1.21.tar.gz package it is successfull with all Execute Modifications but when extracting files from ./Sources/ and ./Themes/ and when trying to Execute Code from VisualWarningPdb.php I do not getting success. Any ideas ?

Offline Oldiesmann

  • Site Team
  • SMF Super Hero
  • *
  • Posts: 23,207
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Having problems with the package manager?
« Reply #39 on: April 07, 2005, 09:42:56 PM »
Don't know what to tell you about execution, but the other two are probably due to improper CHModding on those folders (they need to be 777).