SMF Support > SMF 2.0.x Support

Change Packages directory path

<< < (2/3) > >>

Arantor:
Yup, it'll have to be, since it's a lot more than the packages folder needs to be writable - mods can change literally any code in SMF.

andrea404:
for the future could be a good option set as a parameter in database the mods folder. What do you think?

Arantor:
There was a mod for it ages ago but honestly it's a waste of time, because you still have to have *everything else* be writable as well.

MrPhil:
Wait a minute... who has permission to write in "public"? Can anyone write anything into that directory, or just your applications? If "anyone", your SMF will get overwritten or hacked! Is this "public" seen as /public or as / from a browser? Is it really "public_html", which is the typical website root /?

I've never seen a host that lets you install a /forum but restricts the application to writing in /public. That's a very strange arrangement. You're sure that just by changing permissions in /forum, SMF can't write there? If 775 will do the job, that's not bad. A requirement for 777 would be insecure and thus a problem.  I think your host has got their head up their taillight socket... all applications need to be able to install modifications and otherwise update themselves, as well as uploading user files (packages, attachments, avatars,...).

If your applications are the only ones that can write to /public, I'm sure something could be done WRT uploading packages, attachments, and avatars to a new path (it would involve some PHP code modifications). However, it sounds like SMF would never be able to install a package or mod or theme, since that involves writing to /forum. It would all have to be done manually.

andrea404:
No, just the application :) On my host, If you want upload a file directly from the app, you have to put the file in folder called public(think for security reasons).

Now I've putted all in public directory and it functs without any problems. Only che captcha seems doesn't functs, it no appears  >:(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version