Solved

Configure a Local PHP Interpreter for Phpstorm

Posted on 2016-09-13
2
109 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 29

Accepted Solution

by:
Olaf Doschke earned 500 total points
Comment Utility
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
Comment Utility
Thanks a lot Olaf, you solve my problem
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now