Install components separately
The installation procedure for PHP environment components may differ depending on the operating system used, follow the installation instructions provided.
This functionality relies on the PHP plugin, which you need to install and enable.
note
The PHP plugin is available only in IntelliJ IDEA Ultimate.
Press CtrlAlt0S to open the IDE settings and select Plugins.
Open the Marketplace tab, find the PHP plugin, and click Install (restart the IDE if prompted).
Download and install a Web server. The most common choice is the Apache HTTP server.
Download and install the PHP engine. During the installation, specify the Web server you are going to use and its home directory.
tip
To enable the use of the MySQL database server, select the Complete installation option or select the MySQL and MySQLi items in the Extensions list on the corresponding page of the installation wizard.
Download, install, and configure a database server.
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.
tip
If the server does not start, most likely a port conflict takes place. Resolve the conflict as during an AMP package installation.
If you have changed the default port 80, specify the port number explicitly: http://localhost:<port number>
Finally, make sure that the PHP engine has been installed successfully and interacts with the Web server correctly.
Using a text processor of your choice, create a test.php file and type the following text:
echo phpinfo();
Save the file on the Web server, in the folder the PHP engine looks at.
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.
Thanks for your feedback!