Comandos per Starting Apache on Linux

Se u vostru servitore Linux Apache hè stati, pudete aduprà un cumandariu di linea di cumanda specifiche per aghjà torna. Ùn avete succedutu se u servitore hè statu cuminciatu cumu si u cumandimu eseguitu, o pudete vede un messagiu d'errore cum'è "U web server d'Apache hè digià correndo " .

Se vi pruvate d' installà Apache è micca solu cumenciu, vede a nostra guida di cumu installà Apache nantu à Linux . Vede cumu per restituverà un servore web Apache si avete interessatu à apre l'Apache è da principià per a volta.

Cumpregni un servitore Web Apache

Se Apache hè nantu à a vostra macchina locale, puderete esce cumandamenti cum'è esse, o avete bisognu à rimbursà in u servitu cù SSH o Telnet.

Per esempiu, ssh root@thisisyour.server.com serà SSH à u servitore Apache.

I passi per principesu Apache sò unipo diferenti sicondu a vostra versione di Linux:

Per Red Hat, Fedora è CentOS

Versioni 4.x, 5.x, 6.x, o più vechje anu aduprà stu cumanda:

$ sudo service httpd start

Aduprà stu cumanda per a versioni 7.x o novu:

$ sudo systemctl iniziale httpd.service

Sì i cose micca travagliate, pruvate sta cumanda:

$ sudo /etc/init.d/httpd start

Debian è Ubuntu

Aduprà sta cumanda per Debian 8.x o novate è Ubuntu 15.04 è questu:

$ sudo systemctl iniziale apache2.service

Ubuntu 12.04 è 14.04 puderia esse dumandà questu cumanda:

$ sudo start apache2

Sì quelli chì ùn sò micca travagliati, pruvate unu di questi:

$ sudo /etc/init.d/apache2 start $ sudo service apache2 start

Generic Apache Commands Start

Questi ordini generichi cume accuminciate l'Apache nantu à ogni distribuzione Linux:

$ sudo apachectl start $ sudo apache2ctl start $ sudo apachectl -f /path/to/your/httpd.conf $ sudo apachectl -f /usr/local/apache2/conf/httpd.conf