简体   繁体   English

如何在 cpanel 中安装/启用 php-exif

[英]How to install/enable php-exif in cpanel

According to this link and this answer I have to configure PHP with --enable-exif and add extension, but the problem is I don't know how to configure PHP with --enable-exif and I cannot find the way to edit php.ini to add extension=exif.so根据此链接和此答案,我必须configure PHP with --enable-exif并添加扩展名,但问题是我不知道如何configure PHP with --enable-exif而且我找不到编辑php.ini添加extension=exif.so

I don't have WHM credentials and cannot access EasyApache, I only have cpanel user login with limited access..我没有 WHM 凭据并且无法访问 EasyApache,我只有访问受限的 cpanel 用户登录..

My php version我的php版本

[user@server ~]$ /opt/cpanel/ea-php73/root/bin/php -v
PHP 7.3.18 (cli) (built: May 21 2020 03:33:34) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.18, Copyright (c) 1999-2018, by Zend Technologies

Is there a way to enable php-exif or should I ask my ISP/Administrator?有没有办法启用 php-exif 或者我应该问我的 ISP/管理员?

It seems you don't have full WHM access.您似乎没有完整的 WHM 访问权限。
Php EXIF is generally enabled on most of the servers. Php EXIF 通常在大多数服务器上启用。
To check if you have EXIF enabled create a PHP file in your cPanel file manager and paste this code in that file:要检查是否启用了 EXIF,请在 cPanel 文件管理器中创建一个 PHP 文件并将此代码粘贴到该文件中:

<?php phpinfo(); ?>

then visit that page.然后访问该页面。
It will show all PHP information.它将显示所有 PHP 信息。 Search for EXIF there.在那里搜索 EXIF。
If it is disabled then ask your server administrator to enable that for you.如果它被禁用,那么请您的服务器管理员为您启用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM