Page 1 of 2

Apache error

Posted: 2013 Apr 23 19:19
by Tomax
Suvedu:

Code: Select all

apt-get install php5 php5-cli php5-cgi apache2 mysql-server phpmyadmin libapache2-mod-php5 
Gaunu:

Code: Select all

Syntax error on line 32 of /etc/apache2/sites-enabled/000-default.save:Invalid command '/etc/init.d/apache2', perhaps misspelled or defined by a module not included in the server configurationAction 'configtest' failed.The Apache error log may have more information. failed! 

Re: Apache error

Posted: 2013 Apr 23 19:20
by laimiukas3
Tomax wrote:Suvedu:

Code: Select all

apt-get install php5 php5-cli php5-cgi apache2 mysql-server phpmyadmin libapache2-mod-php5 
Gaunu:

Code: Select all

Syntax error on line 32 of /etc/apache2/sites-enabled/000-default.save:Invalid command '/etc/init.d/apache2', perhaps misspelled or defined by a module not included in the server configurationAction 'configtest' failed.The Apache error log may have more information. failed! 
blt man taspats :/

Re: Apache error

Posted: 2013 Apr 23 19:39
by newb
Abejoju, kad galima viska i viena eilute rasyti. Reikia atskirai puse dalyku su restartais.

Re: Apache error

Posted: 2013 Apr 23 19:47
by Tomax
Bandžiau ir atskirai, tas pats error'as

Re: Apache error

Posted: 2013 Apr 24 01:46
by aaarnas
Pirmiausia patį apache instaliuojam, tik tada visus kitus dalykus.
Be to reikėtų pažiūrėti ar nėra jau apache instaliuoto ir ištrinti visas šiukšles kas instaliuota ir nereikalinga.

Re: Apache error

Posted: 2013 Apr 24 07:50
by Tomax
Kaip galima visą LAMP ištrint, ta prasme, kad viskas dingtų, net aplankalai, ar tai neįmanoma automatiškai?
Naudojau šią eilutę:

Code: Select all

apt-get purge mysql* && apt-get purge phpmyadmin*
Be to, gaunu tą patį error'ą ir kai noriu restartin't apache

Re: Apache error

Posted: 2013 Apr 24 12:52
by laimiukas3
Os perasyk :)

Re: Apache error

Posted: 2013 Apr 25 04:46
by aaarnas
apt-get --purge remove *paketai*
Na reikėtų visus paketus ištrinti. Kurie ten pas tave surašyti, tai nežinau. Reikia žiūrėti. Nes dažnai pagal tutorialus priinstaliuoji ko visiškai nereikia.

Re: Apache error

Posted: 2013 Apr 25 07:18
by Tomax
Reikėjo svetainės ant VPS. „Įsirašė“ bahūras LAMP'ą, bet po jo įrašymo neveikia nei LAMP'as, nei galiu ištrint ir iš naujo viską normaliai įrašyt :D

Re: Apache error

Posted: 2013 Apr 25 19:07
by Tetusis
nginx naudok, daug kartu greiciau veikia nei apache ir bene 50kartu maziau ram'u naudoja, tai pat kai yra high traffic ir vygdomos uzklausos palyginus su apache maziau cpu lag spikes.