<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Problems Moving to New Server</title>
        <description> Since my previous host shut me down, I got myself a nice VPS server and am moving my sites over to it. However, I ran into a snag with Phorum. I get the following image errors (see attachment), plus it seems like 1/2 of all user avatars are broken.

In the Embed Images Mod, the Download test fails with the following message....

QuoteThis check tries to download the Google homepage via the http_get API. If the platform support check returns &amp;quot;OK&amp;quot;, but this check returns &amp;quot;NOT OK&amp;quot;, then the hosting platform might be blocking outgoing HTTP connections from the webserver.

Please contact your hosting provider if this check returns &amp;quot;NOT OK&amp;quot;.

I have access to WHM and Shell - could you tell me what I need to do to enable outgoing HTTP,  getimagesize, getaddrinfo etc?</description>
        <link>https://www.phorum.org/phorum5/read.php?61,153551,153551#msg-153551</link>
        <lastBuildDate>Sun, 19 Apr 2026 14:06:09 -0400</lastBuildDate>
        <generator>Phorum 5.2.22</generator>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,154246#msg-154246</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,154246#msg-154246</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>CBiLL</strong><br />
Did you ever managed to fix this? I am having the same problem.<br />
<br />
BIll<br />
<br />
Edited - I managed to fix it .. I explained it in my other post - [<a href="http://www.phorum.org/phorum5/read.php?61,154229" target="_blank" >www.phorum.org</a>]</div></blockquote>
<br />
<br />
No. What had happened to me is that HostGator kept shutting us down, so we decided to get a VPS server with <a href="http://billing.hudsonvalleyhost.com/aff.php?aff=331" target="_blank"  rel="nofollow">Hudson Valley Host</a> and move. It should have been seamless but all images were broken. Thomas suspected it might have had to do with the PHP version the new server was running and suggested some ideas for fixes, none of which worked.<br />
<br />
With great sadness, I must admit that we moved on to commercial software. We did a donation drive in the community to raise the funds for the software as well as to hire a developer to migrate the Phorum over to the new software.<br />
<br />
We&#039;re enjoying some of the new features and GUI eye candy, and I am missing some of the features and ease of use of Phorum. I keep coming back here to the Phorum support forums because I really did get attached to this software and the contributors here.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Mon, 02 Sep 2013 08:39:11 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,154228#msg-154228</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,154228#msg-154228</link>
            <description><![CDATA[ Did you ever managed to fix this? I am having the same problem.<br />
<br />
BIll<br />
<br />
Edited - I managed to fix it .. I explained it in my other post - [<a href="http://www.phorum.org/phorum5/read.php?61,154229" target="_blank" >www.phorum.org</a>]]]></description>
            <dc:creator>CBiLL</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sun, 01 Sep 2013 21:45:59 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153575#msg-153575</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153575#msg-153575</link>
            <description><![CDATA[ Oh nevermind. You&#039;re talking about the Event Logging module. I&#039;ll go take a look and see if I can decipher anything.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 21:00:28 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153574#msg-153574</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153574#msg-153574</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Thomas Seifert</strong><br />
did you check if the eventlog shows anything?</div></blockquote>
<br />
Is that the error_log in the root directory?<br />
<br />
There isn&#039;t much there besides years of issues with pdfpages (cannot modify header stuff).]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 20:22:57 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153573#msg-153573</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153573#msg-153573</link>
            <description><![CDATA[ did you check if the eventlog shows anything?]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 19:27:52 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153572#msg-153572</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153572#msg-153572</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Thomas Seifert</strong><br />
if it would be only the image part I&#039;d have an idea but as you say this is for all files are hit its getting tricky. You might try the change below anyway.</div></blockquote>
<br />
I just did 2 test attachment uploads.<br />
<br />
I uploaded a jpg photo and the image is broken. (embed attachments, embed images).<br />
<br />
I uploaded a pdf and the link is displayed properly in the message text (embed attachments) and can be clicked and downloaded.<br />
<br />
It&#039;s definitely an image rendering issue.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 10:45:26 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153571#msg-153571</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153571#msg-153571</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Thomas Seifert</strong><br />
if it would be only the image part I&#039;d have an idea but as you say this is for all files are hit its getting tricky. You might try the change below anyway.</div></blockquote>
<br />
I cannot find that line or statement in /include/api/image.php<br />
<br />
I&#039;ve ran a search for imagick.so and @dl with no results. I am running Phorum 5.2.18<br />
<br />
The closest item I can find is...<br />
<br />
<pre class="php bbcode_geshi"><div class="head">Language: PHP</div>    <span class="co1">// -----------------------------------------------------------------</span>
    <span class="co1">// Try to use the imagick library tools</span>
    <span class="co1">// -----------------------------------------------------------------</span>
&nbsp;
    <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span><span class="re0">$method</span> <span class="sy0">===</span> <span class="kw4">NULL</span> <span class="sy0">||</span> <span class="re0">$method</span> <span class="sy0">==</span> <span class="st_h">';imagick'</span><span class="sy0">;</span><span class="br0">&#41;</span> <span class="sy0">&amp;&amp;</span>
        <a href="http://www.php.net/extension_loaded"><span class="kw3">extension_loaded</span></a><span class="br0">&#40;</span><span class="st_h">';imagick'</span><span class="sy0">;</span><span class="br0">&#41;</span> <span class="sy0">&amp;&amp;</span> <a href="http://www.php.net/class_exists"><span class="kw3">class_exists</span></a><span class="br0">&#40;</span><span class="st_h">';Imagick'</span><span class="sy0">;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
    <span class="br0">&#123;</span>
        <span class="re0">$method</span> <span class="sy0">=</span> <span class="kw4">NULL</span><span class="sy0">;</span>
&nbsp;
        <span class="re0">$imagick</span> <span class="sy0">=</span> <span class="kw2">new</span> Imagick<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="re0">$imagick</span><span class="sy0">-&gt;</span><span class="me1">readImageBlob</span><span class="br0">&#40;</span><span class="re0">$image</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="re0">$imagick</span><span class="sy0">-&gt;</span><span class="me1">thumbnailImage</span><span class="br0">&#40;</span><span class="re0">$img</span><span class="br0">&#91;</span><span class="st_h">';new_w'</span><span class="sy0">;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="re0">$img</span><span class="br0">&#91;</span><span class="st_h">';new_h'</span><span class="sy0">;</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="kw4">TRUE</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="re0">$imagick</span><span class="sy0">-&gt;</span><span class="me1">setFormat</span><span class="br0">&#40;</span><span class="st0">&quot;jpg&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="re0">$img</span><span class="br0">&#91;</span><span class="st_h">';image'</span><span class="sy0">;</span><span class="br0">&#93;</span>    <span class="sy0">=</span> <span class="re0">$imagick</span><span class="sy0">-&gt;</span><span class="me1">getimageblob</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="re0">$img</span><span class="br0">&#91;</span><span class="st_h">';new_mime'</span><span class="sy0">;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="st_h">';image/jpeg'</span><span class="sy0">;;</span>
        <span class="re0">$img</span><span class="br0">&#91;</span><span class="st_h">';method'</span><span class="sy0">;</span><span class="br0">&#93;</span>   <span class="sy0">=</span> <span class="st_h">';imagick'</span><span class="sy0">;;</span>
&nbsp;
        <span class="kw1">return</span> <span class="re0">$img</span><span class="sy0">;</span>
    <span class="br0">&#125;</span></pre>
<br />
For the record, according to Mod:Embed_Images the &quot;gd&quot; is working. (on my old server it said &quot;imagick&quot; instead of &quot;gd&quot; and both return NOT_OK for the Google download test so this isn&#039;t related.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 10:00:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153570#msg-153570</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153570#msg-153570</link>
            <description><![CDATA[ if it would be only the image part I&#039;d have an idea but as you say this is for all files are hit its getting tricky. You might try the change below anyway.<br />
<br />
For completeness if someone else is reading this thread, newer php versions have phased out dl which is used in the image api. you might need to comment out the following code in include/api/image.php (commented already in this example)<br />
   <pre class="php bbcode_geshi"><div class="head">Language: PHP</div><span class="coMULTI">/* if (($method === NULL || $method == ';imagick';) &amp;&amp;
       !extension_loaded(';imagick';)) {
       @dl(';imagick.so';);
   } */</span></pre>]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 09:34:30 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153569#msg-153569</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153569#msg-153569</link>
            <description><![CDATA[ Old server: 5.2.17<br />
New server: 5.3.23]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 09:32:37 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153568#msg-153568</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153568#msg-153568</link>
            <description><![CDATA[ did the php versions change between the servers?]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 09:29:57 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153567#msg-153567</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153567#msg-153567</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Thomas Seifert</strong><br />
Make sure of that - and also that they are reachable under the path given in the settings or fix the path there if the directory structure changed.</div></blockquote>
<br />
So far nothing. <br />
<br />
In moving to the new server, I backed up the database using cPanel backups. FTP&#039;ed it to my new server and then used shell to create the new database (because it was too large to do via cPanel or MyPHPadmin). This was successful. People can login and post freely at the new location.<br />
<br />
However, no images that are provided by phorum scripts are working. Avatars are broken as well as anything in [img] tags, and all image attachments that are in the message bodies using Mod:Embed_Attachments.<br />
<br />
Even now, if I create a NEW post, and try to display an image using any of the 3 methods above, they are broken as indicated by the screen caps I provided above. The debug output tells me that it fetches the URL appropriately, creates a thumbnail successfully, but then when called to display the image it fails.<br />
<br />
I am using Mod:Store_Files_to_Disk and have copied the entire directory structure.<br />
<br />
The PATHS may have changed, but in both Mod:Store_Files_to_Disk and Mod:Embed_Images these paths are releative anyway, namely:<br />
<br />
Where to store files: repository<br />
Cached directory for scaled images: repository/Scaled_Cache<br />
<br />
What DID change is that I gave this &quot;domain&quot; it&#039;s own account on the new server instead of it being a subdomain of another account on my old server, ie...<br />
<br />
was: /home/rlangle/jwtalk/forum<br />
now: /home/jwtalk/forum<br />
<br />
So I realize I must have botched something, but all the data is there. It&#039;s just a matter of getting it fixed right.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Sat, 13 Apr 2013 09:03:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153562#msg-153562</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153562#msg-153562</link>
            <description><![CDATA[ Make sure of that - and also that they are reachable under the path given in the settings or fix the path there if the directory structure changed.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 11:16:22 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153561#msg-153561</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153561#msg-153561</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Thomas Seifert</strong><br />
are you using the store files on disk module?</div></blockquote>
<br />
Yes. <br />
<br />
But im pretty sure i moved those directories too.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 11:15:35 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153560#msg-153560</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153560#msg-153560</link>
            <description><![CDATA[ are you using the store files on disk module?]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 11:12:04 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153558#msg-153558</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153558#msg-153558</link>
            <description><![CDATA[ When I disable the Embed_Images module, the links are displayed as so...<br />
<br />
[<a href="http://www.jwtalk.net/forum/file.php?10,file=3658" target="_blank"  rel="nofollow">www.jwtalk.net</a>]<br />
<br />
And the image is broken.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 10:13:32 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153557#msg-153557</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153557#msg-153557</link>
            <description><![CDATA[ Okay, Ill recant a little bit. Some of those images were supposed to be links to a directory on my server that I did not move over yet.<br />
<br />
However, all avatars are still broken, plus anything I upload as an attachment, and any image I link to.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 10:00:41 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153555#msg-153555</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153555#msg-153555</link>
            <description><![CDATA[ <s>According to the debug info in the screenshot, it looks like everything works until it is time to actually display the image.</s><br />
<br />
Nevermind.<br />
<br />
Error loading file: Connection to server failed (php_network_getaddresses: getaddrinfo failed: Name or service not known)<br />
<br />
Creating thumbnail failed: Running getimagesize() on the image data failed]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 09:12:44 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153554#msg-153554</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153554#msg-153554</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Thomas Seifert</strong><br />
if so, can you get to that image through the shell when trying to download it for  example with wget from the server?</div></blockquote>
<br />
Yes this was successful.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 08:40:47 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153553#msg-153553</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153553#msg-153553</link>
            <description><![CDATA[ Here is an attachment with the debug enabled. I looked through the Firewall in WHM and it appears port 80 is allowing incoming and outgoing connections. I will attempt the shell thing with wget as soon as I read up on how to do it properly.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 08:15:16 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153552#msg-153552</guid>
            <title>Re: Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153552#msg-153552</link>
            <description><![CDATA[ WHM allows you to configure the firewall, eh? Allow outgoing access through port 80 / http there.<br />
And why the getaddrinfo fails - no idea, whats the url of the image in question? if so, can you get to that image through the shell when trying to download it for  example with wget from the server?]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 04:26:29 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?61,153551,153551#msg-153551</guid>
            <title>Problems Moving to New Server</title>
            <link>https://www.phorum.org/phorum5/read.php?61,153551,153551#msg-153551</link>
            <description><![CDATA[ Since my previous host shut me down, I got myself a nice VPS server and am moving my sites over to it. However, I ran into a snag with Phorum. I get the following image errors (see attachment), plus it seems like 1/2 of all user avatars are broken.<br />
<br />
In the Embed Images Mod, the Download test fails with the following message....<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />This check tries to download the Google homepage via the http_get API. If the platform support check returns &quot;OK&quot;, but this check returns &quot;NOT OK&quot;, then the hosting platform might be blocking outgoing HTTP connections from the webserver.<br />
<br />
Please contact your hosting provider if this check returns &quot;NOT OK&quot;.</div></blockquote>
<br />
I have access to WHM and Shell - could you tell me what I need to do to enable outgoing HTTP,  getimagesize, getaddrinfo etc?]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>5.2 Phorum Support</category>
            <pubDate>Fri, 12 Apr 2013 02:40:36 -0400</pubDate>
        </item>
    </channel>
</rss>
