Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Can I ask how you integrated squid with apache? I've searched a lot but haven't found the solution. Thanx –  AliBZ Sep 27 '12 at 21:16

2 Answers 2

up vote 2 down vote accepted

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 
share|improve this answer
    
Thank you! So simple yet I had been struggling for a while to figure it out. :) –  Zed Said Apr 16 '12 at 15:01

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.