Score:0

Apache2 won't start after change the path of SSL certificate via Webmin

cg flag

I am new to Ubuntu Server. After changing newly created ssl certificate path on a virtualhost, apache2 won't start.

$ apache2ctl configtest // showing below error! 

    AH00526: Syntax error on line 171 of /etc/apache2/apache2.conf:
    Either all Options must start with + or -, or no Option may.
    Action 'configtest' failed.
    The Apache error log may have more information

Line 171 is below

    <Directory /var/www>
        Options -Indexes FollowSymLinks
        AllowOverride None
        Require all granted
    </Directory>

I revoke the change made and try to restart apache2. showing same error and all the sites down. If I # all the 5 line, Apache2 will start. however, sites displaying no permission to access. I am running wordpress on this server.

any help would be highly appreciated.

uz flag
Jos
Is that a genuine hyphen, "-", or have you copied and pasted a similar but different character, such as "–", e.g. from a website?
ru flag
Read the error - "either all options must start with + or -," - if you want symlinks to be folowed you need a + there, or a - to deny it.
aneeshkumar avatar
cg flag
Thanks Thomas for the hint. and it got resolved.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.