[SOLVED] Apache2 Installation

Message
Author
User avatar
Seagasm
Posts: 124
Joined: Sun Jun 23, 2019 5:36 pm

[SOLVED] Apache2 Installation

#1 Post by Seagasm »

Good morning Crew, I have installed Apache2 from the repository only to discover not only is it installed in the File System but also the local web sites are located in File System/Var/www/as well. I try and keep my operating system separate and would rather install working files such as www/ in the Home folder/partition. How can I overcome this? Thank you.
Last edited by Seagasm on Sat Jun 29, 2019 12:43 am, edited 1 time in total.
MX-21.2.1 default user, Toshiba Qosmio F60 model laptop, Boot 5.10.0-19 BTRFS amd-64 Sysytem.

User avatar
Jerry3904
Administrator
Posts: 23234
Joined: Wed Jul 19, 2006 6:13 am

Re: Apache2 Installation

#2 Post by Jerry3904 »

Install it using Package Installer might do it.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Seagasm
Posts: 124
Joined: Sun Jun 23, 2019 5:36 pm

Re: Apache2 Installation

#3 Post by Seagasm »

Hi Jerry, no, that is what I did, twice.
MX-21.2.1 default user, Toshiba Qosmio F60 model laptop, Boot 5.10.0-19 BTRFS amd-64 Sysytem.

User avatar
Mishimainizu
Posts: 30
Joined: Sat Apr 20, 2019 2:11 am

Re: Apache2 Installation

#4 Post by Mishimainizu »

Seagasm wrote: Thu Jun 27, 2019 7:28 pm ...but also the local web sites are located in File System/Var/www/as well. I try and keep my operating system separate and would rather install working files such as www/ in the Home folder/partition. How can I overcome this? Thank you.
If it's the same as the Windows version, you should be able to change the www folder location in the configuration file.
Last edited by Mishimainizu on Fri Jun 28, 2019 1:44 am, edited 1 time in total.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Apache2 Installation

#5 Post by JayM »

If this will be a dedicated webserver, rather than just an experiment with apache on your own desktop/laptop PC, you may be interested in my Bare Server Edition respin:
viewtopic.php?f=100&t=51060
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
Seagasm
Posts: 124
Joined: Sun Jun 23, 2019 5:36 pm

Re: Apache2 Installation

#6 Post by Seagasm »

Mishimainizu wrote: Fri Jun 28, 2019 12:40 am
Seagasm wrote: Thu Jun 27, 2019 7:28 pm ...but also the local web sites are located in File System/Var/www/as well. I try and keep my operating system separate and would rather install working files such as www/ in the Home folder/partition. How can I overcome this? Thank you.
If it's the same as the Windows version, you should be able to change the www folder location in the configuration file.
Thank you for your reply Mishimainizu, I have been wondering about that, I cannot do any harm as long as I do a Backup.
MX-21.2.1 default user, Toshiba Qosmio F60 model laptop, Boot 5.10.0-19 BTRFS amd-64 Sysytem.

User avatar
Seagasm
Posts: 124
Joined: Sun Jun 23, 2019 5:36 pm

Re: [SOLVED] Apache2 Installation

#7 Post by Seagasm »

Ok, I relocated the websites into the home folder, then changed the config files in apache2 folder to redirect to the sites in the respective home folder instead of File System/var/www/. All good so thank you all. 9_9
MX-21.2.1 default user, Toshiba Qosmio F60 model laptop, Boot 5.10.0-19 BTRFS amd-64 Sysytem.

Post Reply

Return to “Software / Configuration”