Connect with us

جذاب

فعال کردن php7 در centos7 با nginx

Published

on

سلام دوستان یه سوال فنی داشتم

من برای نصب یه سری از ماژول های سایتم که بر پایه دروپال هست احتیاج به نصب دراش و کامپوزر داشتم که اون ها رو نصب کردم الان هم که دستور نصب ماژولهای مورد نیازم رو می زنم از فایل های ini که مال php هست ایراد می گیره خیلی هم تو سایت های خارجی گشتم که یه سری یا با نصب امکانات دیگه ای از php این مشکل رو حل کردند که تمامشون در سرور من هم نصب و فعال هستند و یه سری هم تو تنظیمات apache شون دست کاری می کنن که مال من nginx است و تنظیماتی که اون ها دارند رو من ندارم میشه من رو راهنمایی کنید چگوه می تونم این مشکل رو بر طرف کنم؟؟؟

نمونه دستور وارد شده

کد PHP:


composer drupal-update 




نمونه ارور دریافت شده

کد PHP:


Drupal\composer_manager\Composer\Command::update
Loading composer repositories with package information
Updating dependencies 
(including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    
easyrdf/easyrdf 0.9.x-dev requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.0-rc.5 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.0-rc.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.0-rc.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.0-rc.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.0-rc.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
easyrdf/easyrdf 0.9.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - 
Installation request for easyrdf/easyrdf 0.9.* -> satisfiable by easyrdf/easyrdf[0.9.00.9.0-rc.10.9.0-rc.20.9.0-rc.30.9.0-rc.40.9.0-rc.50.9.10.9.x-dev].

  To enable extensionsverify that they are enabled in those .ini files:
    - /
etc/php.ini
    
- /etc/php.d/bcmath.ini
    
- /etc/php.d/bz2.ini
    
- /etc/php.d/calendar.ini
    
- /etc/php.d/ctype.ini
    
- /etc/php.d/curl.ini
    
- /etc/php.d/dom.ini
    
- /etc/php.d/exif.ini
    
- /etc/php.d/fileinfo.ini
    
- /etc/php.d/ftp.ini
    
- /etc/php.d/gd.ini
    
- /etc/php.d/gettext.ini
    
- /etc/php.d/gmp.ini
    
- /etc/php.d/iconv.ini
    
- /etc/php.d/intl.ini
    
- /etc/php.d/json.ini
    
- /etc/php.d/mcrypt.ini
    
- /etc/php.d/mysqli.ini
    
- /etc/php.d/opcache.ini
    
- /etc/php.d/pdo.ini
    
- /etc/php.d/pdo_mysql.ini
    
- /etc/php.d/pdo_sqlite.ini
    
- /etc/php.d/phar.ini
    
- /etc/php.d/shmop.ini
    
- /etc/php.d/simplexml.ini
    
- /etc/php.d/sockets.ini
    
- /etc/php.d/sqlite3.ini
    
- /etc/php.d/tokenizer.ini
    
- /etc/php.d/xml.ini
    
- /etc/php.d/xml_wddx.ini
    
- /etc/php.d/xmlreader.ini
    
- /etc/php.d/xmlwriter.ini
    
- /etc/php.d/xsl.ini
    
- /etc/php.d/zip.ini
  You can also run 
`php --iniinside terminal to see which files are used by PHP in CLI mode




ارادتمند وحید

Continue Reading