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.
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!
did you create the temp files?
echo “” >> /tmp/tinyproxy.log
echo “” >> /tmp/tinyproxy.pid
btw this can be written as: