开发者

Can't get index.php to work on LAMP on LINODE

开发者 https://www.devze.com 2023-03-03 02:20 出处:网络
sorry if this question is very basic , but I am trying to run the example facebook application fac开发者_开发百科ebook gives you.

sorry if this question is very basic , but I am trying to run the example facebook application fac开发者_开发百科ebook gives you. I am using linode, and installed the stock linode LAMP stackscript. I installed PHP and I then downloaded the code from facebook to a facebook folder in the default site folder, /srv/www//public_html/facebook. I try and go to the site page in the browser with no success. Im sure im missing something basic so sorry in advance


It's possible that your Apache configuration doesn't have index.php set as a valid DirectoryIndex.

Search your configure files (usually in a dir.conf file (sometimes in /etc/apache2/mods-enabled/)) for a the DirectoryIndex directive, and verify that it has index.php in it. Also, these definitions are in order of precedence. So if index.html is first, and index.php is last, if your folder has an index.html file in it, your index.php will never be loaded. So, either remove the index.html from your document root, or move index.php in the DirectoryIndex directive to the left.

Also, make sure you have display_errors set to on in your php.ini and error_reporting set to E_ALL. This will tell you when you have parse errors and other fatal errors in your php code, so you won't have to go guessing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号