TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 724
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 514
  • Total: 515
  • lurkalot

Cannot install TP

Started by infocom, July 31, 2006, 06:56:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Quote from: infocom on July 31, 2006, 09:00:44 PM
Not quite a suitable answer IchBin as there are MANY Open Source software that use install processes like this and they work fine. As if they've been designed to get around the common issue of shared servers not allowing root access to change file permissions.

I would wager say that "most" open source scripts are not third party software when installed. You can't fix this issue necessarily because the server "Apache" is the owner when files are opened by it. You can't change what apache does. The fact that your server sets your temp files so that they aren't writeable is not an issue with TP/SMF its a server issue also. These are all settings that your server can be adjusted to fixing. I had to adjust my linux server to allow these things when I first set it up. And guess what, I have no issues now.

I'm glad you got it working. Thats a great little work around that I'm sure will come in handy for others. When you get your site going post it in the Showcase forum.

infocom

Yes, for tools such as Mambo/Joomla you can upload components which afterwards you cannot change permissions for or delete or overwrite using FTP. So you are correct, its the plug ins into OS software that cause the issues. For these systems I always download the folder and files, rename the folder on the server (you can do this even though you dont own it!), then re-upload the original file thus giving the "new" folder your ownership.  It was just that TP was not as easy as this, there were clearly other things going on in the Package Manager. So I do hope this process works for everyone else.

gerrymo

Quote from: infocom on July 31, 2006, 08:15:51 PM
Also, running chmod -R 777 Packages does not work:

welshhm@host [~/public_html]# chmod -R 777 Packages
chmod: changing permissions of `Packages/Tinyportal0_86_rev2.zip': Operation not permitted
welshhm@host [~/public_html]#


This is down to Apache ownership. Ask your host to set all ownership of files to you. Then retry.

If you have shell access, you may be able to do it yourself, but be carefull what you're doing. Ask your host if in any doubt about it.

IchBin

I don't know if you noticed Gerrymo, but she did a great job with a little work around. If you missed it, you might want to read back a bit.

*Tips hat to Laurie*

gerrymo

For future reference, and others with the same problem, it should be noted that the package manager does make file owned by the server, and the only way round that is via shell access, either directly, or via the host. Its a problem that SMF have been unable to resolve.

IchBin

I've seen a few things that could possibly be used as fixes. But I think that SMF doesn't view this as "their" problem. It's a long standing issue that Linux/apache has had for quite some time. In fact, there is even a module that you can add to apache that resolves it somewhat located here.

http://www.suphp.org/Home.html

It really boils down to the server I guess. I've been searching for a way for scripts to be able to determine their own user/group but have been unable to find anything.

infocom

Hi Gerrymo.

I have shell access but cannot change ownership. I think this is because I am not the owner of the files in the first place. I am not a Linux expert but can find my way around and dont think I can change ownership. I have had to ask my hosting provider in the past to do it for me, but as I am a web developer using Open Source software I will come across this issue often and cannot keep asking them to do it all the time.

So for the time being the only solution I found is to download the folder in question, rename the folder on the server, re-upload the doanloaded folder and change permissions on that one. The only draw back is its time consuming if there's a lot of files, and then you have old files you cannot delete!

Laurie

gerrymo

I downloaded a copy of putty for doing it. The way I do it is to enter the ip addy of the server, log in as root and run the command line to change ownership. Your host will be able to give you step by step instructions, or ask on their forum, if they have one (most do), and one of the other webbys will tell you how.

It's actually quite easy to do chown.

infocom

Thanks, I'll ask them. I use SSH Tectia Client to access shell but have to login as my own user of course. Dont think they'll give me root. I'll ask. Thanks.

Crip

Looks good Laurie, glad ya got it installed, v0.9.5 coming soon. :)
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



This website is proudly hosted on Crocweb Cloud Website Hosting.