News:

SMF 2.1.3 has been released! Take it for a spin! Read more.

Main Menu

Having problems with the package manager?

Started by [Unknown], February 20, 2005, 12:32:26 AM

Previous topic - Next topic

NOS ChromeNut

Quote from: Juggler on August 21, 2005, 04:26:06 PM
Thanks but I am beginning to lean towards hosts rather than SMF now as I've found an SQL database sitting on my account that isn't mine. They've just purchased a new server and moved accounts onto it this week and the package manager was working fine until this morning!

So it all seems to point to some sort of server issue, it's just dead weird that the ONLY link that doesn't work is Packages - I even managed to open the browse package link by inputting the exact path and voila, but I can't install any packages now as I can't open that first package page.

Grrrr....

Your host have you on a shared server?  That can happen sometimes, if they aren't paying good attention to the security and insuring that members don't cross over into each other's areas.

URPG

#121
Hi!

I'm getting a

2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 665 is not allowed to access /var/www/web11/html/forum/Packages/temp/Lots_O_Smileys owned by uid 33
File: /var/www/web11/html/forum/Sources/Subs-Package.php
Line: 1476

when installing a mod (lots_o_smileys in this case).

I did set the Packages Folder and all the files / folders it contains to 777 what else can i do? What's this safemode thing?

Edit:
I did also upload the change ownership thing and run it with my ftp settings. it said it correctly did /html/forum/ (where smf is located) but no change in error message...

bmwboy

Hmm...
I think safe mode is on..may affect that, here, make a new file, call it "phpinfo.php"
and in it put:
<?php
phpinfo();
?>
And link to it please.

URPG


TANDIONO.COM

Im having problems with the package manager...

When i click on "package manager" it show "500 Internal Server Error"

any idea what i should do? thanks

cyberstang5.0

Quote from: cyberstang5.0 on August 17, 2005, 05:01:58 PM
Quote from: eldacar on August 16, 2005, 08:55:36 PM
I've found that to install packages with the SAFE MODE restriction, I need to put the correct ftp pass and path in, and then create the pacakges/temp folder and set it to 777 twice. once before installing a mod, and then again after it's come up with the list of files and "SUCCESS" for all of them (hopefully), before clicking [proceed]. And that works fine :)
I put the correct FTP info and changed the folder to 777 and it still doesn't work.  Is there anything else I can look at?  Can I turn safe-mode off?  If so, how do I do it?
Still not working... Any answers/help?  :'(

cyberstang5.0

Well, I figured out something...

