# Packages, service names आणि paths: quick reference

Source: https://ravindrabagale.com/mr/cyber/part-03/ch07-apache-and-nginx-install-and-understand/7-2-quick-reference-packages-services-and-paths.html
Language: mr (Marathi with English technical terms)

Ubuntu चा path Amazon Linux वर वापरणं ही नेहमीची सुरुवातीची चूक आहे. खालील table हा course च्या सामान्य package layouts चा reference आहे. Custom install मध्ये paths बदलू शकतात.

 | Item
 | Amazon Linux 2023
 | Ubuntu 22.04 / 24.04
 | CentOS Stream 9

 | Nginx package / service
 | nginx / nginx
 | nginx / nginx
 | nginx / nginx

 | Nginx main config
 | /​etc/​nginx/​nginx.​conf
 | /​etc/​nginx/​nginx.​conf
 | /​etc/​nginx/​nginx.​conf

 | Nginx site configs
 | /​etc/​nginx/​conf.​d/*.​conf
 | /​etc/​nginx/​sites-​available/ + symlink in sites-enabled/ (also conf.d/)
 | /​etc/​nginx/​conf.​d/*.​conf

 | Nginx default web root
 | /​usr/​share/​nginx/​html
 | /var/www/html
 | /​usr/​share/​nginx/​html

 | Nginx worker user
 | nginx
 | www-data
 | nginx

 | Nginx logs
 | /var/log/nginx/
 | /var/log/nginx/
 | /var/log/nginx/

 | Apache package / service
 | httpd / httpd
 | apache2 / apache2
 | httpd / httpd

 | Apache main config
 | /​etc/​httpd/​conf/​httpd.​conf
 | /​etc/​apache2/​apache2.​conf
 | /​etc/​httpd/​conf/​httpd.​conf

 | Apache site configs
 | /​etc/​httpd/​conf.​d/*.​conf
 | /​etc/​apache2/​sites-​available/ (enable with a2ensite)
 | /​etc/​httpd/​conf.​d/*.​conf

 | Apache default web root
 | /var/www/html
 | /var/www/html
 | /var/www/html

 | Apache user
 | apache
 | www-data
 | apache

 | Apache logs
 | /var/log/httpd/
 | /var/log/apache2/
 | /var/log/httpd/

 | Config test
 | sudo nginx -t / sudo apachectl configtest
 | sudo nginx -t / sudo apache2ctl configtest
 | sudo nginx -t / sudo apachectl configtest

 | Install नंतर auto-start?
 | साधारण manually start/enable; actual status तपासा
 | साधारण हो; package policy/status तपासा
 | साधारण manually start/enable; actual status तपासा

 | इतर तपासणी
 | —
 | ufw if enabled
 | firewalld + SELinux

लक्षात ठेवण्यासारखे फरक

Nginx: package/service साधारण nginx. Main config /etc/nginx/nginx.conf.

Amazon Linux/CentOS: Nginx conf.d/*.conf; default root /usr/share/nginx/html; worker nginx.

Ubuntu Nginx: sites-available आणि sites-enabled symlink workflow; conf.d सुद्धा include असू शकतो. Default root /var/www/html; worker www-data.

Apache Amazon Linux/CentOS: httpd package/service, /etc/httpd, user apache, logs /var/log/httpd.

Apache Ubuntu: apache2 package/service, /etc/apache2, user www-data, logs /var/log/apache2.

Config tests: nginx -t, apachectl configtest किंवा Ubuntu वर apache2ctl configtest.

Install नंतर auto-start distro/package policy वर अवलंबून आहे; status आणि enabled state नेहमी तपासा. Host firewall enabled असेल तर UFW/firewalld आणि SELinux policy सुद्धा लागू होऊ शकते.

Practice

Table न पाहता Amazon Linux 2023 आणि Ubuntu साठी Apache package, config-test command आणि log folder लिहा.

रवींद्र बागले यांची tip

Amazon Linux/CentOS = httpd; Ubuntu = apache2. Nginx चा service name समान असला तरी default root आणि site-config workflow वेगळे असू शकतात.
