LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2015, 01:34 PM   #1
veetay
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Rep: Reputation: Disabled
Issue with starting apache2 / php5 after upgrading Debian from 7 to 8


Hi!
I've decided to upgrade debian on vps that i rent from 7 to 8. All went perfect, everything works fine except apache2 that won't start. As far as I think, the problem is located at php5 in missing libphp.so that is missing. I tried reinstalling, but it didn't helped and I'm stuck.
When I try to launch apache2 it looks like this:
Code:
root@fabrykapiasku:~# /etc/init.d/apache2 start                                 [....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
 failed!
Following this track I input those commands.

Code:
root@fabrykapiasku:~# journalctl -xn
-- Logs begin at Fri 2015-06-12 00:29:11 CEST, end at Sat 2015-06-13 09:07:34 CE
Jun 13 09:06:42 fabrykapiasku systemd[1]: apache2.service: control process e
Jun 13 09:06:42 fabrykapiasku systemd[1]: Failed to start LSB: Apache2 web s
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li … temd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Jun 13 09:06:42 fabrykapiasku systemd[1]: Unit apache2.service entered faile
Jun 13 09:07:31 fabrykapiasku postfix/smtpd[3306]: warning: hostname indigen
Jun 13 09:07:31 fabrykapiasku postfix/smtpd[3306]: connect from unknown[89.2
Jun 13 09:07:31 fabrykapiasku auth[3311]: pam_unix(dovecot:auth): check pass
Jun 13 09:07:31 fabrykapiasku auth[3311]: pam_unix(dovecot:auth): authentica
Jun 13 09:07:34 fabrykapiasku postfix/smtpd[3306]: warning: unknown[89.248.1
Jun 13 09:07:34 fabrykapiasku postfix/smtpd[3306]: lost connection after AUT
Jun 13 09:07:34 fabrykapiasku postfix/smtpd[3306]: disconnect from unknown[8
lines 1-18/18 (END)
-- Logs begin at Fri 2015-06-12 00:29:11 CEST, end at Sat 2015-06-13 09:07:34 CEST. --
Jun 13 09:06:42 fabrykapiasku systemd[1]: apache2.service: control process exited, code=exited status=1
Jun 13 09:06:42 fabrykapiasku systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li … temd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Jun 13 09:06:42 fabrykapiasku systemd[1]: Unit apache2.service entered failed state.
Jun 13 09:07:31 fabrykapiasku postfix/smtpd[3306]: warning: hostname indigene.shaperetrieve.com does no
Jun 13 09:07:31 fabrykapiasku postfix/smtpd[3306]: connect from unknown[89.248.160.215]
Jun 13 09:07:31 fabrykapiasku auth[3311]: pam_unix(dovecot:auth): check pass; user unknown
Jun 13 09:07:31 fabrykapiasku auth[3311]: pam_unix(dovecot:auth): authentication failure; logname= uid=
Jun 13 09:07:34 fabrykapiasku postfix/smtpd[3306]: warning: unknown[89.248.160.215]: SASL LOGIN authent
Jun 13 09:07:34 fabrykapiasku postfix/smtpd[3306]: lost connection after AUTH from unknown[89.248.160.2
Jun 13 09:07:34 fabrykapiasku postfix/smtpd[3306]: disconnect from unknown[89.248.160.215]
~
~
~
~
~
lines 1-18/18 (END)
This output also gives some clue

Code:
root@fabrykapiasku:~# apachectl configtest
apache2: Syntax error on line 244 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5filter.load: Cannot load /usr/lib/apache2/modules/libphp5filter.so into server: /usr/lib/apache2/modules/libphp5filter.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
I don't know why, but apache log files are missing aswell

Also I found some thread that somebody had very simmilar problem, but thread remains open for months. Here is output of this:

Code:
root@fabrykapiasku:~# dpkg --get-selections | grep php
libapache2-mod-php5                             deinstall
libapache2-mod-php5filter                       deinstall
php-gettext                                     install
php-tcpdf                                       install
php5                                            install
php5-cgi                                        install
php5-cli                                        install
php5-common                                     install
php5-dbg                                        install
php5-gd                                         install
php5-json                                       install
php5-mcrypt                                     install
php5-mysql                                      install
php5-readline                                   install
phpmyadmin                                      install
Also it's worth o tell, that I'm not any linuxguru, and I'm running small server that hosts my site and teamspeak server, so I might don't know some tricks
 
Old 06-14-2015, 12:55 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you DID ??? read the change logs and the "what's NEW in 8" ?????

8 is using SystemD and the old SystemV

Code:
service apache2 restart
a LOT of things changed in 8

also did you upgrade Apache2.2 to the current 2.4 ?

Last edited by John VV; 06-14-2015 at 12:59 PM.
 
Old 06-15-2015, 05:23 AM   #3
veetay
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Nope, this didn't helped. I fixed it by editing

/etc/apache2/apache2.conf

And changing there
Code:
LockFile ${APACHE_LOCK_DIR}/accept.lock
To:
Code:
Mutex file:${APACHE_LOCK_DIR} default
Right now apache2 starts, but it gives error 500 in every file where .htaccess is stored. Got this error in apache2 log
Code:
ifmodule not allowed here
Any ideas?
 
Old 06-15-2015, 02:49 PM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
http://serverfault.com/questions/529...t-allowed-here
 
Old 06-17-2015, 02:24 PM   #5
veetay
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes! It helped! Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Lenny LXer Syndicated Linux News 0 09-11-2009 12:50 PM
PHP5 and Apache2 doesn't cope om Debian 4,0 (AMD64) bumbibear Linux - Server 1 01-31-2008 02:52 PM
php5 not working with apache2 in debian 4.0 mohtasham1983 Linux - Server 2 08-08-2007 09:19 PM
Debian / Apache2 / PHP5 / Firefox not parsing locally Garybtx Linux - Server 2 11-13-2006 06:57 PM
Apache2, PHP5, MySQL and charset issue lenanu Linux - Software 2 06-26-2006 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration