Question

sorry if this question is very basic , but I am trying to run the example facebook application facebook 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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top