?
Solved

Configure a Local PHP Interpreter for Phpstorm

Posted on 2016-09-13
2
Medium Priority
?
1,131 Views
Last Modified: 2016-09-13
Hi Experts,

1- I use Phpstorm 2016.2.1 + Xampp 3.2.2 installed on my laptop (Windows 10) and when I tried to run the any php page in browser I got this error:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24


2- Phpstorm asking me to Configure a Local PHP Interpreter.

I'm totally new to PHP, so please answer me in details.

Please help.

Thanks a lot.
Harreni
0
Comment
Question by:Harreni
2 Comments
 
LVL 30

Accepted Solution

by:
Olaf Doschke earned 2000 total points
ID: 41795720
Most probably you stored your php file(s) somewhere restricted for both Apache and phpStorm access. Additional to that you didn't configure, what php.exe phpStorm may use.

Most probably you did install Xampp into program files, that's an unfortunate installation location, as that means limited access (read/execute, not write) to the xampp webroot, where you could store your php files for testing. Rather uninstall and then reinnstall Xampp into C:\Xampp.

To configure what phpStorm uses for php execution, from the start screen choose configure, Language&Frameworks, then click the browse [...] button for the Interpreter and choose C:\Xampp\php\php.exe - obviously after you installed Xampp there.

Bye, Olaf.
1
 

Author Closing Comment

by:Harreni
ID: 41795742
Thanks a lot Olaf, you solve my problem
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question