From the course: Linux for PHP Developers

Unlock the full course today

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

Configuring PHP for development

Configuring PHP for development

From the course: Linux for PHP Developers

Start my 1-month free trial

Configuring PHP for development

- [Instructor] Finally, we're getting to the PHP in a PHP course. It only took four chapters. So here's the thing. PHP is already installed but it hasn't been configured or optimized for development. To test out the development server, copy the exercise files from the Sandbox subfolder. The two we're going to be using in this video are phpinfo.php, which just displays information about PHP's configuration. The second is errors.php, which intentionally causes three PHP errors, a notice, warning, and fatal error. Let's see the errors in action. From a browser, go to sandbox.dev:8080/errors.php. Well, that's underwhelming. It's just showing the names of errors. Why is that? Let's take a look at the PHP configuration. In a new tab, I'm going to go to sandbox.dev:8080/phpinfo.php. PHP Version 7.0.15 and everything you wanted to know about the configuration, but we're afraid to ask. If you search for display_errors, you'll see that it's turned off. Well, there's your problem. So how do we…

Contents