Hi again @ramses72
Okay so first things first, let's try to tackle the issue with the #Include
"/opt/bitnami/apache/conf/vhosts/*.conf"
, shall we?
If commenting that line out in your conf/httpd.conf
(which is the main Apache configuration file) makes it so that Apache is able to start, I see a clear indicator to where the issue might be.
I have checked the files under the /opt/bitnami/apache/conf/vhosts/
directory and spotted a xxxxx-vhost.conf
file, which contains the following:
<VirtualHost 127.0.0.1:80 _default_:80>
...
Include "/opt/bitnami/apache2/conf/vhosts/htaccess/xxxxx-htaccess.conf"
I have checked that the permissions for both files are set to:
apache/conf/vhosts:
...
drwxrwxr-x 2 bitnami root 4096 Dec 18 18:20 htaccess
-rw-r--r-- 1 root root 340 Dec 17 17:58 xxxxx-vhost.conf
apache/conf/vhosts/htaccess:
...
-rw-r--r-- 1 root root 345 Dec 18 18:20 xxxxxx-htaccess.conf
Could you please change them to be owned by the bitnami
user and grant write permissions to the root
group (the same settings as the other ones). You can do that by running:
$ sudo chown bitnami /opt/bitnami/apache/conf/vhosts/xxxxxx-vhost.conf
$ sudo chmod g+w /opt/bitnami/apache/conf/vhosts/xxxxx-vhost.conf
$ sudo chown bitnami /opt/bitnami/apache2/conf/vhosts/htaccess/xxxxxxx-htaccess.conf
$ sudo chmod g+w /opt/bitnami/apache2/conf/vhosts/htaccess/xxxxxxx-htaccess.conf
After that, uncomment the Include
statement in the conf/httpd.conf
and run the following command:
$ sudo /opt/bitnami/apache2/bin/apachectl -t
Syntax OK
If there is any syntax problem, this will hint us in the right direction.
Best regards,
Jose Antonio Carmona
Was my answer helpful? Click on 