Linux Mint Türkiye
Yazılım => Yazılım Sorunları => Konuyu başlatan: swiper93 - 06 Ağustos 2016, 20:14:24
-
Apache2 bi türlü başlamıyor terminal çıktısı şu şekilde
Aslında daha önce LAMP kurulumu yaptım sonra Laravel Framework'u bir türlü serverda çalıştıramadığım için sonra tek tek "apt-get remove" komutuyla geri kaldırmıştım fakat değişik birşey yaptım "/etc/apache2" dizindeki apache2 klasörünü de yönetici olarak sildim tekrar kurduğumda ise apache çalışmadı ne yapabilirim?
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has begun starting up.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: * Starting Apache httpd web server apache2
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: *
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: * The apache2 configtest failed.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Output of config test was:
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Invalid command 'Require', perhaps misspelled or defined by a module not inc
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Action 'configtest' failed.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: The Apache error log may have more information.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Control process exited, code=exited status=1
Ağu 06 20:10:00 notebook-K53SD systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Unit entered failed state.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Failed with result 'exit-code'.
Ağu 06 20:10:00 notebook-K53SD sudo[27397]: pam_unix(sudo:session): session closed for user root
lines 1522-1544/1544 (END)
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has begun starting up.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: * Starting Apache httpd web server apache2
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: *
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: * The apache2 configtest failed.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Output of config test was:
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Action 'configtest' failed.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: The Apache error log may have more information.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Control process exited, code=exited status=1
Ağu 06 20:10:00 notebook-K53SD systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Unit entered failed state.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Failed with result 'exit-code'.
Ağu 06 20:10:00 notebook-K53SD sudo[27397]: pam_unix(sudo:session): session closed for user root
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
...skipping...
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has begun starting up.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: * Starting Apache httpd web server apache2
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: *
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: * The apache2 configtest failed.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Output of config test was:
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: Action 'configtest' failed.
Ağu 06 20:10:00 notebook-K53SD apache2[27400]: The Apache error log may have more information.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Control process exited, code=exited status=1
Ağu 06 20:10:00 notebook-K53SD systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Unit entered failed state.
Ağu 06 20:10:00 notebook-K53SD systemd[1]: apache2.service: Failed with result 'exit-code'.
Ağu 06 20:10:00 notebook-K53SD sudo[27397]: pam_unix(sudo:session): session
-
Mesajınızı bölüp yeni bir başlık oluşturdum. Nasıl belgeleri altından sorun çözmek ilgili belgeleri karmaşık hale getirebiliyor.
Apache'yi aşağıdaki komutla kaldırıp ardından yeniden kurmayı deneyiniz.
sudo apt-get remove --auto-remove apache2
-
Denedim fakat aynı problem devam ediyor
-
Aşağıdaki komutla yapılandırma dosyaları ile birlikte kaldırdıktan sonra yeniden kurulum deneyebilrisiniz.
sudo apt-get remove --purge --auto-remove apache2
-
Sorun daha da karmaşık hale gelmeye başladı localhost adresinde php sunucu apache çalışmıyor zannedersem çünkü php dosyasında yazan kodları olduğu gibi gösteriyor tarayıcıda :)
Mesajlar Birleştirildi.
LAMP içinde kurulan Apache,MariaDB, PHP server vb.. hepsini birden hiçbir dosyası yapılandırma ayarı kalmadan kaldırabilme imkanım var mı? Çünkü kaç kere kurup kaldırma işlemi başka başka işlemler denedim. Hatta Xampp falan da yükledim kaldırdım. Sanırım sistemde bazı ayarlarda sıkıntı oldu. Bunu Format atmadan çözebilme imkanım var mı? Çünkü sıfırdan LinuxMint kurmak istemiyorum kendime göre özelleştirdim. Tekrardan kurmaya üşeniyorum :)
-
XAMMP kaldırmak için aşağıdaki komutu kullanabilirsiniz.
sudo /opt/lampp/uninstall
Aşağıdaki komutla LAMP öğelerini kaldırmak denenebilir.
sudo apt-get remove --purge --auto-remove apache2 mariadb-server mariadb-client php7.0* libapache2-mod-php7.0 phpmyadmin
-
Bunları denedim fakat istediğim sonucu alamadım en sonunda linux minti yeniden kurup hemen ardından LAMP kurulumu yaptım ve herşey güzel çalışıyor sonunda :)