IntelliJ IDEA 2022.2 Help

Install components separately

The installation procedure for PHP environment components may differ depending on the operating system used, follow the installation instructions provided.

Install the PHP plugin

This functionality relies on the PHP plugin that should be installed and enabled in your IDE.

The plugin is available only in IntelliJ IDEA Ultimate.

  1. Press Ctrl+Alt+S to open the IDE settings and select Plugins.

  2. Switch to the Marketplace tab and use the search field to find the PHP plugin.

  3. Click Install and restart the IDE if prompted.

Install and configure each component separately

  1. Download and install a Web server. The most common choice is the Apache HTTP server.

  2. Download and install the PHP engine. During the installation, specify the Web server you are going to use and its home directory.

  3. Download, install, and configure a database server.

Check the Web server installation

  • To make sure that the Web server has been installed correctly, start the server, open your browser, and type the following URL address: http://localhost

    The Test page for Apache installation should appear.

Check the PHP engine installation

Finally, make sure that the PHP engine has been installed successfully and interacts with the Web server correctly.

  1. Using a text processor of your choice, create a test.php file and type the following text:

    echo phpinfo();
  2. Save the file on the Web server, in the folder the PHP engine looks at.

  3. Run the browser and enter the following URL address: http://localhost:<port number>/test.php. The page that opens should show detailed information on the version of PHP engine used, the location of the configuration files, and so on.

    check_php_installation_phpinfo_output.png
Last modified: 29 November 2022