How to host index.php under root or under /mnt/sda1

Hi,
My requirement is to host index.php under root or /mnt/sda1/, my configuration is below, unfortunately I am getting error as below, please help here

I have installed uhttpd and i am successfully able to run any index.html file on 10.10.10.10:1234 but in case of index.php, no luck

image

config 'uhttpd' 'myconfig'
	list listen_http '0.0.0.0:1234'
	list listen_http '[::]:1234'
	list listen_https '0.0.0.0:1234'
	list listen_https '[::]:1234'
	option redirect_https '0'
	option home '/'
	list index_page 'index.php'
	list interpreter '.php=/usr/bin/php-cgi'

Thanks, in advanced.

This requires a certificate and key file to be specified. You must also specify a port other than the one used for http.

To be able to set a custom home variable, you must first comment out the doc_root option in /etc/php.ini using a semicolon (;).

2 Likes

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