If you need urgent support, call 999 or go to your nearest A&E. To contact our Crisis Messenger (open 24/7) text THEMIX to 85258.
Read the community guidelines before posting ✨
Options
PHP/Apache
BillieTheBot
Posts: 8,721 Bot
in General Chat
I've got Apache with PHP4 running on Mandrake Linux 9, and keep getting this error message
when opening http://localhost/
but another script (test.php), with phpinfo(); as the sole line of code, works fine...
any help is gratefully recieved!
Warning: Failed opening '/var/www/html/index.php' for inclusion (include_path='.:/usr/lib/php/:/usr/lib/php/pear/:/var/www/html/') in Unknown on line 0
when opening http://localhost/
but another script (test.php), with phpinfo(); as the sole line of code, works fine...
any help is gratefully recieved!
Beep boop. I'm a bot.
0
Comments
It also fails on header.php and footer.php.
I've fiddled with httpd.conf and php.ini (added the document root to the include_path), but to no avail.
thanks for the advice
Oh, it's Apache Advanced Extranet Server...but I think it's the same to configure. It came preinstalled with mod_php, mod_perl and some others.
It's the case where I guess you're doing
include "somefile.php"
and it's looking for somefile.php in your document root which it thinks is /var/www/html but is probbaly something else. This is one of the options somewhere I think that you can alter.
phpDEV
i don't know the URL and i don't know if they do one for your OS.
cheers
lank
make sure you have index.php in the same folder as the page your including it off, when you open localhost make sure its working with index.html first, then make sure you have configured apache correctly to parse php, im running exactly the same setup as you- i guess you got madrake of linuxformat?
any ditch mandrake- use debian...!!!!
all is good, now
cheers for the advice people
edited to add: I got downloaded the Mandrake ISOs using windows and burned the install CDs.
I'm pleased with it as an OS, but i'd prefer MacOS X!