This simple web service will scan of a given URL, outputting web accessibility related notices.
You must have axe-core cli and its dependencies running on your web server. PHP 7+ must also be installed.
After you setup a LEMP web server..
- Install node and npm.
- Install Selenium and dependencies - note: when installing chromdriver, you'll need to install the latest version
- Install axe-cli.
- Start chromedriver:
chromedriver --port=4444
. - Add axe-equalify wherever you want to run the web service.
- Run
[yourdomain]/?url=[yoururl]
, replacing[yourdomain]
and[yoururl]
. You should see an output of axe.
- axe-core kept saying that I had the wrong version of chromedriver installed. I had the correct version. I had to add the flag
--chromedriver-path /usr/local/bin/chromedriver
to the axe-core call. - axe-core had an error related to the chromedriver sanbox settings. I had to add
--chrome-options="no-sandbox
to the axe-core call.