• Resolved cocobel

    (@cocobel)


    Hi
    there is no way to use your pluggin to change php.ini

    i got this sentences, on the top of wordpress

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/4/d276499265/htdocs/clickandbuilds/mysitewp-content/plugins/custom-php-settings/admin/custom-php-settings.php:390) in /homepages/4/d276499265/htdocs/clickandbuilds/mysite/wp-admin/admin-header.php on line 9

    Warning: fopen(/homepages/4/d276499265/htdocs/clickandbuilds/Eurogestion/.user.ini): failed to open stream: Permission denied in /homepages/4/d276499265/htdocs/clickandbuilds/mysite/wp-content/plugins/custom-php-settings/admin/custom-php-settings.php on line 390

    user.ini has 744 permission, also try with 204

    but i get a green check saying Settings updated and stored in .user.ini.

    the user.ini is on the root of the site, and the .ini analisis says it is on /homepages/4/d276499298/htdocs/clickandbuilds/mysite/wp-admin/php.ini

    i also has php.ini on every root but none changes

    custom setting i try to change are
    post_max_size= 128M
    max_execution_time= 10000
    max_input_vars= 10000
    max_input_time= 400

    on a 1and1 server, php 7.3
    and their .ini txt is
    safe_mode=false;

    upload_max_filesize=67108864;

    post_max_size=67108864;

    memory_limit=268435456;

    extension_dir=/usr/lib/php7.0/extensions;

    zend_extension=/usr/lib/php7.0/extensions/opcache.so;

    opcache.enable=1;

    opcache.memory_consumption=32;

    opcache.interned_strings_buffer=8;

    opcache.max_accelerated_files=3000;

    opcache.revalidate_freq=180;

    opcache.fast_shutdown=0;

    opcache.enable_cli=0;

    opcache.revalidate_path=0;

    opcache.validate_timestamps=2;

    opcache.max_file_size=0;

    opcache.file_cache=/kunden/homepages/4/d2764992xx/htdocs/.opcache;

    opcache.file_cache_only=1;

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cyclonecode

    (@cyclonecode)

    Hello

    Currently only the ini file that is configured in you php.ini user_ini.filename directive (by default .user.ini) or the .htaccess file will be used. I am actually thinking of making an update for this, since some hosting companies are using custom filenames for user defined ini files like php.ini and so on.

    When you are saying “and the .ini analisis says it is on /homepages/4/d276499298/htdocs/clickandbuilds/mysite/wp-admin/php.ini” what kind of analysis is this? I mean where do you get this value?

    Regards,
    Krister

    Thread Starter cocobel

    (@cocobel)

    Hi
    I get this value from your own plugging

    I finally solved editing a php.ini and uploading it in every folder of the installation. I guess that the changes happens when changed the .ini on the wp.admin folder. By the way I changed all the .ini of my site

    regards

    Plugin Author cyclonecode

    (@cyclonecode)

    Hello again

    Ok, well then I will definitely add an update which also will add the customised settings in php.ini as well as the file specified in user_ini.filename in cases where PHP is running in CGI/FCGI mode.
    I will let you know when this update is in place.

    Regards,
    Krister

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘no allowed’ is closed to new replies.