Page 1 of 1

From domain to subdomain

Posted: Sun Mar 06, 2022 5:54 pm
by illustrata
Hi, I normally work in WordPress and so am floundering a bit here. We have an old Joomla site that we want to keep active as a subdomain of a new domain in order to access its content if needed. The host has just transferred the site files from the current site ferenaz.it to the subdomain ferenaz.dittagioia.it, but we having problems accessing it:

• The main menu has disappeared
• I see the message "You are not authorised to view this resource" on any post
• I can login to the old site, but not the relocated one (message is invalid security token)

Is this a configuration file issue, or something more complicated?

Thanks for any assistance, I am out of my depth here :eek:

Re: From domain to subdomain

Posted: Sun Mar 06, 2022 6:00 pm
by Per Yngve Berg

Re: From domain to subdomain

Posted: Sun Mar 06, 2022 6:14 pm
by illustrata
Thank you. This seems to be the reverse of what I'm looking for. I would like to leave the files as a subdomain ferenaz.dittagioia.it, but make it work there. Should I reverse the advice in the link you included?

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 2:14 pm
by illustrata
Is there anywhere else I could get support?

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 2:32 pm
by Per Yngve Berg
Have you adjusted temp and Log path in Configuration.php?

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 3:21 pm
by illustrata
The site is http://ferenaz.dittagioia.it. Here are the values I have tried:

public $live_site = 'http://ferenaz.dittagioia.it'; (also blank)
public $log_path = '/web/htdocs/ferenaz.dittagioia.it/home/log';
public $tmp_path = '/web/htdocs/ferenaz.dittagioia.it/home/tmp';
public $ftp_root = 'public_html/ferenaz';

I also tried with dittagioia.it/ferenaz instead of ferenaz.dittagioia.it, and with live_site empty, the errors are the same.

Thank you again for your assistance.

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 5:26 pm
by Per Yngve Berg
Are you running Joomls 2.5.28 on php 5.6?

Remember this version is from 2014.

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 5:39 pm
by illustrata
I have inherited this site, we are getting off the old host. Everything functions correctly at ferenaz.it now. Thought the Joomla version is outdated, it does work.

Php 7.4 is running on the new host. The idea was to get ferenaz.dittagioia.it stable and then update the software, at least to v3. But I can't even access administration on the new site (which works on the old site) and don't know the correct settings to make it work.

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 5:52 pm
by Webdongle
public $log_path = '/web/htdocs/ferenaz.dittagioia.it/home/log';
public $tmp_path = '/web/htdocs/ferenaz.dittagioia.it/home/tmp';

Is the folder called ferenaz.dittagioia.it?
I doubt it

If the folder of the subdomain is nested then the paths should be more like
public $log_path = '/web/htdocs/foldername/home/log';
public $tmp_path = '/web/htdocs/foldername/home/tmp';

A good way to create the correct paths is to create another subdomain and install a fresh Joomla into it. That will give you the pattern for the paths.

Ideally the folders for the Domain and subdomain should be on the same level with each other and below the htdocs folder.
btw the folder the subdomain is the root of the subdomain regardless of whether it is nested or not.

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 7:12 pm
by Per Yngve Berg
It will not run on 7.4. You have to step down to 5.6.

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 7:31 pm
by illustrata
That did it! I will try to upgrade to v3 as soon as possible, will I be able to go back to 7.4 then?

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 7:33 pm
by illustrata
Am I running a risk by staying on 5.6 for the moment?

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 7:51 pm
by Webdongle
Your running a risk running an old Joomla that probably has old extensions in it. You could use wamp on your PC to migrate.

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 7:57 pm
by illustrata
As I said before, I inherited this site, know nothing about Joomla and so will have to look for help to update to be more expedient. Just looking over the upgrade instructions, nothing corresponds, my user may not even be high-level enough.

I find a Joomla expert to do this, or just retrieve the content from the site and remove it.

Many thanks again for everyone's help.

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 8:07 pm
by Per Yngve Berg
See this doc on how to recover the Super-admin password.

https://docs.joomla.org/How_do_you_reco ... assword%3F

Re: From domain to subdomain

Posted: Mon Mar 07, 2022 8:37 pm
by Webdongle
Once you access as Super Admin you can install Akeeba. Pick the version that suits your Joomla and php https://www.akeeba.com/compatibility.html
Even if you can't run/migrate the site someone you hire can with the .jpa backup. The backup has the site, files, the site database and an installer.

When you are in a position to hire someone viewforum.php?f=177