News:

Wondering if this will always be free?  See why free is better.

Main Menu

Mod install problems

Started by mrtrick, July 13, 2016, 05:42:43 PM

Previous topic - Next topic

mrtrick

I know this has been discussed before in various forms, but since upgrading to 2.0.11 I'm having issues installing mods. At first it was a "writable" problem, which I resolved. I know can upload the mod, it is decompressed in the /temp folder and I can click install. When I click install the web browser hangs until the session times out. I do see the files in temp, and the backup in /backups as the browser is "spinning". Once it times out and I look in the packages, I see the package listed as though it is installed, however it does not completely install (no menu items/functionality of the mod). Any suggestions. I'm close, but can't seem to get past this last hurdle.

Kindred

What you describe is indicative of a chown problem.   That has nothing to do with 2.0.11 - it's a host configuration issue
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrtrick

Thanks for your response, but can you elaborate a bit more into where the chown problem may reside? The files in /tmp appear to have the proper owner and group information.

Kindred

it's not the tmp files.  it's the forum files.

Basically, this usually happens when the host has configured php/apache to run as "nobody"
therefore, any files uploaded by a php script (like the package manager) are chown(nobody)
If you installed SMF by the regular installation method or uploaded files vie ftp or your file manager, then the forum files and directories are chown(yourUser)

unless you chmod directories and files to 777/666, you are going to encounter issues.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mrtrick

so, I recompiled apache using mod_ruid2 so the process runs as my user.

Still no joy.

23724 slforum   25   0  109m  17m 5588 R 56.6  1.0   1:49.57 /usr/bin/php /home/slforum/public_html/index.php

Sits here for days. Permissions are set for user:group slforum on public_html (which is where the forum is installed). Any other suggestions? I'm still missing something.

I should add, the tests all show successful before hitting install.

mrtrick

From the error log:


http://www.silverlakeforum.com/index.php?action=admin;area=packages;sa=install2;package=SimpleAudioVideoEmbedder3.6.2.zip;pid=0
2: feof() expects parameter 1 to be resource, boolean given
File: /home/slforum/public_html/Sources/Subs-Package.php
Line: 2830

mrtrick

and I did replace Subs-Package.php with a clean version.

Sir Osis of Liver

It's not able to open the file.  What are your directory/file permissions?
When in Emor, do as the Snamors.
                              - D. Lister

mrtrick

Which directory / file?

drwxr-xr-x  6 slforum slforum 4.0K Jul 14 16:04 /home/slforum/public_html/Packages

drwxr-xr-x  4 slforum slforum 4.0K Jul 14 16:04 /home/slforum/public_html/Packages/temp

drwxr-xr-x  2 slforum slforum  20K Jul 14 16:04 /home/slforum/public_html/Packages/backups

drwxr-xr-x  4 slforum slforum  12K Jul 14 16:00 /home/slforum/public_html/Sources/

-rwxr-xr-x  1 slforum slforum  92K Jun 30 16:58 Subs-Package.php*


Sir Osis of Liver

Don't know which file it's trying to open at that line.  Some servers don't like 777 permissions.  Default permissions on my host are 755 directories / 644 files, and that's always worked with SMF.  If I install a language package, the main forum directory is changed to 777 (for reasons unknown), and forum crashes with 500 error.
When in Emor, do as the Snamors.
                              - D. Lister

mrtrick

Ok, I'm going through once again and chmod'ing all the directories and files again. I'm not sure that's the issue but will double check.

Sir Osis of Liver

Are you running mod_security?  If so, try disabling it.
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: