O
O
Outsider V.2016-02-06 01:40:39
PHP
Outsider V., 2016-02-06 01:40:39

How to run scripts in browser with correct address?

The scripts are in the Apache\htdocs\myproject.local\web\tests\ folder, the web folder in the PHPStorm project is marked as Resources, for Apacha it is marked as DocumentRoot, in the PHPStorm settings everywhere the server is set to myproject.local:80 (the domain of my web application on local server), but when I run the script in PHPStorm via Open in browser, it knocks out the address of the form

localhost:49845/myproject.local/tests/NativeSandbox.php

Where did he even get it? I need an address
myproject.local/tests/NativeSandbox.php

How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Outsider V., 2016-02-06
@Audiophile

It was necessary to enable the Remote Hosts Access plugin and set up Deployment for the project.

N
Nazar Mokrinsky, 2016-02-06
@nazarpc

So start a normal web server, this is how PhpStorm works - localhost:port/project_name/*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question