Path to AppGini's returning an error
rafinhacarneiro opened this issue · 2 comments
I just reconfigured a new website as a subdomain so the URL is no longer www.mysite.com/demo where demo is my AppGini folder. The URL is now demo.mysite.com and AppGini is in the ROOT of this site.
I am still having to add the ../ as I get 500 errors when trying to run this by putting the API folder in the root, like this... demo.mysite.com/api.
failed to open stream: No such file or directory in /home/mysite/domains/demo.mysite.com/public_html/api/v3/api-config.php on line 20
where public_html is my ROOT folder. if this were not a subdomain it would look like this /home/mysite/public_html/api/v3/api-config.php
anyways same Nonexistent/Inexistent table error after adding ../ to make the 500 error disappear.
Originally posted by @dtsoden in #1 (comment)
Created a loop that searches root to API folder for AppGini lib.php
and saves it's path or returns an error.
Keep in mind that the AppGini app can be placed anywhere other than the root folder, but the API MUST be in the same folder as AppGini
Resolved