Installing Tinyproxy

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

[root@shizuka ~]# 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.

[root@shizuka ~]# 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.

[root@shizuka ~]# 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.

[root@shizuka ~]# echo "" >> /var/log/tinyproxy/tinyproxy.log
[root@shizuka ~]# echo "" >> /var/run/tinyproxy/tinyproxy.pid
[root@shizuka ~]# chown nobody:nobody /var/log/tinyproxy/tinyproxy.log
[root@shizuka ~]# 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.

    [root@localhost 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.
    [root@localhost tinyproxy-1.8.3]#

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

Leave a Reply to davychiu Cancel reply

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