我应该在哪里以及如何设置LD_LIBRARY_PATH为 apache 可见?
我尝试将以下代码添加到.bash_profile:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/folder_with_library/
export LD_LIBRARY_PATH
Run Code Online (Sandbox Code Playgroud)
我重新启动了 apache,但phpinfo()仍然看到错误,因此库尚未加载。
它正在为命令工作:echo $LD_LIBRARY_PATH。
任何帮助如何设置此路径?
我需要在 VPS 服务器上设置它 - os 是 linux red-hat。
/etc/init.d/httpd 文件内容:
#!/bin/bash
#
# Startup script for the Apache Web Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# processname: httpd
# pidfile: /var/run/httpd.pid
# config: /etc/httpd/conf/access.conf
# config: /etc/httpd/conf/httpd.conf
# config: …Run Code Online (Sandbox Code Playgroud)