Installing Tinyproxy

Short guide on installing Tinyproxy in CentOS on an OpenVZ VPS.

[[email protected] ~]# yum install tinyproxy

At this point, you need to edit the conf file and add an “Allow x.x.x.x/xx” line to let users access the proxy.

[[email protected] ~]# vi /etc/tinyproxy.conf

When done, starting tinyproxy as is will fail as it needs some files that cannot be created by the default user.

[[email protected] ~]# tinyproxy -d
tinyproxy: Could not open file /var/log/tinyproxy/tinyproxy.log: Permission denied
tinyproxy: Could not open file /var/run/tinyproxy/tinyproxy.pid: Permission denied
tinyproxy: Could not create PID file.

Fix the error by creating the files and transferring ownership.

[[email protected] ~]# echo "" >> /var/log/tinyproxy/tinyproxy.log
[[email protected] ~]# echo "" >> /var/run/tinyproxy/tinyproxy.pid
[[email protected] ~]# chown nobody:nobody /var/log/tinyproxy/tinyproxy.log
[[email protected] ~]# chown nobody:nobody /var/run/tinyproxy/tinyproxy.pid

Tinyproxy should start with no problems.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

3 Responses to Installing Tinyproxy

  1. anil_pace says:

    even after following above steps…i cannot see tinyproxy running on my linux system.

    [[email protected] tinyproxy-1.8.3]# /usr/local/sbin/tinyproxy -d
    tinyproxy: Could not open file /tmp/tinyproxy.log: Permission denied
    tinyproxy: Could not open file /tmp/tinyproxy.pid: Permission denied
    /usr/local/sbin/tinyproxy: Could not create PID file.
    [[email protected] tinyproxy-1.8.3]#

    doing netstat -l doesn’t even list the concerned port no.
    Plz help out!

Leave a Reply

Your email address will not be published. Required fields are marked *