server - How to install lightsquid on Ubuntu 16.04 - Ask Ubuntu


i installed lightsquid using apt-get install lightsquid , followed tutorial: https://www.server-world.info/en/note?os=ubuntu_16.04&p=squid&f=7

except in /etc/apache2/conf-available/lightsquid.conf before <location... have line alias /lightsquid/ /usr/lib/cgi-bin/lightsquid/. doesn't matter if keep there or if delete it, same result: when try connect server ip typing <server ip>/lightsquid/ address line client pc on lan using firefox looks source code of page should appear. looks php, might perl (since don't know perl). anyway when click right mouse button on , choose show source code, shows same thing :-).

what do make show "real" page , not source code (maybe not source code sort of script?)?

edit: shows file /usr/lib/cgi-bin/lightsquid/index.cgi

e2: have perl , apache2 installed on server, assume installed automatically lightsquid dependencies. server has routing , firewall shorewall, dhcp, cache dns, squid proxy.

e3:/etc/apache2/conf-available/lightsquid.conf https://i.imgsafe.org/ae59aa9d3f.png /etc/lightsquid/lightsquid.cfg https://i.imgsafe.org/ae59cb62dc.png https://i.imgsafe.org/ae59e20a05.png https://i.imgsafe.org/ae59f94ddb.png https://i.imgsafe.org/ae5a063a92.png

e4: a2query -m cgid cgid (enabled site administrator)

e5: /etc/apache2/conf-enabled/serve-cgi-bin.conf http://paste.ubuntu.com/23424551/

e6: in /usr/lib/cgi-bin/ directory lightsquid content: http://paste.ubuntu.com/23424573/

btw can see correct apache2 ubuntu default page typing server ip address bar of firefox https://i.imgsafe.org/c43a938efe.png

e7: ls -la /var/www/html/ ls -la/usr/lib/cgi-bin/ ls -la /usr/lib/cgi-bin/lightsquid/ https://i.imgsafe.org/0395a7b6d6.png. permissions should check? added in png because think can see permissions there.

e8: https://i.imgsafe.org/172112069d.png https://i.imgsafe.org/17212262ee.png https://i.imgsafe.org/17213444dd.png https://i.imgsafe.org/1721419631.png https://i.imgsafe.org/17215b5c49.png https://i.imgsafe.org/1721678f62.png

e9: have in /etc/apache2/conf-enabled/lightsquid.conf http://paste.ubuntu.com/23449739/ , have in /etc/apache2/conf-available/lightsquid.conf http://paste.ubuntu.com/23449744/ identical. when run sudo a2enconf lightsquid says conf lightsquid enabled

e10: tail /var/log/apache2/error.log -f when reload page in browser: https://i.imgsafe.org/abb494716b.png

  1. first issue typo mistake in location declaration in lightsquid.conf.

    wrong: <location "lightsquid/">
    correct: <location "/lightsquid/"> leading /

  2. second issue believed mod-autoindex enabled default, not seems case or it's configuration modified (so doesn't index.cgi).

    other way fix without looking around:

    • add add new directory index declaration lightsquid.conf

      ~$ more lightsquid.conf  alias   /lightsquid/    /usr/lib/cgi-bin/lightsquid/  <location "/lightsquid/">         options +execcgi         addhandler cgi-script .cgi .pl         directoryindex index.cgi index.pl         require local </location>            

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User