Foro QNAP en español

Full Version: PHP en Servidor web
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
buenas foro,

tengo un problema con una web con php. Actualmente ya dispongo de una web html funcional y también tengo unos crons locales hechos en php que funcionan correctamente, el php está en /mnt/ext/opt/apache/bin/php.

El problema es que al acceder a una web hecha en php me descarga el fichero. Esto es probablemente porque el servidor web no es capaz de interpretar el php. En la configuracion del vhost en /mnt/ext/opt/apache/conf/extra/httpd-vhosts-user.conf está el vhost creado

PHP Code:
<VirtualHost *:80>
  <
Directory "/share/Web/www/my_web">
    
Options FollowSymLinks MultiViews
    AllowOverride All
    
Require all granted
  
</Directory>
  
ServerName www.my_web.com
  DocumentRoot 
"/share/Web/www/my_web"
</VirtualHost

pero no tiene ninguna configuración de php. En el fichero /mnt/ext/opt/apache/conf/apache.conf sí que parece tener el interprete activado
PHP Code:
AddType application/x-httpd-php .php .php4 .php3 .phtml 


Muchas gracias por la ayuda