WebFaction
Community site: login faq

I am having issues restarting apache2. Here is the error I am getting:

[mediae@web507 bin]$ ./restart
/home/mediae/webapps/mediae_sms/apache2/bin/httpd.worker: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

asked 26 Jan '16, 11:38

samdasoxide
1315
accept rate: 0%

edited 26 Jan '16, 11:39


Did you perhaps copy your "mediae_sms" application from a CentOS6 server to a CentOS7 server? If you did that, and overwrote your CentOS7 httpd binaries, then that could cause that error.

The solution is to create a new app of the same type as your "mediae_sms" application, then copy the apache2/bin/httpd and apache2/bin/httpd.worker binaries from the new app into mediae_sms/apache2/bin.

Hope that helps!

permanent link

answered 26 Jan '16, 17:24

seanf
12.2k42136
accept rate: 37%

1

Thanks a lot it restarts OK.

Yes a sever migration was done from CentOS6 server to CentOS7 server. Other apps work fine but looks like this wasn't migrated properly.

I also had to copy the apache2/modules/ folder from the new app into mediae_sms/apache2/ for it to work properly since I was still getting errors trying to restart after copying the two binaries (apache2/bin/httpd and apache2/bin/httpd.worker)

(27 Jan '16, 12:28) samdasoxide
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×25

question asked: 26 Jan '16, 11:38

question was seen: 6,126 times

last updated: 27 Jan '16, 12:29

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM