News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Having problems with the package manager?

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

Previous topic - Next topic

[Unknown]

Some people have run into problems using the package manager.  These are caused either by safe mode issues, or wrong paths.

If you're trying to use the package manager in safe mode, you may experience problems.  This is caused by ownership issues.  Previously, our recommendation has been to ask your host to enable PHP suExec, which solves those issues.

Recently, we came upon another solution which may resolve the need for PHP suExec in safe mode environments.  While this is still something your host should/could do for you, it is also something you can do without their involvement in many cases.

PLEASE NOTE: This solution may or may not work for everyone.  We would like feedback on whether or not it works for you.

The tool attached does two things: first, it changes the permissions (if possible) on the files in your SMF installation to combat safe mode, and second it tells you what path it used, which is what you should use in the package manager as well.  Please use this tool if you are having problems installing mods, and copy down the path it gives you.  The next major release of SMF should solve these problems.

The trick this file uses is that setting your permissions a certain way will make it so that files created by PHP, for example in "attachments", are still owned by *you*, not PHP.  This is, in many cases, better anyway, because you don't want files owned by someone else in your stuff!

-[Unknown]

Oldiesmann

Tried the tool on a friend's board...

I still get this when trying to use the package manager:

Quote2: opendir(): SAFE MODE Restriction in effect. The script whose uid is 832 is not allowed to access /.../var/www/html/forums/Packages/temp owned by uid 48
File: /.../var/www/html/forums/Sources/Subs-Package.php
Line: 895
Michael Eshom
Christian Metal Fans

[Unknown]

Try deleting the temp directory and trying again... or... hmm, I'll make a change to the attachment, one moment..

-[Unknown]

Oldiesmann

Michael Eshom
Christian Metal Fans

Owdy

: fopen(): SAFE MODE Restriction in effect. The script whose uid is 2542 is not allowed to access /home/customers/kulma/public_html/keskustelu/Packages/temp owned by uid 502
Tiedosto: /home/customers/kulma/public_html/keskustelu/Sources/Subs-Package.php
Rivi: 1454
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Oldiesmann

Still not working for me either... I already upgraded that board to 1.0.2 earlier, but found another mod that might be nice to have, and uploaded that via the package manager, and even attempted to install it before running the fix_ownership file...
Michael Eshom
Christian Metal Fans

ayanna

Ummm...I know, I'm an über-newbie (and a girl at that! but hey, at least I'm not blonde on top of it all!)...but...how do you use the 'tool'?
If I click on it...it just opens it in my browser.
If I try to right-click & save target as...it saves it as a txt file

I really like SMF but...how the heck can I install any of the mods if the package manager won't let me?

Yes, I get the same SafeMode error messages everyone else seems to be getting...and if the 'fix ownership' thingy (that's a very technical term, ya know!) will work, I'd really like to use it!

Suggestions? Assistance? Cure-alls?

I'm truly desperate...as there are several mods I'd like to install (integrated chat, arcade, shoutbox, etc)...if it makes a difference I'm using SMF 1.0.2

Trekkie101

Open FTP, and upload it to your forums directory and then type in the address in your browser straight to the script and then it will ask you things to fill in.

Minion

Hey Unknown,

Just installed a new board on a godaddy.com server.
Everything went fine except now when i try installing mods I get through the package manager I get this error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


When I check my SMF log I see this

2: opendir(/home/content/m/i/n/minion/html/board/Packages/temp/Themes/default): failed to open dir: Too many open files
File: /home/content/m/i/n/minion/html/board/Sources/Subs-Package.php
Line: 895


Any idea what is wrong?  Thanks in advance.

Trekkie101

Looks like too many files arent allowed on your host, they should close once used. Maybe a big loop is calling something or maybe it doesnt want more than say 1/2/3/4/5 files open at once.

Minion

I checked with them, they said there were no restrictions on thier end.
They said it may be ftp logins.  I am allowed 3.  But I don't see how that could be it.

Anyways if anyone else has an idea i am open to it.

Thanks for you help.

[Unknown]

That's a filesystem error.  There's a hard limit on concurrently open files in the system configuration.  This means they've overloaded the server.

-[Unknown]

countess_d

Ah, this is driving me insane... I upgraded to 1.0.2 recently. Today, to be more precise, and found this little issue with the Package Manager. Well, I downloaded the fix, uploaded it to my forum, went to it, filled everything (and I'm 100% sure I had all the data right); yet it keeps doing... nothing! :'(

I get an error message using the fix_ownership.php:

QuoteAn error occured while trying to connect. The error was:

And that's it! It's a blank error... it doesn't tell me what the error was, it just... doesn't... work. :-X
Help?

I can live without it for now, I mean, it's not urgent or anything, but I'd really like for it to work.
Thank you!

[Unknown]

Strange... no error at all?

Does it take a long time to load?  Are you using "localhost" for the ftp server (if not, please do try)?

No error could mean difficulties in connecting to the server at all, but that's still a problem as an error should be shown.

-[Unknown]

countess_d

Nope, I'm afraid there's no error at all. Just blank right after that "Error" bit...  ::) and yes, I'm using "localhost" for the ftp server. It was the default, and it allways works for everything else, so I saw no need to change that.

I'm not so sure what you mean with difficulties connecting to the server, because well, I connected through an FTP program (obviously, else how would I have uploaded the fix...  :-[ ) and to the database aswell without issues ???

[Unknown]

Interesting.  Are you sure you're using the right port and everything?

If it shows no error, it must be getting that back from the server or something... which doesn't make any sense.  Does it take a long time to show the error?

-[Unknown]

countess_d

I'm quite sure I'm using the right port. I'm sure all of the info is correct. At least I've never had problems when using that same info before.

To answer your second question, no, it loads fairly quickly. Average for any other page.

gizzleweb

 I started my board and tried to install the shop mod the easy way, now all i get is

nternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Can someone tell me what the possible problems and solutions are? It appears that the files are uploading and such.

[Unknown]

Quote from: countess_d on March 13, 2005, 07:12:34 PM
I'm quite sure I'm using the right port. I'm sure all of the info is correct. At least I've never had problems when using that same info before.

To answer your second question, no, it loads fairly quickly. Average for any other page.

Interesting.  That means it IS connecting, and it's getting through - but somehow it isn't getting any error message.

I've attached a debug version of said script.  It should tell you everything that's happening.  Please tell me what it outputs, at the top of the screen.

Gizzleweb, didn't you post that already?  A few times?  Did you ever try, as per my response to one of your spamilicious posts, chmodding files to 755?

-[Unknown]

Dannii

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
"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."

Advertisement: