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. wide says:

    Fatal error: Call to private method CodeColorer::performHighlightCodeBlock() from context '' in /home/comtekca/sites/davychiu.com/wp-content/plugins/codecolorer/codecolorer-core.php on line 70