Discover Centmin Mod today
Register Now

Install Install a PHP script using centminmod

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Venucci, Jul 4, 2020.

  1. Venucci

    Venucci Member

    74
    8
    8
    Sep 25, 2018
    Ratings:
    +8
    Local Time:
    6:56 AM
    currentyl
    10
    I wish to install a php script and i wish to know if it is compatible with centminmod . I mean somehow install it using at server level centminmod ? Is that possible somehow?

    What is requiered for the php script is the next

    • PHP 5.6.4+ (PHP 7.1+ recommended)
    • MySQL 5.1+
    • mod_rewrite Apache
    • MySQLi PHP Extension
    • PDO PHP Extension
    • cURL PHP Extension
    • OpenSSL PHP Extension
    • MBString PHP Extension
    • iconv PHP Extension
    • IMAP PHP Extension
    • GD PHP Extension
    • Zip PHP Extension
    • allow_url_fopen enabled

     
  2. eva2000

    eva2000 Administrator Staff Member

    44,804
    10,216
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,834
    Local Time:
    2:56 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    do a test install on test Centmin Mod server and see

    but mod_rewrite Apache isn't supported in Nginx so you need to convert .htaccess to Nginx rewrite rules and you'd need to ask PHP developer for Nginx rewrite rules or if Nginx is supported.

    php extension wise you can see if it's all supported via phpinfo output and php extension loaded output
    Code (Text):
    php -m
     
  3. Venucci

    Venucci Member

    74
    8
    8
    Sep 25, 2018
    Ratings:
    +8
    Local Time:
    6:56 AM
    currentyl
    10
    1) thanks i have a problem i have all the php without one ( php fileinfo) but after running the php (
    php -m) and after running the (
    yum search php- ) does not appear into the list of php modules that could be downloaded and updated

    I have run this one and it appears that this php module is disabled

    --disable-fileinfo

    I need the php fileinfo working . How can i activate it ? Is disabled for security reasons ? Thanks @eva2000

    I have enough memory and swap

    2) How can i check and edit the php.ini ? I have tried some commands without success
     
    Last edited: Jul 16, 2020
  4. pdinh97qng

    pdinh97qng Member

    90
    10
    8
    Jan 24, 2016
    Ratings:
    +27
    Local Time:
    9:56 PM
    Adding to /etc/centminmod/custom_config.inc
    Code:
    PHPFINFO='y'
    Then compile PHP via option 5 in Centmin Mod menu.
     
  5. Venucci

    Venucci Member

    74
    8
    8
    Sep 25, 2018
    Ratings:
    +8
    Local Time:
    6:56 AM
    currentyl
    10
    Great thank you ! Done succesfully ;) And what about the next question. How to modify the php.ini with that information or higher ? It could be created a side effect of modifying the php.ini ? thanks . THe suggestion is to use a shared hosting but i wish to use my vps with centminmod so i am not sure which parameters are not needed to be done on my VPS. may be some are done by the hosting company to controll the resources. I am using a VPS with 2vCPU and 2 RAM .It is not would be used for heavy files like videos etc. only photos and text . thanks
    from php.ini this parameters are important:

    * upload_max_filesize = 128M ( i have 320M )
    * post_max_size = 128M ( I have 320M)
    * max_execution_time = 5000 ( i have 60)
    * max_input_time = 2000 ( i do not have it )
    * memory_limit = 512M ( i do not have it )
    * max_input_nesting_level = 128 ( i have it at 128)
    * max_input_vars = 10000 ( i have it at 10000)
    * output_buffering = 4096 ( i do not have it )

    ----------------------------------------------------------------------------
    the mine php.ini right now looks like that
    max_exectution_time=60
    short open tag = On
    real path cache size = 1536K
    real path cache ttl = 28800
    upload max file size = 320M
    post max size = 320 M
    expose php = off
    mail add x header = off
    max input nesting level = 128
    max input vars = 10000

    I am using 2vCPU , 2 RAM
     
    Last edited: Jul 16, 2020
  6. David Schargel

    David Schargel New Member

    7
    4
    3
    Feb 2, 2020
    Ratings:
    +7
    Local Time:
    9:56 PM
  7. Venucci

    Venucci Member

    74
    8
    8
    Sep 25, 2018
    Ratings:
    +8
    Local Time:
    6:56 AM
    currentyl
    10
    thanks i would do in the case that is needed . I mean if is needed for a vps and not only useful for webhosting shared hosting.