I looked at the properties of the temp folder inside the Package folder and it shows the uid to be 99 while any other folder or file in the SMF folder is 32138.  If I delete the temp folder and recreate it, it still shows uid to be 99.  If I delete it and create the temp folder in another folder, then move it inside the Package folder it will show 32138.  But as soon as I click on "apply mod" in the package manager section, it changes it back to 99.  >:(

How can I permanently change it to 32138 instead of 99?

Dannii

Well by its very nature its not permanent :p
However if you delete the folder and then recreate it and set its permissions all through ftp, it should be set to 32138, and the SAFE MODE problem should disappear. Well thats worked for me so far..
And yes it will change back to 99 (which is your php uid I expect) after you click apply mod. SMF will actually delete the temp folder and make another. you will again have to delete the one SMF/php made, and create your own and set it to 777.
"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."

cyberstang5.0

Quote from: eldacar on September 16, 2005, 09:38:28 AM
Well by its very nature its not permanent :p
However if you delete the folder and then recreate it and set its permissions all through ftp, it should be set to 32138, and the SAFE MODE problem should disappear. Well thats worked for me so far..
And yes it will change back to 99 (which is your php uid I expect) after you click apply mod. SMF will actually delete the temp folder and make another. you will again have to delete the one SMF/php made, and create your own and set it to 777.
So basically this means I can't use package manager?!  :'( >:(

After I delete the folder, and change the CHMOD setting to the correct setup,  SMF deletes the current folder and recreate the folder before it writes to it.  After it does that, it can't write to the folder it JUST created.  That's sounds pretty retarted IMO...

Dannii

#129
ELDACAR'S METHOD TO GETTING AROUND THE SAFE MODE PROBLEM.

FOLLOW EXACTLY

  • You need to locate your Packages folder. It is probably a child of the main folder where you installed SMF (and where your index.php is), but if it is not you will have to locate it first. If you are not sure, it will have a file called "installed.list" inside dated at either the time you installed SMF or the last time you installed a package.
  • FTP: Create a new folder in /Packages called "temp"
  • FTP: Set it to "777"
  • Web Browser: Click "[Apply Mod]". Proceed only if there are no errors. Keep the window open and do not click anything yet!
  • FTP: Because SMF has deleted the folder, you will have to create another folder in /Packages called "temp". If you do not make this second folder the SAFE MODE problem will occur when it tries to use the folder it makes for itself.
  • FTP: Set it to "777"
  • Web Browser: Click "[Proceed]". Hopefully everything has now worked and your mod is installed!
  • Sometimes a mod will need to copy folder(s), of which the above will possibly not solve. If a folder is NOT copied (generally you'll get many many errors about files not being found):
    • Uncompress the mod on your local harddrive.
    • Find the location where it is supposed to go. This info will be found in the package-info.xml file under a tag called "require-dir", and will look something like <require-dir name="AplosRTE" destination="$boarddir" />
    • This destination is a relative position, as people can install their forum with many options. It will probably be "$boarddir" which is the main directory where your forum is installed (ie, copy the folder to the same place as your main index.php). Other possibilites could be $themedir which is the directory which contains your themes, $sourcedir which contains the source files, and $languagedir which is the language folder in the Default SMF theme board. If the destination is not one of these, and you cannot figure out where it is supposed to be, just post here and someone will help you quickly.
    • FTP: Copy the folder(s) to where they should have been if it had worked.
    • FTP: Set the folder(s) to "777" and the files inside to "755".


I have had no problems at all after following these steps. You will need to do this with everything in the package manager, including SMF updates.
"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."

cyberstang5.0

Quote from: eldacar on September 19, 2005, 03:46:05 AM
ELDACAR'S METHOD TO GETTING AROUND THE SAFE MODE PROBLEM.

FOLLOW EXACTLY

  • FTP: Create a folder in /Packages called "temp"
  • FTP: Set it to "777"
  • Web Browser: Click "[Apply Mod]". Proceed only if there are no errors. Keep the window open and do not click anything yet!
  • FTP: Because SMF has deleted the folder, you will have to create another folder in /Packages called "temp". If you do not make this second folder the SAFE MODE problem will occur when it tries to use the folder it makes for itself.
  • FTP: Set it to "777"
  • Web Browser: Click "[Proceed]".

I have had no problems at all after following these steps. You will need to do this with everything in the package manager, including SMF updates.
8) I'll try it out when I get home.  Thanks for your help.  :D

cyberstang5.0

It works!  Thanks for your help....  :D

I have one more question.  When I install mods such as "SMFShop" and "SMF Arcade", it writes subdirectories inside the "temp" folder.  It is also using UID 99.  I tried doing the same trick to the subfolders as I did to the temp folder but it doesn't work.  Any trick / idea to solve this one?

Dannii

Those are folders with files just to be copied, and not modification files? Just copy it normally through ftp from your computer after you've installed the mod.
"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."

URPG

Will try it if 1.1. does not work... just upgraded and am experiencing some problems...

Axiem

My issues seems to be quite different from everyone else's:

I don't have FTP access. I only have sFTP access. Therefore, all the nice tools that use FTP don't work.

Is there a convnient way I can get around this, or am I going to have to apply all mods by hand?
Crystal Ball Information:
http://anime.truman.edu/forum [nofollow]
SMF 1.1 RC 1
Minor Mods
Custom Theme

Oldiesmann

Just chmod the appropriate files to 777 by hand. Whenever you want to install a mod and it asks for FTP access, take a look at the files it modifies and the folders that it adds stuff to, then chmod those things to 777. Also, either chmod the backup files to 777 (the backup files are the ones with a ~ on the end of them) or delete them before installing packages or you'll run into trouble there as well.
Michael Eshom
Christian Metal Fans

Axiem

Crystal Ball Information:
http://anime.truman.edu/forum [nofollow]
SMF 1.1 RC 1
Minor Mods
Custom Theme

Elmacik

Quote from: Oldiesmann
Also, either chmod the backup files to 777 (the backup files are the ones with a ~ on the end of them) or delete them before installing packages or you'll run into trouble there as well.

deleting them wont cause us to use the installed mods forever? :P
i mean, wont we face up uninstallation errors?
Home of Elmacik

Dannii

No because if the mods are working properlly, which they should be if it installed properly, then the uninstalls will work perfectly fine too. the backups are just incase it doesn't install properly.
"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."

Elmacik

#139
hmm ok i got it..
but in contrast of 1.1 beta 3, in 1.1 rc 1, there is a "backups" folder in /Packages
and it backups all the forum on any installation/unistallation. then what they are for if the .php~ files are for backup ?
Home of Elmacik

Advertisement: