News:

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

Main Menu

Package manager doesn't install mod

Started by IngeJones, February 03, 2013, 12:12:27 PM

Previous topic - Next topic

IngeJones

Split from original discussion

I just installed this with 2.0.4

It didn't appear to be adding the supposed function to my forum, so I decided to uninstall it.  The test pass for uninstall came up with loads of red warnings not to continue.  What would you advise me to do now?

NanoSector

Quote from: IngeJones on February 03, 2013, 12:12:27 PM
I just installed this with 2.0.4

It didn't appear to be adding the supposed function to my forum, so I decided to uninstall it.  The test pass for uninstall came up with loads of red warnings not to continue.  What would you advise me to do now?
You are probably one of the users hit by the odd error where the package manager does not perform anything. If I remember correctly it has to do with the file permissions, so set those to 0644 or 0755 (latter should work if 0644 doesn't). You might want to read up on chmod. If this doesn't help, open up a support topic in the 2.x support section.
Good luck :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

IngeJones

As far as I can see my files are already 0755.   The installation reported success.  Unfortunately since it won't let me uninstall I can't try installing again with different permissions, as the install option is now not showing.

NanoSector

Hmm, that's odd. Are you the owner of the files? If not, might want to try chown-ing them.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

IngeJones

Well now the question is, who am I while I am logged into the forum?  I own the files as a linux user.  But who am I when I am doing things via the forum interface?  Is there a way to check or set that?   BTW this is our own server so I have root access if necessary.

NanoSector

Quote from: IngeJones on February 03, 2013, 12:44:59 PM
Well now the question is, who am I while I am logged into the forum?  I own the files as a linux user.  But who am I when I am doing things via the forum interface?  Is there a way to check or set that?   BTW this is our own server so I have root access if necessary.
Well, this is a matter that can't be handled from inside the forum. Is your hosting account "root", or is it something else (numeric or similar)?

If you're still lost, I use FileZilla for FTP. It shows you the owner: http://prntscr.com/rfuaz
Is it the same for most files on your server?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

IngeJones

Bearing in mind I own the machine and it's in my own house, I can log into the machine as root, or various other accounts.   The whole of the forum structure and files are owned by inge group www-data and are chmod 0755.

Should I actually be paying attention rather to who apache2 is running as rather than "who I am"?

NanoSector

Quote from: IngeJones on February 03, 2013, 01:21:06 PM
Bearing in mind I own the machine and it's in my own house, I can log into the machine as root, or various other accounts.   The whole of the forum structure and files are owned by inge group www-data and are chmod 0755.

Should I actually be paying attention rather to who apache2 is running as rather than "who I am"?
Well, if it's www-data who owns it, that should be okay I think...

Can you post, or PM, me the path where SMF is installed on your server?

If you want me to I can log into your server too to take a look at the file permissions and ownership. Do read this topic though.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

IngeJones

I checked via Webmin and apache is running as user www-data and group www-data.   Now the files and directories were 0755 but owned by inge, which I can see would not have been suitable for SMF to write to.   So I have since my last post  chmodded everything under the forum directory to 0775.  I believe this should make them all writable by the forum processes now.

I have tried installing another mod, just for comparison, and while no errors are reported while installing or uninstalling, it has definitely not installed fully, as all the strings are missing.  Do I really have to go the whole hog and change ownership?  I really don't want to as I also like to  modify files by hand logged in as inge.  And it kinda doesn't make sense.

My husband makes mods for SMF using the hooks system and I have never had any of these problems installing those.

At this point I would just like to uninstall the mod, but I guess the only way to be sure I have completed it cleanly is to restore the files from my backup?

IngeJones

It's sorted now.  I forced the uninstall in spite of the warnings and when I reinstalled it worked and added the advertised functionality.  Thanks :)

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: