[Resolved] Omega 2+ // php change DOCUMENT_ROOT ? No input file specified.
-
Hi,
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 changeoption home '/www'
by
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,
-
Ok,
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 !
Problem solved,
-
Hi Joris,
Try this:
vi /etc/php.ini
Find the line
doc_root = "/www"
Change it with your new path
doc_root = "/www/vaipalmeiras"
Save, exit and run to restart uhttpd
/etc/init.d/uhttpd restart
-
@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?
-
@Federico-Parroni
Have the same problem (
-
@Roman-Sierikov Just had the same problem but I see no reply. What worked for me is to add multiple entries:
...
doc_root = "/www"
doc_root = "/www/project1"
doc_root = "/www/project2"
...