Así que normalmente tengo archivo en /var/www/html Lo abro en el navegador usando http://localhost/file.php. Sin embargo, no estoy seguro de cómo configurar las conexiones y la asignación en PhpStorm.
Probé algo como eso siguiendo https://www.jetbrains.com/help/phpstorm/deployment-mappings-tab.html :
En conexiones:
- Tipo:
local or mounted folder - Carpeta:
/var/www/ - URL del servidor web:
http://localhost
En el mapeo:
- Ruta local:
/home/username/PhpstormProjects/untitled - Ruta de despliegue:
/html - Ruta web:
/
En el proyecto solo tengo el archivo main.php y cuando lo ejecuto obtengo:
Not Found
The requested URL /main.php was not found on this server.
Apache/2.4.29 (Ubuntu) Server at localhost Port 80
¿Cómo puedo hacer que funcione?
apache-http-server
php
phpstorm
mikol
fuente
fuente
