Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM Issues with installing php/updating and mcrypt.h not found.

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by derpyhooves, Oct 25, 2014.

  1. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    Last edited: Oct 25, 2014
  2. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    problem is libmcrypt YUM package failed to install due to EPEL YUM repo failure to install or download issue

    Code:
    ----------------------------------------------------------------------------------
    *************************************************
    [1;32;40m* CentOS 6.x detected installing EPEL Repo
    (B[m*************************************************
    Error: epel-release-6-8.noarch.rpm not found !!! Download now......
    2014-10-25 09:30:52 URL:http://epel.mirror.constant.com/6/x86_64/epel-release-6-8.noarch.rpm [14540/14540] -> "epel-release-6-8.noarch.rpm" [1]
    [1;33;40mDownload done.
    (B[mError: Cannot retrieve metalink for repository: epel. Please verify its path and try again
    [1;32;40mError: problem with epel-release-6-8.noarch.rpm install.
    Code:
    Processing package: libmcrypt
    Error: No matching Packages to list
    ----------------------------------------------------------------------------------
    [1;33;40mInstalling libmcrypt
    (B[m----------------------------------------------------------------------------------
    Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
    ----------------------------------------------------------------------------------
    could be temporarily EPEL mirror download issue which cascaded to prevent EPEL YUM repo install, thus preventing libmcrypt and thus PHP compile/install failed.

    what happens when you manually try to download via wget on your server the EPEL RPM file http://epel.mirror.constant.com/6/x86_64/epel-release-6-8.noarch.rpm ? I confirmed I can download from that url

    I'd do a fresh CentOS 6.5 64bit OS reload and try again initial install
     
  3. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    So a fresh 6.5 install, then wget the epel rpm file and then re-do the centminmod install?
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    fresh install and redo install - no need to wget get as EPEL failed download might have been a one off thing
     
  5. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    Managed to get it to work, had to wget as well cause I tried several times and the EPEL failed download always showed up. Now everything seems to be working fine. I enabled all the caching options and such on my xenforo install as well as did the SEO friendly url thing, is there anything else I need to configure? Such as the caches themselves or would how it is right now be enough?
    RLPV Test forum
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
  7. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    hmm i am not finding constant.com mirror in EPEL's active mirror listing anymore so might need to change the url

    edit: updated both .07 stable and .08 beta builds with updated EPEL download urls. Centmin Mod .08 beta updated the EPEL dynamic mirror check feature extending it to CentOS 5 and 6 as well as CentOS 7.

    .07 stable commit update inc/downloadlinks.inc EPEL 5 & 6 mirror download changes for .07 ... · ba7178b · centminmod/centminmod · GitHub
    .08 beta commit update inc/downloadlinks.inc EPEL 5, 6, 7 dynamic mirror override · 72abd95 · centminmod/centminmod · GitHub
     
    Last edited: Oct 26, 2014
    • Like Like x 1
  8. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    Excuse my stupidity, but how would I visit those links from my webbrowser exactly?
     
  9. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    as outlined at PHP Opcode and Memcached statistics pages | Centmin Mod Community

     
  10. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
  11. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
  12. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
  13. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    looks good to me :)
     
  14. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    Alright, waiting for the dns to update then. I'm asking cause I have another main forum that's running on centminmod but it wasn't set up by me, when I try to check the cache stats there using my server name followed by the domain name etc it's not showing up either, not sure if he actually configured that record. But yeah, thank you so much for all your help, i'm sorry for being such a bother!
     
  15. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    you're welcome.. everyone learns by asking :)

    Just pay it forward with assistance and help to other new Centmin Mod users on the forums once you're more familiar with Centmin Mod :D ;)
     
    • Like Like x 1
  16. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    I will surely do that! i'm glad that I was able to help somewhat with the whole epel issue that's going on, sounds like I wasn't the only one.
     
    • Like Like x 1
  17. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    Alright one more issue, not all caches show up (as in, the files are not in the ftp.)

    memcache works.
    xcache works.
    Apc gives me this issue: No cache info available. APC does not appear to be running.
    Zend OPcache is not there.

    Does this mean that APC and zend Opcache are currently not being used by my xenforo?
    This is my xenforo config:

    $config['superAdmins'] = '1'; #$config['cache']['enabled'] = true; #$config[ - Pastebin.com

    I'm also unsure of what I need to look at on those cache pages to see what needs tweaking.
     
  18. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    what does output of SSH command output below ?
    Code:
    php --ri apc
    if APC Cache is installed should output
    Code:
     php --ri apc
    
    apc
    
    APC Support => enabled
    Version => 3.1.13
    APC Debugging => Disabled
    MMAP Support => Enabled
    MMAP File Mask =>
    Locking type => pthread mutex Locks
    Serialization Support => php, igbinary
    Revision => $Revision: 327136 $
    Build Date => Oct 26 2014 02:08:08
    
    Directive => Local Value => Master Value
    apc.enabled => On => On
    apc.shm_segments => 1 => 1
    apc.shm_size => 32M => 32M
    apc.shm_strings_buffer => 4M => 4M
    apc.include_once_override => Off => Off
    apc.num_files_hint => 4096 => 4096
    apc.user_entries_hint => 4096 => 4096
    apc.gc_ttl => 3600 => 3600
    apc.ttl => 7200 => 7200
    apc.user_ttl => 7200 => 7200
    apc.mmap_file_mask => no value => no value
    apc.filters => no value => no value
    apc.cache_by_default => On => On
    apc.file_update_protection => 2 => 2
    apc.enable_cli => On => On
    apc.max_file_size => 1M => 1M
    apc.stat => On => On
    apc.canonicalize => On => On
    apc.stat_ctime => Off => Off
    apc.write_lock => On => On
    apc.slam_defense => Off => Off
    apc.report_autofilter => Off => Off
    apc.rfc1867 => Off => Off
    apc.rfc1867_prefix => upload_ => upload_
    apc.rfc1867_name => APC_UPLOAD_PROGRESS => APC_UPLOAD_PROGRESS
    apc.rfc1867_freq => 0 => 0
    apc.rfc1867_ttl => 3600 => 3600
    apc.coredump_unmap => Off => Off
    apc.preload_path => no value => no value
    apc.file_md5 => Off => Off
    apc.use_request_time => On => On
    apc.lazy_functions => Off => Off
    apc.lazy_classes => Off => Off
    apc.serializer => igbinary => igbinary
    if not, then APC Cache failed to install, so run centmin.sh and select menu option 7 to reinstall APC Cache and check again to see if APC Cache is installed

    As to knowing what to look for and optimisation and tuning of caches, you're on your own there as Centmin Mod is provided as is. So google-fu for tuning tips ;) However, other members are free to offer suggestions and tips if they want
     
  19. derpyhooves

    derpyhooves New Member

    22
    3
    3
    Oct 25, 2014
    Ratings:
    +3
    Local Time:
    11:52 PM
    Wasn't installed, now it is. Though the file still isn't showing on the ftp, do I need to restart something?

    It's also showing this error:

    PHP Warning: Cannot load module 'XCache' because conflicting module 'apc' is already loaded in U nknown on line 0
     
  20. eva2000

    eva2000 Administrator Staff Member

    28,935
    6,568
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,748
    Local Time:
    11:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    where you looking in ftp ? the file is usually at /usr/local/nginx/html

    if it didn't show up, try centmin.sh menu option 9 to install APC Cache it should populate the missing apc.php file

    menu option 9 in centmin.sh should take care of both errors