1

I have Apache working with Squid, but I would now like to remove it. I know how to stop Squid, but that stops serving my site. How can I have Apache stop using Squid?

1
  • Can I ask how you integrated squid with apache? I've searched a lot but haven't found the solution. Thanx
    – AliBZ
    Sep 27, 2012 at 21:16

2 Answers 2

2

You will need to locate and change the Apache Listen directive in your configuration. This will most likely be in /etc/apache2/ports.conf (but it could be elsewhere). Change the Listen to

Listen 80

and save the file. Stop squid and then restart apache and you should be good to go. If this works you'll need to stop squid from starting at the next reboot. You should be able to do this with

 update-rc.d -f squid remove 
1
  • Thank you! So simple yet I had been struggling for a while to figure it out. :)
    – Zed Said
    Apr 16, 2012 at 15:01
1

Uninstall squid using apt-get remove --purge squid-package-name (and run apt-get clean for good measure). Edit your Apache configuration files to make sure httpd is not listening on the proxy port anymore, but instead listening on standard port 80 (or whatever port you want it listening to). Restart apache.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .