Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with apache service
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Mon Aug 09, 2010 11:34 am    Post subject: problem with apache service Reply with quote

Hello I got a problem on restart of my apache service:

Code:

 * Apache has detected a syntax error in your configuration files:
[Mon Aug  9 13:32:27 2010] [warn] Loaded DSO modules/auth_ldap.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
Processing config directory: /etc/apache/modules.d/*.conf
 Processing config file: /etc/apache/modules.d/10_mod_ssl.conf
 Processing config file: /etc/apache/modules.d/55_mod_auth_ldap.conf
 Processing config file: /etc/apache/modules.d/70_mod_php.conf
Syntax error on line 6 of /etc/apache/modules.d/70_mod_php.conf:
Cannot load /usr/lib/apache/modules/libphp4.so into server: libmysqlclient.so.12: cannot open shared object file: No such file or directory


I would appreciate any help thx.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Mon Aug 09, 2010 12:42 pm    Post subject: Reply with quote

Rebuild/update php.
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Mon Aug 09, 2010 12:58 pm    Post subject: Reply with quote

I only reinstalled mysql.


emerge --search php shows following:

Code:

dev-php            version 4.4.0-r4
dev-php/mod_php    version 4.4.0-r9
virtual/httpd-php  version 4.4.0-r9


Sadly my gentoo doesn't react on emerge dev-php/php:


Code:

emerge: there are no builds to satisfy "dev-php/php"


and same with update:
Code:

# emerge --update php
Calculating dependencies... done!
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Mon Aug 09, 2010 1:18 pm    Post subject: Reply with quote

Either you haven't synced for a very long time or you're using a nonstandard repository.
1) it's dev-lang/php
2) there is no 4.x version of php in the tree anymore, the last ebuild for that version was removed two years ago.
3) the mod_php package has been removed from the tree over four years ago as the functionality was integrated into dev-lang/php.

Btw, is your apache still on apache-1.3.x as well?
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Mon Aug 09, 2010 1:48 pm    Post subject: Reply with quote

Code:

# emerge --search apache
Searching...
[ Results for search key : apache ]
[ Applications found : 23 ]

*  app-admin/apache-tools
      Latest version available: 2.2.15
      Latest version installed: [ Not Installed ]
      Size of files: 4,843 kB
      Homepage:      http://httpd.apache.org/
      Description:   Useful Apache tools - htdigest, htpasswd, ab, htdbm
      License:       Apache-2.0

*  app-admin/apachetop
      Latest version available: 0.12.6
      Latest version installed: [ Not Installed ]
      Size of files: 123 kB
      Homepage:      http://www.webta.org/projects/apachetop
      Description:   A realtime Apache log analyzer
      License:       GPL-2

*  app-emacs/apache-mode
      Latest version available: 1.1
      Latest version installed: 1.1
      Size of files: 3 kB
      Homepage:      http://www.keelhaul.me.uk/linux/#apachemode
      Description:   Major mode for editing Apache configuration files
      License:       GPL-2

*  dev-java/ant-apache-bcel
      Latest version available: 1.8.1
      Latest version installed: [ Not Installed ]
      Size of files: 5,739 kB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on bcel
      License:       Apache-2.0

*  dev-java/ant-apache-bsf
      Latest version available: 1.8.1
      Latest version installed: [ Not Installed ]
      Size of files: 5,739 kB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on bsf-2.3
      License:       Apache-2.0

*  dev-java/ant-apache-log4j
      Latest version available: 1.8.1
      Latest version installed: [ Not Installed ]
      Size of files: 5,739 kB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on log4j
      License:       Apache-2.0

*  dev-java/ant-apache-oro
      Latest version available: 1.8.1
      Latest version installed: [ Not Installed ]
      Size of files: 5,739 kB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on jakarta-oro-2.0
      License:       Apache-2.0

*  dev-java/ant-apache-regexp
      Latest version available: 1.8.1
      Latest version installed: [ Not Installed ]
      Size of files: 5,739 kB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on jakarta-regexp-1.4
      License:       Apache-2.0

*  dev-java/ant-apache-resolver
      Latest version available: 1.8.1
      Latest version installed: [ Not Installed ]
      Size of files: 5,739 kB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on xml-commons-resolver
      License:       Apache-2.0

*  dev-java/ant-apache-xalan2
      Latest version available: 1.8.1
      Latest version installed: [ Not Installed ]
      Size of files: 5,739 kB
      Homepage:      http://ant.apache.org/
      Description:   Apache Ant's optional tasks depending on xalan
      License:       Apache-2.0

*  dev-perl/Apache-AuthCookie
      Latest version available: 3.10
      Latest version installed: [ Not Installed ]
      Size of files: 34 kB
      Homepage:      http://search.cpan.org/~mschout/Apache-AuthCookie-3.08/
      Description:   Perl Authentication and Authorization via cookies
      License:       Artistic

*  dev-perl/Apache-AuthTicket
      Latest version available: 0.40
      Latest version installed: [ Not Installed ]
      Size of files: 19 kB
      Homepage:      http://search.cpan.org/~mschout/Apache-AuthTicket-0.40/
      Description:   Cookie based access module.
      License:       Artistic

*  dev-perl/Apache-CGI-Builder [ Masked ]
      Latest version available: 1.3
      Latest version installed: [ Not Installed ]
      Size of files: 7 kB
      Homepage:      http://search.cpan.org/dist/Apache-CGI-Builder/
      Description:   CGI::Builder and Apache/mod_perl (1 and 2) integration
      License:       || ( Artistic GPL-1 GPL-2 GPL-3 )

*  dev-perl/Apache-DBI
      Latest version available: 1.06
      Latest version installed: 0.94
      Size of files: 33 kB
      Homepage:      http://search.cpan.org/~pgollucci/Apache-DBI-1.06/
      Description:   Apache::DBI module for perl
      License:       || ( Artistic GPL-2 )

*  dev-perl/Apache-Reload
      Latest version available: 0.10
      Latest version installed: [ Not Installed ]
      Size of files: 17 kB
      Homepage:      http://search.cpan.org/dist/Apache-Reload/
      Description:   Perl module for Apache::Reload
      License:       Apache-2.0

*  dev-perl/Apache-Session
      Latest version available: 1.83
      Latest version installed: 1.60
      Size of files: 33 kB
      Homepage:      http://search.cpan.org/dist/Apache-Session/
      Description:   Perl module for Apache::Session
      License:       Artistic

*  dev-perl/Apache-SessionX
      Latest version available: 2.01
      Latest version installed: [ Not Installed ]
      Size of files: 12 kB
      Homepage:      http://search.cpan.org/~grichter/
      Description:   An extented persistence framework for session data
      License:       || ( Artistic GPL-2 )

*  dev-perl/Apache-Test
      Latest version available: 1.29
      Latest version installed: 1.15
      Size of files: 147 kB
      Homepage:      http://cpan.org/modules/by-module/Apache/
      Description:   Test.pm wrapper with helpers for testing Apache
      License:       Artistic

*  dev-perl/Apache2-AuthenNTLM
      Latest version available: 0.02
      Latest version installed: [ Not Installed ]
      Size of files: 50 kB
      Homepage:      http://search.cpan.org/~speeves/Apache2-AuthenNTLM-0.02/
      Description:   Apache2::AuthenNTLM - Perform Microsoft NTLM and Basic User Authentication
      License:       || ( Artistic GPL-2 )

*  dev-perl/Config-ApacheFormat
      Latest version available: 1.2
      Latest version installed: [ Not Installed ]
      Size of files: 55 kB
      Homepage:      http://search.cpan.org/dist/Config-ApacheFormat/
      Description:   use Apache format config files
      License:       || ( Artistic GPL-1 GPL-2 GPL-3 )

*  sec-policy/selinux-apache [ Masked ]
      Latest version available: 20080525
      Latest version installed: [ Not Installed ]
      Size of files: 328 kB
      Homepage:      http://www.gentoo.org/proj/en/hardened/selinux/
      Description:   SELinux policy for Apache HTTPD
      License:       GPL-2

*  www-apps/Apache-Gallery
      Latest version available: 1.0_rc3
      Latest version installed: [ Not Installed ]
      Size of files: 81 kB
      Homepage:      http://apachegallery.dk/
      Description:   Apache gallery for mod_perl
      License:       || ( Artistic GPL-2 )

*  www-servers/apache
      Latest version available: 2.2.15
      Latest version installed: 1.3.34-r11
      Size of files: 4,905 kB
      Homepage:      http://httpd.apache.org/
      Description:   The Apache Web Server.
      License:       Apache-2.0 Apache-1.1


What is the best step by step solution? Which one from the list are to unmerge or is there a update solution?

thx
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Mon Aug 09, 2010 1:55 pm    Post subject: Reply with quote

The best step-by-step guide is to reinstall. Because going by the information you provided the system hasn't been updated for about four to five years, and trying to do all that now would be pure pain while taking at least the same time as a reinstall (probably much longer).

Let me guess: You "inherited" this server as the guy who installed it originally is no longer at the company? And you're rather new to Gentoo in general? That would be another reason for a reinstall, as the "installation experience" is almost a requirement for using Gentoo.
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Mon Aug 09, 2010 2:03 pm    Post subject: Reply with quote

You nailed the point Genone,

Trying to fix the things not running here. MySQL service was not running same as a crushed apache service now. But I can't reinstall the whole system because some procs are running there.

If I got you right its best to unmerge all apache packages and use depclean followed from a new apache install. Indeed gentoo is kinda different to other distributions I used like open suse or red heat.

What packages from the apache info tree are required for a full running apache server system with mysql/perl support.

Big thx for your help and Iam glad I finally get contact to a gentoo veteran.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Mon Aug 09, 2010 2:25 pm    Post subject: Reply with quote

Craven66 wrote:
If I got you right its best to unmerge all apache packages and use depclean followed from a new apache install.

Well, the only apache package is www-servers/apache itself, the other installed stuff are only relevant for perl based websites, so there's no need to unmerge anything. The problem is that due to the age of the system you'll likely run into various other problem during an update attempt (I'm actually surprised you managed to update mysql).

Quote:
Indeed gentoo is kinda different to other distributions I used like open suse or red heat.

Hmm, never heard about Red heat ;) But yeah, the most important thing is that a Gentoo system really has to be updated regularly (at least every six months, preferably more often). The longer you leave it alone, the more difficult the next update will be, and anything that's been left alone for more than six months is simply unsupported in my book.

Quote:
What packages from the apache info tree are required for a full running apache server system with mysql/perl support.

Well, apache itself of course. As I always try to avoid perl as much as possible I can't give you any authorative information about perl support (and apache itself usually doesn't use mysql).

Quote:
Big thx for your help and I am glad I finally get contact to a gentoo veteran.

Well, the guys in the German thread would probably have told you the same if you would have given them the requested `emerge --info`.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 09, 2010 5:01 pm    Post subject: Reply with quote

You could create a new partition (if possible) and install a new Gentoo from old one ... if the kernel is not too old.
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Tue Aug 10, 2010 6:50 am    Post subject: Reply with quote

:D lol yeah it was really a typo.

I also added the emerge info later parallel in the german forum section.

The problem is that all pages and the cms here work with perl so I gotta use it. I just update the packages with a backup from configuration and cross my fingers.

And yeah was also kinda thinking about 4 years without update here lol.


@Jaglover:

Nice idea but my problem is the system got some hand configured not documented stuff. This option should be the last solution in my opinion.


Anyway thx for your time and help. You will hear if it doesn't work. :roll:
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Tue Aug 10, 2010 8:08 am    Post subject: Reply with quote

Ok this is the result after a emerge --sync and emerge www-servers/apache command. Any ideas whats the best thing to do? Simply unmerge maybe?

Code:

emerge www-servers/apache
Calculating dependencies... done!
[ebuild     U ] dev-libs/openssl-0.9.8o [0.9.8d] USE="-gmp% -kerberos%"
[ebuild  N    ] app-admin/apache-tools-2.2.15  USE="ssl"
[ebuild  NS   ] www-servers/apache-2.2.15 [1.3.34-r11] USE="ldap ssl -debug -doc (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker"
[blocks B     ] <www-servers/apache-2.2.4 ("<www-servers/apache-2.2.4" is blocking app-admin/apache-tools-2.2.15)
[blocks B     ] =www-servers/apache-1* ("=www-servers/apache-1*" is blocking www-servers/apache-2.2.15)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  ('installed', '/', 'www-servers/apache-1.3.34-r11', 'nomerge') pulled in by
    =www-servers/apache-1* required by ('installed', '/', 'net-www/mod_ssl-2.8.25-r10', 'nomerge')
    =www-servers/apache-1* required by ('installed', '/', 'www-apache/mod_perl-1.27-r4', 'nomerge')

  ('ebuild', '/', 'www-servers/apache-2.2.15', 'merge') pulled in by
    www-servers/apache
    www-servers/apache required by ('installed', '/', 'dev-perl/Apache-Test-1.15', 'nomerge')
    www-servers/apache required by world
    (and 2 more)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked


!!! The following installed packages are masked:
- sys-libs/ss-1.39 (masked by: package.mask)
/data/portage/profiles/package.mask:
# Mike Frysinger <vapier@gentoo.org> (07 Mar 2010)
# Very old packages that people should have upgraded away from
# long ago.  Courtesy mask ... time to upgrade.
# Added <sys-fs/e2fsprogs as well (halcy0n)

- sys-apps/baselayout-1.12.6 (masked by: profile)
- sys-devel/binutils-2.16.1-r3 (masked by: profile)
- sys-libs/com_err-1.39 (masked by: package.mask)
- sys-fs/e2fsprogs-1.39 (masked by: package.mask)
- x11-apps/ttmkfdir-3.0.9-r2 (masked by: package.mask)
/data/portage/profiles/package.mask:
# Rémi Cardona <remi@gentoo.org> (13 Dec 2009)
# ttmkfdir had multiple QA issues and bugs (bugs #209616, #235354 and #262945)
# xfs is completely useless, even on thin clients
# and xfsinfo is useless if xfs goes

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Tue Aug 10, 2010 11:53 am    Post subject: Reply with quote

Ok I reinstalled the new version of apache and then the perl modules. But then comes the crazy part after trying to start the apache script:

Code:

/etc/init.d/apache2 start
dbg:  >>> start()
 * Starting mysql ...
dbg:  >>> get_slot_config()
dbg:  srv                0
dbg:  srv_slot           0
dbg:  srv_num
dbg:  tmp_eval           mysql_slot_0[@]
dbg:  conf_d_parameters
dbg:  MY_SUFFIX
dbg:  chroot dir =>
dbg:  niceness   =>
dbg:  basedir    => /usr
dbg:  datadir    => /var/lib/mysql
dbg:  pidfile    => /var/run/mysqld/mysqld.pid
dbg:  socket     => /var/run/mysqld/mysqld.sock
dbg:  Unamanged  =>
dbg:  <<< get_slot_config() ok
dbg:  >>> checkconfig("/var/lib/mysql")
dbg:  <<< checkconfig() ok
 * Starting mysql (/etc/mysql/my.cnf)
dbg:  starting mysqld with: --defaults-file=/etc/mysql/my.cnf   --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock
/sbin/start-stop-daemon: stat /usr/mysql: No such file or directory (No such file or directory)
dbg:
dbg:
 * MySQL NOT started (2)
dbg:  <<< start()


But the apache script is the new one after the reinstall and there is no visible pointer to mysql script. How can this happen?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Tue Aug 10, 2010 5:15 pm    Post subject: Reply with quote

Does `/etc/init.d/mysql start` generate the same error?
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Wed Aug 11, 2010 6:43 am    Post subject: Reply with quote

Yes it does. But I solved it late yesterday. The old configuration init script was there after reinstall. So I deleted it and compiled new and now the service starts.

The problem is all old test/forum websites were located in apache dir and the new one only works with apache2.

Normally a simple copy of the old vhosts website configs etc should solve this. I hope it works then finally.
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Wed Aug 11, 2010 2:45 pm    Post subject: Reply with quote

Ok it doesn't fully work. :(

Code:

/etc/init.d/apache2 start
 * apache2 has detected an error in your setup:
Warning: DocumentRoot [/dev/null] does not exist
Syntax error on line 45 of /etc/apache2/vhosts.d/05_ticket.intranet.dmsb.de.conf:
Invalid command 'AuthLDAPURL', perhaps misspelled or defined by a module not included in the server configuration


The only installed ldap package is:

Code:

net-www/mod_auth_ldap
      Latest version installed: 2.4.2
      Homepage:
      Description:
      License:       as-is


And about the /dev/null error:

Code:

ls -la /dev/null
crw-rw-rw- 1 root root 1, 3 Aug 11 16:21 /dev/null


How can I solve these things.

thx in advance and best regards.
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Thu Aug 12, 2010 9:14 am    Post subject: Reply with quote

Ok I installed a new package and the other errors are gone:

Code:

/etc/init.d/apache2 start
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 111 of /etc/apache2/httpd.conf: Cannot load /usr/lib/apache2/modules/mod_ldap.so into server: libldap-2.2.so.7: cannot open shared object file: No such file or directory
/ # locate mod_ldap.so
/usr/lib/apache2/modules/mod_ldap.so
/ # locate libldap-2.2.so.7
/usr/lib/libldap-2.2.so.7
/usr/lib/libldap-2.2.so.7.0.21


thx for help.
Back to top
View user's profile Send private message
Craven66
n00b
n00b


Joined: 03 Aug 2010
Posts: 41

PostPosted: Mon Aug 16, 2010 8:33 am    Post subject: Reply with quote

OK this error is also solved.

But the apache2 service is still not starting:
Code:

/etc/init.d/apache2 start
 * Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName


but apache stop shows this:
Code:

# /etc/init.d/apache2 stop
 * Stopping apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName
httpd (no pid file) not running 


and indeed apache is not creating a pid file and the process doesn't really run. Because I can't see him in processlist with ps -A and he is not listening on port 80 controlled with netstat -ptl.

I appreciate your help thx.
Back to top
View user's profile Send private message
tuam
l33t
l33t


Joined: 04 May 2004
Posts: 765
Location: CGN, Germany

PostPosted: Wed Aug 18, 2010 11:32 am    Post subject: Reply with quote

Does it report anything in /var/log/apache2/error_log ?

FF,

Daniel
_________________
Logic clearly dictates that the needs of the many outweigh the needs of the few. - Spock
The needs of the one outweigh the needs of the many. - Kirk
I refuse to let arithmetic decide questions like that. - Picard
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
Location: Dallas area

PostPosted: Wed Aug 18, 2010 11:57 am    Post subject: Reply with quote

Craven66 wrote:

* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using * for ServerName


what does "hostname -f" return
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
rtomek
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 210
Location: Chicago

PostPosted: Mon Aug 23, 2010 6:02 pm    Post subject: Reply with quote

have you run etc-update?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum