Skip to main content

Errors when changing PHP version in MultiPHP Manager

Comments

9 comments

  • vacancy
    Have you checked the ownership of your .htaccess file?
    0
  • Anoop P Alias
    It writes to your .htaccess and from the error, the script is failing to set the 0644 permission on that file. Check file attributes : lsattr /path/to/.htaccess
    0
  • Chris1904
    Thanks for the responses: lsattr .htaccess results in -------------e-- .htaccess Thanks for any help!
    0
  • Anoop P Alias
    attributes are fine. e is normal . you need to check permission.Also, ensure the filesystem is writeable
    0
  • cPanelMichael
    Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/home/clooudtv/httpdocs/public/.htaccess", "permissions", 420, "restore_original_permissions", 1) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 188

    Hello, It looks like you are using a custom document root for the domain name. Could you confirm if the .htaccess file exists under that path, and if so, what the ownership values are set to? For example, based on the error message, the command you'd use is:
    stat /home/$username/httpdocs/public/.htaccess
    Thank you.
    0
  • jacobc
    I had this problem. The issue was .htaccess had root as owner instead of the user account. Correcting the owner solved the problem. chown your_user_account:your_user_account .htaccess
    0
  • pimpi
    this issue was making me crazy finally i solved it by using chown -R youruser:youruser /home/youruser/public_html change youruser with your website username i hope it can help people it sure helped me cuz even the htaccess was not working
    0
  • Takito
    I had a similar problem, but I tried to change PHP version through cpanel and WHM and no luck. My PHP version was 7.3 and I need to change it to 7.4. I wasn't able to find a solution but people on here mentioned .htaccess, so I looked into it and found this code
    php_flag display_errors On php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 512M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php72" php_value upload_max_filesize 25M php_flag zlib.output_compression On
    it looked strange to me that the path is php72, so I changed it to 73 and everything worked o_O Hope it will help someone P.S. I'm using Cloudlinux
    0
  • Tigggger
    this issue was making me crazy finally i solved it by using chown -R youruser:youruser /home/youruser/public_html change youruser with your website username i hope it can help people it sure helped me cuz even the htaccess was not working

    Thanks for curing my issue. While trying to go from 7.2 to 8.1 and installing composer at the same time, I ran into a lot of permission problems with composer, during the course of fixing that and getting it to work I managed to mess up all my public_html stuff so I was getting this error. I ended up at this CPanel Article which was a bit misleading as it says user and username implying to me that there were 2 different ones needed when it was just youruser for all 3.
    0

Please sign in to leave a comment.