Added file to /var/www/html/ but not showing up. please help
Anyone know why? Where is my web root path?
Thanks
4 Replies
You might want to provide a bit more information… what distribution are you using (debian, ubuntu, centos?), what files have you uploaded (directories/filenames might be handy).
Also, have you followed any guides to get this setup?
With more information, we should be able to help you figure this out.
I have the new problem now. It seems like I can't run php files on my server.
I followed these guides and finished all the steps with not issues.
But when I run
Please help.
Thanks
I don't use CentOS, so not sure why this wouldn't just work out of the box if you definitely followed those instructions on the guide.
Did you definitely restart your web server? 'sudo /bin/systemctl reload httpd', and did you definitely install PHP? 'sudo yum install php php-pear'? There should be no harm typing it again and restarting your web server if it did need installing.
The other thing to check is if this line is somewhere in your apache config:
AddType application/x-httpd-php .php
And see if there is something similar to this too:
LoadModule php5_module /path/to/your/libphp5.so
I hope this gives you a pointer, and enough to help fix it.
Good luck!
After I added AddType application/x-httpd-php .php in my apache config file. It works.