If your problem isn't listed below, please provide sufficient code and screenshots when asking for assistance.
Example:
Fatal error: require() [function.require]: Failed opening required '/home/user/p2.yourdomain.com/../core/bootstrap.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in/home/username/p2.yourdomain.com/index.php on line 22
The error might be about bootstrap.php
or environment.php
or something else.
Generally this means there's something wrong with your file organization / installation.
Double check these things:
-
Is your document root pointing to the
p2.yourdomain.com
directory (MAMP Ex., WAMP Ex.)? Your application has to be running as the root directory in order for the file connections to work. -
In your document root, are
core
,environment.php
and your app all parallel to one another? Example:/root/ /core/ /environment.php /p2.yourdomain.com/
Reminder, on MAMP the document root is typically /Users/YourUsername/Sites/
and on WAMP it's typically c:\wamp\www\
Revisit the Install doc if you have any problems with the above.
Make sure rewrite_module is enabled. This is essential for the framework routing.
MAMP:
rewrite_module should be on by default, but if you're having problems, look for it in your Apache configuration file (httpd.conf
):
/Applications/MAMP/conf/apache/httpd.conf
This is typically a permissions issue; see the Version Control Common Problems doc and find the section on permission issues.
The framework, by default, will display errors on local. Sometimes, though, MAMP will not display the errors but instead dump them into the PHP error_log
(fine, but not as convenient).
To turn on display errors in MAMP:
Goto your MAMP start page: http://localhost/MAMP/?language=English
Click the tab up top for phpinfo
Find the path listed for Loaded Configuration File. Example:
/Applications/MAMP/conf/php5.4.4/php.ini
Find the php.ini
file in the specified location and make sure the following line is set to "On" and doesn't have a semi-colon commenting it out:
display_errors = On
Restart your server after making this change.