Basedir and Softacolous bugs (OpenCart)

Website URL

https://conny.parts

Error Message (during OpenCart MANUAL install)

Warning: open_basedir needs to allow access to /home/vol9_7/infinityfree.com/if0_38910973/conny.parts/
Required basedir:
/home/vol9_7/infinityfree.com/if0_38910973/conny.parts/
Actual basedir:
/home/vol9_7/infinityfree.com/if0_38910973/conny.parts/htdocs/

Other Information

Whenever i try to manually upload and install OpenCart on my site, it won’t work because of basedir restriction etc etc (OC software needs “ocartdata” folder right outside htdocs).
That wouldnt even be a problem, because there’s SOFTACOLOUS for us to help and install the software right away with the root power!
Except if you install the latest OpenCart with the tool, the frontpage works, but the admin panel
https://conny.parts/admin
gives you a straight middle finger with a 500 server error.
Any ideas why?

EDIT(before posting):
I just tried installing an older version of opencart (3.x instead of 4.x) (working in some older website i built on the platform) and DOESNT give you an error 500 middle finger but explains why that happens.

Warning: is_file(): open_basedir restriction in effect. File(/home/vol9_7/infinityfree.com/if0_38910973/conny.parts/ocartdata/storage/modification/system/library/request.php) is not within the allowed path(s): (/php_sessions:/tmp:..:/var/www/errors:/home/vol9_7/infinityfree.com/if0_38910973/conny.parts/htdocs) in /home/vol9_7/infinityfree.com/if0_38910973/conny.parts/htdocs/system/startup.php on line 62

So, i’d say it’s some open_basedir related trouble. editing the htaccess with [ php_admin_value open_basedir none ] does nothing.
Could the admin please fix this for me? Or just make it clear that the OpenCart software will not work anymore for nobody on Infinityfree and maybe delete it from Softacolous?
Thanks
Conny

5 Likes

I am very sorry to disappoint you, but i did the first part without reading the guide (setting the wrong ocartdata path breaks the installer with some undefined errors and/or breaks the whole site - frontpage AND admin wont work- ) and i just checked the second part, which is a known opencart 4.0.2.3 issue and HAS been in fact fixed in the actual (still broken here) 4.1.0.3.
Still thanks for the swiftness in helping me.
Conny

EDIT: i activated php error display, so you can now read the full errors that happen.
https://conny.parts/admin/
Hope you will understand those better than I do.

The first part is the important part. If you just leave the default ocdata path, your website WILL break your website. The reason your website doesn’t work is because of this reason.

Looking at the error messages on your website, it seems that your current ocata path is conny.parts/ocdata. But that should probably be conny.parts/htdocs/ocdata.

5 Likes

Thank you. The addon domain not located in the root folder confused me a little.
solved.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.