Question

a problem with reload apache2

Hello please I really need your help

I’m trying to install graphite and i’m following a manual to install it but now I have this problem

Feb 11 11:37:17 Graphite apachectl[5921]: The Apache error log may have more information. Feb 11 11:37:17 Graphite systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE Feb 11 11:37:17 Graphite systemd[1]: Reload failed for The Apache HTTP Server. Feb 11 11:40:02 Graphite systemd[1]: Reloading The Apache HTTP Server. Feb 11 11:40:02 Graphite apachectl[6015]: AH00526: Syntax error on line 3 of /etc/apache2/sites-enabled/apache2-graphite.conf: Feb 11 11:40:02 Graphite apachectl[6015]: Invalid command ‘WSGIDaemonProcess’, perhaps misspelled or defined by a module not included in the server configuration Feb 11 11:40:02 Graphite apachectl[6015]: Action ‘graceful’ failed. Feb 11 11:40:02 Graphite apachectl[6015]: The Apache error log may have more information. Feb 11 11:40:02 Graphite systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE Feb 11 11:40:02 Graphite systemd[1]: Reload failed for The Apache HTTP Server.

I really hope that you can help me with that

I’m following this manual to install it on Debian 10

https://www.unixmen.com/full-monitoring-system-graphite-collectd-statsd-part-1/

Best Regards


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
February 11, 2021
Accepted Answer

Hi there,

It looks like that the wsgi module is not enabled.

You could do that by using the following commands:

  • Install the module if it is missing:
sudo apt install libapache2-mod-wsgi python-dev
  • Enable the module
sudo a2enmod wsgi

Finally run a config test:

sudo apachectl -t

And if you get Syntax OK message, restart Apache.

Regards, Bobby

I have only this file

apache2-graphite.conf

and here is the content of this file

<VirtualHost *:80>

        WSGIDaemonProcess _graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=1$
        WSGIProcessGroup _graphite
        WSGIImportScript /usr/share/graphite-web/graphite.wsgi process-group=_graphite application-gro$
        WSGIScriptAlias / /usr/share/graphite-web/graphite.wsgi

        Alias /static/ /usr/share/graphite-web/static/
        <Location "/static/">
                SetHandler None
        </Location>

        ErrorLog ${APACHE_LOG_DIR}/graphite-web_error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/graphite-web_access.log combined

</VirtualHost>

Best Regards

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.