Unrecognized arguments

grep -ERi gritheath /etc/apache2/

this command is not working

1 Like

What do you mean "not working" ?

Make sure you are at this prompt:
root@wordpress-ubuntu-s-1vcpu-1gb-intel-nyc1-01:~#

1 Like

root@wordpress-ubuntu-s-1vcpu-1gb-intel-nyc1-01:~# grep -ERi gritheath /etc/apache2/
root@wordpress-ubuntu-s-1vcpu-1gb-intel-nyc1-01:~#

OMG! It's possessed!

Try this again:
cat /etc/apache2/sites-enabled/000-default.conf

Does it NOT contain "gritheath" ?

1 Like

root@wordpress-ubuntu-s-1vcpu-1gb-intel-nyc1-01:~# cat /etc/apache2/sites-enabled/000-default.conf

# Added to mitigate CVE-2017-8295 vulnerability
UseCanonicalName On

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        
        ServerName grithealthfitness.com or admin@grithealthfitness.com
        ServerAlias www.grithealthfitness.com or admin@grithealthfitness.com
        
        DocumentRoot /var/www/html

        <Directory /var/www/html/>
            Options FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

That's a mistake.
Neither of those directives support "OR".
Nor do they accept "@".
Change it to just:

    ServerName grithealthfitness.com
    ServerAlias www.grithealthfitness.com

And when/how did that happen?

1 Like

To be honest, i don't know. I've been on this for weeks now until i was able to reach out to this community. I probably made some mistakes which i cant seem to figure out now. How do i change it ?

How did it change?
FROM (earlier):

TO (now):

If more than one person is working on this problem... that might create some issues.

1 Like

i don;t know, I'm just here inputting all the command you are giving me here. i just closed the web server and opened it again .

not at all. you are the only one i am communicating with at the moment

Someone changed that.
Is there any other admin to that system?
Is there any cPanel or other type system that you (or anyone else) might have made changes in?
If there is any other such control it might overwrite our changes!

1 Like

Do you know how to use a text editor?

1 Like

I only have my wordpress admin, which i have not made any changes yet. No one has access to my laptop as well

no i don't

Then you may need to review where/how that change was made within WordPress.
I don't press words, so I can't help you with that.

I've found the problem (a misspelling).
I've given the solution to the problem (edit the file and correct those two lines).
I can't do it for you.
Sorry, and good luck.

Cheers from Miami :beers:

#FreeCUBA :cuba:

2 Likes

Thanks for your effort, like i told you i'm new to this and i followed all the command you asked me to input, without adding or editing any other command. i will definitely try and figure it out even if i dont where or know how to at the moment. thanks for your time, I appreciate

1 Like

That doesn't explain how "or 'your email address' " was added to both of those lines.
But you are welcome and again, good luck :wink:

2 Likes

i think i only added my email last week while i was trying to set up wordpress last week.

I would suggest that you take a quick lesson on Linux "text editors"
Like: nano
In just a few short minutes you would be able to edit that file and make the necessary changes yourself.
[don't forget to restart, or reload, the web server afterwards]

2 Likes

Alright, thanks for the recommendation.

2 Likes