moving application and system outside root |
[eluser]zeromechanic[/eluser]
Maybe someone can push me in the right way. I've made an application in CI210, working great When i put the system and application folders outside the public_html, changed the path's in index.php Site is working fine, only fileupload doesnt work anymore. several php errors : access denied when i return the 2 folders into public, errors are gone. using: CI210 wiredesigns HMVC in this case the file upload class from CI server is php53(-cgi) with suphp enabled (activated through an addhandler in .htaccess) normal config is php52 as apache_mod
[eluser]CroNiX[/eluser]
Is the folder you are uploading to publicly accessible?
[eluser]zeromechanic[/eluser]
not sure. If I put de folders into de public html, everything is working as it should. uploading, resizing etc. but when outside the public html, errorsssss config : public_html->.htaccess->addhandler php53 ( which activates php_cgi-suphp, sow no 777 chmod needed. chmod higher than 755 and 644 gives 500 server error, due to the suphp) ) sow basicly under public_html it is writable, since there are no errors when i put the system/appl folder under the public_html. the errors came when i put the folders above the public_html.
[eluser]zeromechanic[/eluser]
the folder i upload to is in the public_html, only the appl and system folders are above the public_html
[eluser]zeromechanic[/eluser]
sorry to bump is there no CI die-hard that can give some advise?? asked my hoster: "it'technincal not possible to do this. the site has to be in the public_html" duh, site IS working, almost everything. The (admin) uploads not, permission errors chmod 777 is not possible -> working with suPHP (script/me is owner, not apache)
[eluser]CroNiX[/eluser]
Here is a basic setup on my server... Code: /home/site_name/system (CI system dir, 1 level below public_html) And change these paths in my index.php: Code: //$system_path = 'system'; (Original)
[eluser]Aken[/eluser]
There's probably an issue with relative paths somewhere, then. You'll likely need to go in and change your upload paths and whatnot.
[eluser]zeromechanic[/eluser]
whaaaaa @Aken many thanks for pointing me to the right direction. used Code: $this->imdir = realpath(APPPATH . '../upload/images/FOLDER'); stupidstupid :ahhh: :ahhh: , never changed this to a doc-root. changed to Code: $this->imdir = realpath($_SERVER['DOCUMENT_ROOT'] . '/upload/images/FOLDER'); and its is uploading, resizing, and all thnx. so i can reply to my hoster that it is POSSIBLE to do this @CroNiX I use the same config. MANY THANKS. |
Welcome Guest, Not a member yet? Register Sign In |