session_start() permission issue

https://serverfault.com/questions/558641/aws-ec2-php-session-start-with-permission-denied

This is because the “Local value” overwrite “Master value” and point to a folder that users don’t have permission to write session related files.

  1. Change session.save_path value or uncomment the line in php.ini
    sudo nano /etc/php.ini
  2. Find and edit the config file
    /etc/httpd/conf.d/php.conf
  3. Restart apache
    sudo service httpd restart