AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-157257

Kal's questions

Martin Hope
Kal
Asked: 2015-11-07 02:33:54 +0800 CST

Dockerfile php-fpm unmet 依赖

  • 1

我有一个 Dockerfile,可以在其中为 php-fpm 构建一个容器。我拉入了我的基本 ubuntu 映像,它开始工作,但在尝试安装 php-fpm 和 php5-intl 时由于未满足的依赖关系而退出。

任何人都可以检查我的文件并发现任何明显的东西吗:)

FROM phalcon/ubuntu

MAINTAINER bob <[email protected]>

RUN echo "deb http://archive.ubuntu.com/ubuntu/ vivid universe" >> /etc/apt/sources.list

# Install software requirements
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:ondrej/php5 && \
add-apt-repository -y ppa:nginx/stable && \
apt-get update -y --force-yes && \
apt-get upgrade -y --force-yes && \
BUILD_PACKAGES="supervisor php5-fpm git php5-mysql php5-curl php5-gd php5-intl php5-mcrypt php5-memcache php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-pgsql php5-mongo php5-dev pwgen" && \
apt-get -y --force-yes install $BUILD_PACKAGES && \
apt-get remove --purge -y software-properties-common && \
apt-get autoremove -y && \
apt-get clean && \
apt-get autoclean

# Add PHP config.
ADD php-fpm.conf /etc/php-fpm.conf

# Define mountable directories.
VOLUME ["/etc/php-fpm.d", "/var/log/php-fpm", "/srv/http"]

# Define entrypoint.
ENTRYPOINT ["php-fpm"]

# Expose ports.
EXPOSE 9000

在此处输入图像描述

docker
  • 1 个回答
  • 122 Views
Martin Hope
Kal
Asked: 2013-05-12 04:35:27 +0800 CST

CentOS 6.4 PHP MCrypt

  • 0

我正在尝试php-mcrypt为我的 CentOs 6.4 服务器安装扩展,但它因以下消息而失败:

[root@vps /]# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.vooservers.com
 * epel: mirror01.th.ifl.net
 * epel-debuginfo: mirror01.th.ifl.net
 * epel-source: mirror01.th.ifl.net
 * extras: mirrors.vooservers.com
 * updates: mirrors.vooservers.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.i386 0:5.1.6-5.el5 will be installed
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-5.el5.i386
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt-5.1.6-5.el5.i386
--> Running transaction check
---> Package libmcrypt.i386 0:2.5.7-5.el5 will be installed
---> Package php-mcrypt.i386 0:5.1.6-5.el5 will be installed
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-5.el5.i386
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.1.6-5.el5.i386 (epel)
           Requires: php-api = 20041225
           Installed: php-common-5.3.3-22.el6.i686 (@base)
               php-api = 20090626
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我已经(据我所知)正确安装了 repos 这里是我的 epel.repo 文件:

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

还有我的回复:

repo id          repo name                                                status
base             CentOS-6 - Base                                          4,802
epel             Extra Packages for Enterprise Linux 6 - i386             5,931
epel-debuginfo   Extra Packages for Enterprise Linux 6 - i386 - Debug     1,816
epel-source      Extra Packages for Enterprise Linux 6 - i386 - Source        0
extras           CentOS-6 - Extras                                           12
updates          CentOS-6 - Updates                                         481
repolist: 13,042

我什至安装了 remi,但我似乎无法为 ZF2 安装 php-mcrypt 扩展。出于某种原因,它似乎正在从el5回购协议中撤出,即使我所有的回购协议都是el6?

有人知道发生了什么事吗?

谢谢

弥敦道

centos
  • 1 个回答
  • 2347 Views
Martin Hope
Kal
Asked: 2013-05-09 07:30:57 +0800 CST

虚拟主机仅适用于 2/4 目录?

  • 0

我正在运行 CentOS 6.2,我在 httpd.conf 中有以下内容:

<VirtualHost *:80>
    ServerAdmin [email protected]
     DocumentRoot /var/www/html/example.co.uk/public
    ServerName example.co.uk
    ErrorLog logs/example.co.uk-error_log
    CustomLog logs/example.co.uk-access_log common
</VirtualHost>
#user1 directory
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /home/user1/public_html    
    ServerName user1.example.co.uk
    ServerAlias www.example.co.uk
    ErrorLog logs/error_log
    CustomLog logs/user1-access_log common
</VirtualHost>
#user2 directory
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /home/user2/public_html
    ServerName user2.example.co.uk
    ServerAlias www.example.co.uk
    ErrorLog logs/error_log
    CustomLog logs/user2-access_log common
</VirtualHost>
#user3 directory
<VirtualHost *:80>
    ServerAdmin [email protected]
     DocumentRoot /home/user3/public_html
    ServerName user3.example.co.uk
    ServerAlias www.example.co.uk
    ErrorLog logs/user3-error_log
    CustomLog logs/access_log common
</VirtualHost>

ServerName example.co.uk这些目录确实存在,当我导航到但看不到 user1 和 user3 时,我能够看到主虚拟主机 ()http//exmaple.co.uk和http://user2.exmaple.co.ukuser2 。谁能发现任何错误?

更新 Apche 错误日志:

PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_oci.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed May 08 15:45:42 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.4.14 configured -- resuming normal operations
[Wed May 08 15:48:02 2013] [notice] caught SIGTERM, shutting down
[Wed May 08 15:48:03 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 08 15:48:03 2013] [notice] Digest: generating secret for digest authentication ...
[Wed May 08 15:48:03 2013] [notice] Digest: done
PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pdo_oci.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed May 08 15:48:03 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.4.14 configured -- resuming normal operations

在此处输入图像描述

同样的错误一遍又一遍,但 user2 子域工作正常?我只将 ServerAlia 保留在指向我的 www 文件夹的主服务器上。斯托坏了?:(

centos
  • 1 个回答
  • 143 Views
Martin Hope
Kal
Asked: 2013-02-03 02:35:44 +0800 CST

共享主机,阻止用户删除 .htm 文件?

  • 0

大家好,我为朋友们设置了一个小型共享主机。

我已将文件 chmod 权限设置为

chmod 711 /home
chmod 711 /home/testuser
chmod 755 /home/testuser/public_html
chmod o+r /home/testuser/public_html/index.htm

如何阻止连接到他们自己的 ftp 的用户删除 html.htm 文件以及公共目录设置为 chmod 755 我发现他们无法在目录中执行任何操作,例如上传/删除?

补充资料:我跑了

setsebool -P httpd_enable_homedirs true
chcon -R -t httpd_sys_content_t /home/testuser/public_html

但没有效果?

shared-hosting
  • 1 个回答
  • 80 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve