Using Windows - Just Installed MAMP Pro and PHP Strom but dont understand how to get CLI interpreter to work?
Hi, I am completely new to this and need help because everywhere I look the instructions are too difficult for me to understand since I am new and don't know the basic terms yet, or the instructions I see are only for MACs and not windows. I have Windows not a MAC.
Section A
Steps I did:
I started MAMP Pro servers / opened PHP Storm / Opened project / went to file / clicked settings / under the dropdown for Languages & Framework, I selected PHP / for the PHP language level, I selected php level 7 / then for CLI interpreter I clicked the browse button (...) / For name I put "PHP 7 from MAMP Pro" / Under General where it says "PHP Executable" I clicked browse (...) /
This is what my selected path was: C:\MAMP\bin\php\php7.0.0\php.exe
Now a little warning line shows saying " Configuration php.ini file does not exist. " Then next to that is a link that goes here (http://php.net/manual/en/configuration.file.php) But that page, I do not understand.
Section A ) My questions
1) is my selected path correct C:\MAMP\bin\php\php7.0.0\php.exe ?
2) When I click "My Computer" on windows, and follow the path C:\MAMP\bin\php\php7.0.0 , In the list of files displayed, I see 2 files called php.ini-development and php.ini-production. I don't know if those 2 files are important in solving the warning line that says " Configuration php.ini file does not exist. ", how do I solve this warning?
Section B
Sent an email to the staff here with my question and was told to go to this link (https://confluence.jetbrains.com/display/PhpStorm/Installing+and+Configuring+MAMP+with+PhpStorm+IDE#InstallingandConfiguringMAMPwithPhpStormIDE-IntegratingtheApacheserver)
and follow the steps under
Integrating the Apache server
Steps I did:
Opened PHP Storm/ Opened project / clicked settings/ clicked the drop down for "Build, Execution, Deployment" / selected Deployment / clicked the plus sign symbol to add / under name I put "MAMP Apache" & under Type I selected "Local or Mounted folder" / pressed OK /
Under Upload/download project files there is the title "Folder" / I selected browse (...) / My path is C:\MAMP\htdocs
Under Browse files on server / for Web server root URL , I changed the URL to http://localhost:8888 /
I pressed "Open" / A web page displayed saying :
MAMP Pro
The virtual host was set up successfully.
If you can see this page, your new virtual host was set up successfully. Now, web content can be added and this placeholder page1 should be replaced or deleted.
Server name: localhost
Document root: C:/MAMP/htdocs
1 Files: index.php and MAMP-PRO-Logo.png
Section B ) My questions
1) Did I do anything wrong?
2) Is that warning to replace/delete a file normal?
Please sign in to leave a comment.
Hello,
> Configuration php.ini file does not exist
It means that php.ini file does not exist so the interpreter cannot be used for CLI operations. Create a php.ini file near php.exe and it should be fine - you can copy and rename php.ini-development or php.ini-production or create it from any other source.
> Is that warning to replace/delete a file normal?
This looks like a usual, default MAMP thing, a dummy page to test the web server. You can either keep it or replace with your own - it won't do any harm.