David Raleche's blog

PHPUNIT Expected status code 200 but received 500.

Time: 140 ms, Memory: 12.00MB
 
There was 1 failure:
 
1) Tests\Feature\ExampleTest::testBasicTest
Expected status code 200 but received 500.
Failed asserting that false is true.
 
 
MAKE SURE APACHE SERVER IS RUNNING

Fix broken unix termninal - command not found

type in the following 2 commands to fix unix terminal
 
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
 
It should reset the terminal as before and running simple command

cloud9 install PHPUNIT

sudo composer global require phpunit/phpunit:6.*

Internal Server Error - Apache - htaccess

SOLUTION

VERIFY : AuthUserFile parameter and put Absolute $PATH/.htpasswd
AuthUserFile $ABSOLUTE_PATH/.htpasswd

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

[ErrorException] file_put_contents({application-root-path}/bootstrap/cache/services.php): failed to open stream: No such file or directory

[ErrorException] file_put_contents({application-root-path}/bootstrap/cache/services.php): failed to open stream: No such file or directory

 

cloud9 upgrade php7

Pages

Latest Post

Popular Post

Our Skills

Author

Project Director Information Architect Database Administrator Unix Administrator Senior Developer Project Manager Product Manager Web Marketer Cloud Engineer

Contact Us

For any questions or project ideas please contact me at the following.

I'm here