Solved

Configure a Local PHP Interpreter for Phpstorm

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't Setup WAMP. Keep Being Told I've Got the Wrong Directory... 3 27
Email called spam 5 36
Custom Wordpress Loop 22 39
Apache LDAP Authentication 20 33
This article discusses how to create an extensible mechanism for linked drop downs.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

828 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