Hi odan, thanks for you help. but didn’t work to me…
I have followed this steps:
Install the slim-skeleton by composer (composer.phar create-project slim/slim-skeleton slim3-app ) inside of “/var/www/html”
2 - Created a .htaccess inside the slim3-app/.htaccess
3 - edit the “slim3-app/src/dependencies.php” and add your snippet of code.
4 - My documentRoot it’s mapped to: “/var/www/html”
5 - i added th code in my git : https://github.com/getJv/slim3-app
Your documentroot should be mapped to /var/www/html/slim3-app/public, since that is where you installed it. The .htaccess would therefore be at /var/www/html/slim3-app/public/.htaccess. Then you would access it from http://localhost:8888. If you still get an error, look inside Apache’s error log to find the specific error. The one you see on the page is generic. Apache’s error log will give you more precise details as to what is going wrong.
Hi @tflight i’ve made your rocommend modifications.
Now my my documentRoot is its mapped to “/var/www/html/slim3-app/public”,
So when o use the browser (localhost:8888) the error 500 persists.
The apache error.log show the following error: [Sat Dec 02 14:46:49.400920 2017] [:error] [pid 407] [client 172.17.0.1:48502] PHP Fatal error: require(): Failed opening required '/var/www/html/slim3-app/public/../vendor/autoload.php' include_path='.:/usr/share/php') in /var/www/html/slim3-app/public/index.php on line 12
the index.php on line 12 its looking a vendor directory… but there is no “vendor/” inside the slim-skeleton project
My folders structure (slim-skeleton from composer command)
What do you think about? Am i doing something wrong or there is some possibility of the slim-skeleton it is out of date and is missing the “vendor” directory?
hahaha! it working!!! oh man really thanks for your help. after run the comporser install i saw that was missing some importants php modules, and for this reason the verdor folder and other slim things was missing.
but now it is everything working. Now i will go on with my studies.