Title: PHP Error &#8211; Warning: session_start()
Last modified: August 31, 2016

---

# PHP Error – Warning: session_start()

 *  Resolved [Norman Höhne](https://wordpress.org/support/users/reeve/)
 * (@reeve)
 * [10 years ago](https://wordpress.org/support/topic/php-error-warning-session_start/)
 * Due to an hacked website I am installing the site from the scratch up.
 * I changed from PHP 5.5 Apache Modul to 5.6.21-nmm1 FPM-FCGI. After a fresh WordPress-
   Install I hardened the website with .htaccess in root, wp-content and uploads.
 * The next step was installing ninja firewall but I get following error message
   after activating it:
 * > Warning: session_start(): open(/tmp/sess_LONGNUMBERHERE, O_RDWR) failed: Permission
   > denied (13) in /public_html/wp-content/plugins/ninjafirewall/ninjafirewall.
   > php on line 49
   > Warning: session_start(): Cannot send session cache limiter – headers already
   > sent (output started at /public_html/wp-content/plugins/ninjafirewall/ninjafirewall.
   > php:49) in /public_html/wp-content/plugins/ninjafirewall/ninjafirewall.php 
   > on line 49
 * Here some more infos from your troubleshooter:
 * > auto_prepend_file: none
   >  NinjaFirewall detection: NinjaFirewall is not loaded
   > Loaded INI file: /etc/php56/fpm/php.ini
   >  user_ini.filename: .user.ini user_ini.
   > cache_ttl: 300 seconds User PHP INI: none found
 * The message is shown on every site in the backend as well as in the front end.
   What could that be? I already used your Ninja Firewall in FPM-FCGI on this server.
 * Kind regards
    -reeve
 * [https://wordpress.org/plugins/ninjafirewall/](https://wordpress.org/plugins/ninjafirewall/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Norman Höhne](https://wordpress.org/support/users/reeve/)
 * (@reeve)
 * [10 years ago](https://wordpress.org/support/topic/php-error-warning-session_start/#post-7420258)
 * Regarding the hardeing of my website: With .htaccess in root I’m denying acces
   to wp-config, readme.html, .htaccess, wp-includes and with another .htaccess 
   files in wp-content and uploads I am denying php execution.
 * When I switch back to apache 5.5 the error message is gone. Do you have an idea
   how I can use the 5.6 FCGI with your firewall? Or what can I ask to my server
   host to change so that it works?
 * Kind regards
    -reeve
 * [https://wordpress.org/plugins/ninjafirewall/](https://wordpress.org/plugins/ninjafirewall/)
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years ago](https://wordpress.org/support/topic/php-error-warning-session_start/#post-7420302)
 * Hi,
 * > Warning: session_start(): open(/tmp/sess_LONGNUMBERHERE, O_RDWR) failed: Permission
   > denied (13) in /public_html/wp-content/plugins/ninjafirewall/ninjafirewall.
   > php on line 49
 * This error means that PHP cannot write the session file to the ‘/tmp/’ folder.
   Make sure it is writable to PHP.
 *  Thread Starter [Norman Höhne](https://wordpress.org/support/users/reeve/)
 * (@reeve)
 * [10 years ago](https://wordpress.org/support/topic/php-error-warning-session_start/#post-7420330)
 * How stupid.
 * I just called the support and the solution was very easy -> Erasing the browser
   cache.
 * The browser still had the old session in the cache though I installed everything
   new from the scratch up.
 * Thanks for your answer! You are doing a good job.
 * Kind regards
    -reeve
 *  [aegnorway](https://wordpress.org/support/users/aegnorway/)
 * (@aegnorway)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-warning-session_start/#post-8674662)
 * What happened here?
 * Warning: session_start(): Cannot send session cache limiter – headers already
   sent (output started at /home/stotteha/public_html/wp-content/plugins/stottehandel-
   affiliate-integration/stottehandel-affiliate-integration.php:1) in /home/stotteha/
   public_html/wp-content/plugins/woocommerce-viral-coupon/woocommerce-viral-coupon.
   php on line 12

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Error – Warning: session_start()’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

## Tags

 * [session_start](https://wordpress.org/support/topic-tag/session_start/)

 * 4 replies
 * 3 participants
 * Last reply from: [aegnorway](https://wordpress.org/support/users/aegnorway/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-error-warning-session_start/#post-8674662)
 * Status: resolved