[Resolved] Omega 2+ // php change DOCUMENT_ROOT ? No input file specified.
I'm trying to use php on my omega2+.
A basic index.php :
<?php echo 'ok';
on /www work well.
But I want to change the "DOCUMENT_ROOT" or "home" of uhttpd.
So I change
option home '/www'
option home '/www/src' # with trailing slash or not
Move my index.php to subdir "src"'.
And restart uhttpd.
But I'm facing a curious error :
No input file specified.
I tried to "google" this error, but no results...
If anyone tried some similar configuration... :)
Thanks a lot,
I found the problem.
You don't have to inform only uhttpd for the new "home/doc_root".
You have to modify "/etc/php.ini" at the "doc_root" entry.
Restart uhttpd and that worked !
Find the line
doc_root = "/www"
Change it with your new path
doc_root = "/www/vaipalmeiras"
Save, exit and run to restart uhttpd
@Caio-Reimann Thanks ! We reply to my thread at the same time !
Are you thinking to use a database with php?
@Caio-Reimann Yeah... just post this thread : https://community.onion.io/topic/1319/omega2-use-mysql
Hi. What have I to do if I have multiple folders in www?
doc_root = "/www, /www/project1, /www/project2"
Is this correct?
Have the same problem (