title: Launching firefox selenium webdriver denied permissions on Amazon Elastic Beanstalk
body: <p>I'm trying to deploy my website to Elastic Beanstalk, but I ran into a problem. My website uses Selenium to scrape another website (I couldn't scrape it using any other library because it's a very annoying site). I managed to install Firefox on the EB server using this guide <a href="https://lambda-linux.io/blog/2015/01/28/announcing-firefox-browser-support-for-amazon-linux/" rel="nofollow noreferrer">https://lambda-linux.io/blog/2015/01/28/announcing-firefox-browser-support-for-amazon-linux/</a>, but now when I try to use my site and it tries to launch the Firefox webdriver, I get this error:</p>
  
  <pre><code>WebDriverException at / Message: Failed to start browser: permission denied
  </code></pre>
  
  <p>Here is the code that attempts to launch the webdriver:</p>
  
  <pre><code>binary = FirefoxBinary('/home/ec2-user/firefox')
  browser = webdriver.Firefox(executable_path='/opt/python/current/app/api/geckodriver', firefox_binary=binary)
  </code></pre>
  
  <p>I searched many forums and sites to find an answer if it's even possible to run Selenium on EB, but couldn't find a definitive answer. I would love to know if it is and if it is, in fact, possible, then how do I attain the permissions to do it (hopefully, that's also possible). Thank you! (also, I will gladly drop any code, logs etc. if needed)</p>