Hoy me iba a poner a configurar un owncloud dentro del servidor web pero, por lo que me he encontrado, todavía faltan algunas cosas por pulir en la configuración de mi webserver corriendo en el equipo del FreeNAS...
En esta parte voy a tener que modificar algunas cosas para que mi instalación de Apache se anime a aceptar los ficheros .htaccess.
Fuente: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-apache-on-freebsd-10-1
Configure Apache to Allow URL Rewrites
First, we need to enable the Apache rewrite module.
Open the Apache configuration file for editing. We are assuming that this file is located at/usr/local/etc/apache24/httpd.conf
:
sudo vi /usr/local/etc/apache24/httpd.conf
Find and uncomment the #LoadModule rewrite_module ...
line, by deleting the #
, so it look like this:
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
Now, we need to modify the Apache configuration to allow WordPress the ability to perform .htaccess
overrides.
Find the <Directory "/usr/local/www/apache24/data">
section, then find the AllowOverride None
directive within it. Set AllowOverride
to All
, so it looks like this:
AllowOverride All
Save and exit.
Now restart Apache to put the changes into effect:
sudo service apache24 restart
Now Apache is configured to allow URL rewrites but we must create an .htaccess
file that WordPress will use to reconfigure the permalink settings.
/usr/local/etc/apache24/httpd.conf
:sudo vi /usr/local/etc/apache24/httpd.conf
#LoadModule rewrite_module ...
line, by deleting the #
, so it look like this:LoadModule rewrite_module libexec/apache24/mod_rewrite.so
.htaccess
overrides.<Directory "/usr/local/www/apache24/data">
section, then find the AllowOverride None
directive within it. Set AllowOverride
to All
, so it looks like this: AllowOverride All
sudo service apache24 restart
.htaccess
file that WordPress will use to reconfigure the permalink settings.La última parte que necesito tocar por ahora es que me falta activar el módulo fileinfo en PHP para que owncloud funcione sin quejarse de nada.
Esta parte tiene fácil solución:
pkg install php56-fileinfo
Reiniciamos el servicio de Apache y a funcionar.
COMMENTS