{"id":3629,"date":"2015-10-12T12:04:27","date_gmt":"2015-10-12T11:04:27","guid":{"rendered":"https:\/\/blog.ed.gs\/?p=3629"},"modified":"2015-10-12T12:04:27","modified_gmt":"2015-10-12T11:04:27","slug":"update-joomla-2-using-proxy","status":"publish","type":"post","link":"https:\/\/ed.gs\/2015\/10\/12\/update-joomla-2-using-proxy\/","title":{"rendered":"Update Joomla 2 Using Proxy"},"content":{"rendered":"
Joomla 2 and below don’t support proxies by default, unfortunately you have to hack the code and remove some files for it to work.<\/p>\n
Firstly we need to edit the curl transport file and give it the proxy address. To do this we open libraries\/joomla\/http\/transport\/curl.php and look for the following:<\/p>\n
// If an explicit timeout is given user it.\nif (isset($timeout))\n{\n $options[CURLOPT_TIMEOUT] = (int) $timeout;\n $options[CURLOPT_CONNECTTIMEOUT] = (int) $timeout;\n}<\/pre>\nAfter that section add the following on a new line, changing the values for the proxy as needed:<\/p>\n
$proxy = '10.56.4.1:3128';\ncurl_setopt($ch, CURLOPT_PROXY, $proxy);<\/pre>\nFinally we need to delete the other transport types so it will forcibly use curl with our proxy:<\/p>\n
rm libraries/joomla/http/transport/stream.php\nrm libraries/joomla/http/transport/socket.php<\/pre>\nRenaming these files didn’t seem to work, they have to be removed.<\/p>\n
Try updating again now and see if you have a better experience.<\/p>\n","protected":false},"excerpt":{"rendered":"
Joomla 2 and below don’t support proxies by default, unfortunately you have to hack the code and remove some files for it to work. Firstly we need to edit the curl transport file and give it the proxy address. To do this we open libraries\/joomla\/http\/transport\/curl.php and look for the following: // If an explicit timeout […]<\/p>\n","protected":false},"author":2,"featured_media":3625,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false},"categories":[36,41],"tags":[],"yoast_head":"\n
Update Joomla 2 Using Proxy - E<\/title>\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n\n\n\t\n\t\n\t\n