Php
Environment: apache,php with Apple's own
Items are placed under the default documentroot: "/library/webserver/documents" below
DocumentRoot of the new virtualhost: "/library/webserver/documents/myproject/public"
There are index.phtml files in the public directory
Cat public/index.php
/**
- This makes we are easier when dealing with paths. Everything is relative
- To the application root now. */
ChDir (DirName (__dir__));
Decline static file requests back to the PHP built-in webserver
if (php_sapi_name () = = = ' Cli-server ' && is_file (__dir__. Parse_url ($_server[' Request_uri '], Php_url_path))) {
return false;
}
Setup autoloading
Require ' init_autoloader.php ';
Run the application!
Zend\mvc\application::init (Require ' config/application.config.php ')->run ();
When you open a Web page, a blank appears, and the error message is
[Error] Failed to load Resource:the Server responded with a status of $ (Internal server Error)
Then I added a phpinfo () to the index.php and the page shows the Phpinfo page
Above my situation and problem is this, ask you the great God help me to see the problem is out where! Thanks a lot!!
Added: Viewed/var/log/apache2/erro_log
Display error asseticwriter:unable to create a directory