Search…

X3 Photo Gallery Support Forums

Search…
 
trey
Topic Author
Posts: 15
Joined: 15 Sep 2020, 19:05

MIgrating to a new host?

11 May 2026, 22:34

HI, I'm sorry if this has been answered but I couldn't find a post that definitively describes how to migrate a X3 site to a new host.

I was thinking:
set up new hosting account
install X3
replace ./config and ./content with the same folders from my old host
celebrate with a beer because nothing went wrong and it was totally hassle-free.

Does this sound right?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: MIgrating to a new host?

11 May 2026, 23:26

trey wrote: Does this sound right?
That is exactly how I would do it.

Just make sure X3 (minimal install) is working before you start importing config and content.
 
trey
Topic Author
Posts: 15
Joined: 15 Sep 2020, 19:05

Re: MIgrating to a new host?

12 May 2026, 00:54

mjau-mjau wrote:
trey wrote: Does this sound right?
That is exactly how I would do it.

Just make sure X3 (minimal install) is working before you start importing config and content.
Thanks, this was super easy.

A couple of things that I realized after migrating:

1.) it's appending my CPanel username into the URL when I click a link on the site. You can see by clicking any of the gallery links:

https://treypentecost.com/

You'll see that instead of going to, for instance, treypentecost.com/events, it will go to treypentecost.com/~treypent/events

Is this a .htaccess thing? I un-commented RewriteBase / thinking that sounded about right.

2.) This thing hasn't been using the logo I uploaded in Manage>Custom>Logo. Does it need a certain file name?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: MIgrating to a new host?

12 May 2026, 03:25

trey wrote:1.) it's appending my CPanel username into the URL when I click a link on the site. You can see by clicking any of the gallery links:
Can't confirm, see screenshot below. This could potentially happen on your side for a couple of reasons ... For example if the X3 website is available from a different url with "~treypent", and then this specific url is cached. That's why you should only access X3 from a single primary url, else how should X3 know what is the correct link paths to cache? It could theoretically be something related to rewrite or .htaccess, but this doesn't seem likely.

Image
trey wrote:Is this a .htaccess thing? I un-commented RewriteBase / thinking that sounded about right.
RewriteBase is mainly used for some servers if X3 is installed in a subdir, and under rare circumstances also if installed in the root dir. However, this can't automatically add "~treypent" into the url path
trey wrote: 2.) This thing hasn't been using the logo I uploaded in Manage>Custom>Logo. Does it need a certain file name?
Well, the logo doesn't seem to be there "404 not found". Is it actually there? Then it must have received some incorrect file permissions.
https://treypentecost.com/content/custo ... m-logo.svg
 
trey
Topic Author
Posts: 15
Joined: 15 Sep 2020, 19:05

Re: MIgrating to a new host?

12 May 2026, 04:35

You were right Karl, the user directory thing was temp url setting from my new host.

I did delete the logo that was transferred when I moved the site and re-upload a new version. But as you can see it won't display.

The logo itself gets 644 when uploaded, and I see that most directories have 700, and the .json file in the logo directory has 600.

I'm uploading the logo via the X3 interface so it's not clear to me what could be happening. I've tried .png and .svg.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: MIgrating to a new host?

12 May 2026, 05:15

trey wrote: I did delete the logo that was transferred when I moved the site and re-upload a new version. But as you can see it won't display.

The logo itself gets 644 when uploaded, and I see that most directories have 700, and the .json file in the logo directory has 600.

I'm uploading the logo via the X3 interface so it's not clear to me what could be happening. I've tried .png and .svg.
Well, this is a permissions issue. X3 itself doesn't set permissions, but the upload permissions could get affected by permissions of file that uploads them. By default, under normal server conditions, all dirs on your server should be 755 and files should be 644, all owned by the same "user". X3 itself never sets permissions, because files will/should just inherit the default permissions of the owner. What happens when you try to upload a normal image in another dir? X3 certainly doesn't set specific permissions only for uploaded logos.

Either your application files have inherited wrong permissions on install, or content files have inherited wrong permissions depending on how they were transferred, or your server has some special permissions masks for certain dirs. 

It seems like you might have different USERS for web/PHP vs the user (FTP?) that transferred the files?
 
trey
Topic Author
Posts: 15
Joined: 15 Sep 2020, 19:05

Re: MIgrating to a new host?

12 May 2026, 19:25

Thanks Karl, you were right that it was a permissions issue.