LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2023, 09:58 AM   #1
DomyIT
LQ Newbie
 
Registered: Sep 2023
Posts: 2

Rep: Reputation: 0
Multiple version of PHP on different Virtual Hosts (Manjaro Linux)


Hi everyone, I'm a web developer.
I would like to be able to configure apache, php, mariadb and phpmyadmin.
I would like to create a virtual host for each project.

The structure should be this:
- /home/user/www/site1/ (PHP 8.2)
- /home/user/www/site2/ (PHP 8.1)
- /home/user/www/site3/ (PHP 8.0)

I would like to be able to access the site via the addresses:
- site1.test
- site2.test
- site3.test

On “site1” I would like the root document to be:
- /home/user/www/site1/public (Laravel installation)

Can you tell me the procedure for doing this?

If possible, also enable HTTPS on virtual hosts...

Thanks in advance to everyone.
 
Old 09-30-2023, 01:05 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
#1 you may be an html mechanic, but a web developer who does not know how to set up any web services?

#2 you need some web specific sysadmin skills, and there are two ways to get them. I recommend both, but in the right order.
a. study. Read up on how to implement an httpd server using apache httpd. (Although there are arguably better options.)
b. practice by setting up httpd servers and configuring them.

Repeat 2 with each of the other tools you need in turn until you can put things together quickly and correctly.

Then stay up to date on the changes and updates for each of your tools so you can change your procedures as they evolve (because none of them stand still).

OR, you could do your own search for a web page document or wiki that covers the procedure pretty much they way you want to do it. IT will be out of date as soon as anything changes, but will give you a "formula" for how to do it. IF it is not terribly different from your needs it might even work for you, but you will be lacking the detailed information you need to make informed adjustments and adjust to updates and changes as they occur.

If you cannot take the time to learn, you might team up with someone who is less of a web designer, but more of a sysadmin. This would allow you to split the learning and build load and cross-train each other.

I have totally ignored the skills needed to either obtain, configure, network, and address servers platforms (physical or virtual machines) because each of those is a whole 'nother can of worms and you did not say which way you plan to go.
 
Old 09-30-2023, 02:03 PM   #3
DomyIT
LQ Newbie
 
Registered: Sep 2023
Posts: 2

Original Poster
Rep: Reputation: 0
I would simply like a guide to configure the environment for me, I develop locally, the servers I usually rely on vps managed with plesk, which does not require knowing how to configure a web server.
Can you help me?
 
Old 09-30-2023, 08:22 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,638

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
I think what you are going to want to do is set up multiple CONTAINERS with the right tools and versions. Actually create ONE and then clone it to the others with the target version of PHP. Something like Docker or OpenVZ might serve, depending upon what your host server happens to be.

You did not specify what you are building on.

With enough information someone might be able to find or suggest the appropriate how-to document. I do not have that information at hand.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello! Try to install Linux(Manjaro) to my win10 rig and have problems with HDDs/SSD (SATA) detection by OS(Manjaro/Mint). Red007Master Linux - Hardware 2 11-19-2021 09:11 PM
How to allow my private network hosts to communicate with iot hosts on different subnet?s bthoven Linux - Networking 1 10-16-2019 02:18 PM
Will Manjaro Linux Net edition act like Manjaro or a base install of Arch? punchy71 Linux - Newbie 4 06-28-2014 08:05 AM
How to set up multiple SSL sites for multiple IP based and name based Virtual Hosts. Rohit_4739 Linux - Server 11 02-28-2011 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration