From the course: Linux for PHP Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Troubleshooting PHP

Troubleshooting PHP

From the course: Linux for PHP Developers

Start my 1-month free trial

Troubleshooting PHP

- [Instructor] Often, most problems are not within PHP itself, but with the web server. With that said, there are a number of steps that you can take to gain more introspection into your PHP configuration. The Ubuntu Server Guide on PHP found at help.ubunto.com should provide introspection and troubleshooting steps beyond what we'll explore. Knowing the exact PHP version number is a good place to start. Make sure that your SSH server using your favorite SSH client. So, SSH sandbox.dev. Once we're logged in, let's check the command line version of PHP. Just type PHP space dash dash version. We're using version 7.0.15. The PHP space dash dash info flag can be used to display configuration details. This output can be filtered, which is useful when looking for a particular configuration. For example, if I wanted to search for on cache settings I would type PHP space dash dash info then space pipe grep with a case and sensitive flag and then look for opcache. Remember that PHP has two…

Contents