I'v just installed a Debian server on an old machine that was just there. In the installation process, I chose to install web-server.
Which web server is it? Apache? how do I config it? I can't find info and I'm new to the server realm so I don't know where to look.
[Installation] After choosing to install a web server during the installation process, what happends?
-
- Posts: 8
- Joined: 2022-10-22 08:16
- dilberts_left_nut
- Administrator
- Posts: 5441
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 21 times
- Been thanked: 87 times
Re: [Installation] After choosing to install a web server during the installation process, what happends?
Yes, apache2.
Config is in /etc/apache2
Config is in /etc/apache2
man apache2 wrote:DOCUMENTATION
The full documentation is available in the apache2-doc package or at
http://httpd.apache.org/docs/2.2/ . Information about Debian specific
changes and configuration can be found in
/usr/share/doc/apache2/README.Debian.gz .
AdrianTM wrote:There's no hacker in my grandma...
-
- Posts: 186
- Joined: 2011-04-11 05:12
- Location: Kentucky
- XMMP/Jabber: gerowen@conversations.im
- Has thanked: 7 times
- Been thanked: 3 times
- Contact:
Re: [Installation] After choosing to install a web server during the installation process, what happends?
As has been stated; it's apache2. The default location of web directories is /var/www and your apache config is in /etc/apache2 . You also have auxiliary commands to modify apache's config:
- a2enmod - Enables the specified module
- a2dismod - Disables the specified module
- a2ensite - Enables the specified site. The name you can use here corresponds to the filename, minus extension, for a site you have configured in /etc/sites-available . So for example, if you have a config for a site at /etc/apache2/sites-available/default.conf, you would "enable" the site with "a2ensite default", either as root or with sudo.
- a2dissite - Disables the specified site, see previous bullet for details.
If you make changes to the configuration, enable/disable sites or modules, etc., you'll want to do a systemctl reload apache2 to basically restart the service with all the new changes in place.
As far as configuring it, you can learn a lot by just reading the config file for the default site, perhaps the manual for apache itself (man apache2), and checking out the Wiki. For example, I found this wiki page about apache hardening here:
https://wiki.debian.org/Apache/Hardening
- a2enmod - Enables the specified module
- a2dismod - Disables the specified module
- a2ensite - Enables the specified site. The name you can use here corresponds to the filename, minus extension, for a site you have configured in /etc/sites-available . So for example, if you have a config for a site at /etc/apache2/sites-available/default.conf, you would "enable" the site with "a2ensite default", either as root or with sudo.
- a2dissite - Disables the specified site, see previous bullet for details.
If you make changes to the configuration, enable/disable sites or modules, etc., you'll want to do a systemctl reload apache2 to basically restart the service with all the new changes in place.
As far as configuring it, you can learn a lot by just reading the config file for the default site, perhaps the manual for apache itself (man apache2), and checking out the Wiki. For example, I found this wiki page about apache hardening here:
https://wiki.debian.org/Apache/Hardening
Re: [Installation] After choosing to install a web server during the installation process, what happends?
I found this thread and would like to ask if I need to install the webserver during debian install if I am going to only run openlightspeed wordpress server from home?
(using this: https://openlitespeed.org/kb/1-click-install/)
(using this: https://openlitespeed.org/kb/1-click-install/)