Apache apachectl-k start error while loading shared libraries: libpcre.so.1:
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache apachectl-k start error while loading shared libraries: libpcre.so.1:
Running into an issue with an apache/php installation.
Redhat 6.5 Apache 2.4 PHP 5.6
Installed apache in a non-standard installation(did not use yum install httpd). I did so by: -placing the apache zip onto the server -./configure --prefix=/usr/dir/.... make make install
After this apache started and I was able to hit it on a browser. I then stopped apache to install php.
installed PHP and its dependencies which included: libxml2 python
then I ran ./configure --prefix=/usr/dir/util/php --with-libxml-dir=/usr/dir/uti/util/libxml2/ --with-apxs2=/usr/dir/uti/apache/bin/apxs
then I configured apache httpd.conf with LoadModule php5_module modules/libphp5.so
When I attempted to start apache I received the following error message
/httpd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
Running into an issue with an apache/php installation.
No, unfortunately your issue started before that. Because when you want to use RHEL you should use it like it should be used. Those Best Practices include not installing software from source. Unless you know what you are doing and will bear the consequences responsibly. Else you could use CentOS with the RPMForge, EPEL and other (relatively trustworthy wrt Quality Assurance) 3rd party repos.
*This may not be the answer you would have liked to read but without further explanation it certainly is the most suitable answer.
No, unfortunately your issue started before that. Because when you want to use RHEL you should use it like it should be used. Those Best Practices include not installing software from source. Unless you know what you are doing and will bear the consequences responsibly. Else you could use CentOS with the RPMForge, EPEL and other (relatively trustworthy wrt Quality Assurance) 3rd party repos.
*This may not be the answer you would have liked to read but without further explanation it certainly is the most suitable answer.
Unfortunately I cannot have root access to this environment, so using the standard yum install httpd will not work.
You might need to add a LD_LIBRARY_PATH to the environment used for apache for the location of libpcre.so.1, or install it.
I apologize if this question is basic.. I assume the pcre library is found in the 'pear compatible regular expressions' which I installed into a directory /usr/util. Where would I reference this libpcre.so file?
Unfortunately I cannot have root access to this environment, so using the standard yum install httpd will not work.
If you aren't allowed root access to install software then you should ask responsible personnel to install software for you. If that's out of the question then know you may not even be able to run any service in a decent way anyway depending on the security posture of the machine. Should you remain adamant you should pursue this anyway then please explain why in detail. Maybe there's another way to do what you want.
So. Have you actually asked responsible personnel to install software for you?
Because else you may not even be able to run your self compiled software properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.