[squid-users] mime.conf path
Amos Jeffries
squid3 at treenet.co.nz
Mon Nov 13 04:01:00 UTC 2023
On 13/11/23 09:35, Sai Eshwar wrote:
> Hello, I am trying to install squid on CentOS without root privilege
> following the information present at
> https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-root-user-with-automatic-depen <https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-root-user-with-automatic-depen>
>
> after running squid, I get the following error:
> FATAL: Unable to open configuration file: /etc/squid/squid.conf: (2) No
> such file or directory,
> which is resolved by running squid with -f
> ~/centos/etc/squid/squid.conf, but now I get the following error:
> FATAL: MIME Config Table /etc/squid/mime.conf: (2) No such file or directory
> How can I specify mime.conf path to squid?
>
Add to your squid.conf:
mime_table ~/centos/etc/squid/mime.conf
There are likely other paths you need to change if you are going to
continue and try to run it like this. Squid is designed to be run as
root and auto-chroot itself into a lower user account - default
"nobody", or whatever the "./configure --with-default-user=" option was
set to.
If/when Squid produces more of these messages you can usually search in
this list to find the directives related
<http://www.squid-cache.org/Doc/config/>
PS. You may find creating a chroot for Squid to run inside to be easier
that explicitly configuring every path.
HTH
Amos
More information about the squid-users
mailing list