İnstalling Joomla 5 on a server where a Joomla site is already installed Topic is solved

Need help installing Joomla! 5.x? For all Joomla! 5.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
zhrbal
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 09, 2023 1:11 pm

İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by zhrbal » Fri Feb 09, 2024 12:10 pm

Hi everyone,

I am trying to install a new Joomla site on a server where an other Joomla site is already installed. I am using Ubuntu OS and Apache2 server. The already installed Joomla site's version is 4.x . I am trying to install a new site with Joomla 5.x. I downloaded Joomla 5.0.2 Full Package and then unzipped it on to a directory (/var/www/newjs). I created a database table for this site. And then i followed this steps:

1)- cp /var/www/newjs/htaccess.txt /var/www/newjs/.htaccess
2)- chown -R www-data.www-data /var/www/newjs
3)- chmod -R 755 /var/www/newjs
4)- systemctl restart apache2

After those steps, when i tried to reach joomla installer via browser i got an error message: The requested URL was not found on this server.
İ did some research and the solution i found was to write a virtual host i did that but it didn't work. I also enabled sites with a2ensite command. That didn't help either.
Is this error caused by setting up two Joomla sites on the same server? Is it possible to install two Joomla sites on the same server? Or am i doing something wrong while installing joomla?
I would be very happy if you can help

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17256
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by toivo » Fri Feb 09, 2024 10:46 pm

zhrbal wrote:
Fri Feb 09, 2024 12:10 pm
Is it possible to install two Joomla sites on the same server?
A web server can host any number of Joomla sites, as long as the virtual hosts have been configured correctly.

zhrbal wrote:
Fri Feb 09, 2024 12:10 pm
when i tried to reach joomla installer via browser i got an error message: The requested URL was not found on this server.
All one has to do for the installer to start is to point the browser to the domain. The configuration of the virtual host associates the domain name with a physical folder, the document root of the website, where the file index.php starts the installation script.
Toivo Talikka, Global Moderator

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2537
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by ceford » Sat Feb 10, 2024 9:59 am

What sort of hosting service? cPanel or something else? Local computer or something else? You might find this article helpful: https://jdocmanual.org/jdocmanual?manua ... n-linux.md [caveat: my site, my article].

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43901
Joined: Sat Apr 05, 2008 9:58 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by Webdongle » Sun Feb 11, 2024 11:23 am

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

zhrbal
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 09, 2023 1:11 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by zhrbal » Mon Feb 12, 2024 8:27 am

ceford wrote:
Sat Feb 10, 2024 9:59 am
What sort of hosting service? cPanel or something else? Local computer or something else? You might find this article helpful: https://jdocmanual.org/jdocmanual?manua ... n-linux.md [caveat: my site, my article].
İt is a local computer.

zhrbal
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 09, 2023 1:11 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by zhrbal » Mon Feb 12, 2024 9:24 am

toivo wrote:
Fri Feb 09, 2024 10:46 pm
zhrbal wrote:
Fri Feb 09, 2024 12:10 pm
Is it possible to install two Joomla sites on the same server?
A web server can host any number of Joomla sites, as long as the virtual hosts have been configured correctly.

zhrbal wrote:
Fri Feb 09, 2024 12:10 pm
when i tried to reach joomla installer via browser i got an error message: The requested URL was not found on this server.
All one has to do for the installer to start is to point the browser to the domain. The configuration of the virtual host associates the domain name with a physical folder, the document root of the website, where the file index.php starts the installation script.
I do exactly as you say. i don't have a URL yet and i use ip address of my server. For example if ip address of my server was 199.999.9.99 i use this to get to the installation page: http://199.999.9.99/newjs
But it gives an 404 page not found error.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2537
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by ceford » Mon Feb 12, 2024 9:33 am

Try

Code: Select all

http://localhost/newjs
and read the article I quoted.

zhrbal
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 09, 2023 1:11 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by zhrbal » Mon Feb 12, 2024 11:15 am

ceford wrote:
Mon Feb 12, 2024 9:33 am
Try

Code: Select all

http://localhost/newjs
and read the article I quoted.
Thank you for your help and advice. I've managed to access the setup page of the website. However, I can only access it from the computer where I installed it. After obtaining a valid URL address for the site, can I access it globally? I followed the virtual host steps mentioned in the article you referred to and wrote accordingly. Additionally, I made changes in the /etc/hosts section as described in the article. Will I need to make any changes to these configurations after obtaining a URL to access the site globally?

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2537
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by ceford » Mon Feb 12, 2024 3:41 pm

You said that you have a local computer. Allowing access to that from the internet is a risky business. It can be done but I can't tell you how to do it. I recommend you pay for a shared hosting account for your public site and only use your local computer for testing. You can even get a free Joomla site - try this article: https://docs.joomla.org/How_to_build_yo ... la_Website

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43901
Joined: Sat Apr 05, 2008 9:58 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by Webdongle » Mon Feb 12, 2024 4:39 pm

What are you using on your pc as localhost?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

zhrbal
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 09, 2023 1:11 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by zhrbal » Tue Feb 13, 2024 7:57 am

I am getting an hosting service from a company called Alastyr and already have domain names that are free to use. But i want to keep the folders of the site in local server. I have a Ubuntu OS and apache2 server installed on the localhost.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43901
Joined: Sat Apr 05, 2008 9:58 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by Webdongle » Tue Feb 13, 2024 10:23 am

https://docs.joomla.org/Installing_Joom ... bian_Linux may help its old but relevant because of Ubuntu Ownership on your pc
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

zhrbal
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 09, 2023 1:11 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by zhrbal » Tue Feb 13, 2024 11:27 am

Webdongle wrote:
Tue Feb 13, 2024 10:23 am
https://docs.joomla.org/Installing_Joom ... bian_Linux may help its old but relevant because of Ubuntu Ownership on your pc
Thank you, i will check this

User avatar
eorisis
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Sun Jul 21, 2013 5:18 pm
Location: Thessaloniki Greece
Contact:

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by eorisis » Wed Feb 14, 2024 11:45 am

You can install a control panel on your local linux, to have all the things you need such as DNS and multiple websites without having to edit /etc/hosts every time. There are some free solutions you can check. I'd recommend to do that with a dedicated local server, otherwise it will always mess with the rest of the system if it's a desktop.

EDIT: For development purposes.
Joomla-Powered IT Solutions
https://eorisis.com

zhrbal
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Mar 09, 2023 1:11 pm

Re: İnstalling Joomla 5 on a server where a Joomla site is already installed

Post by zhrbal » Thu Feb 15, 2024 8:13 am

Thank you for all the help and support. I managed to publish the site.


Post Reply

Return to “Installation Joomla! 5.x”