Page 1 of 1

session_start() na verhuizing nieuwe hoster

Posted: Tue Feb 12, 2019 12:58 pm
by Rutger1973
Hi all

I have just move a website to a new hoster. Copied DB and website and the site mentioned that there is an error. Log files indicate:

FastCGI: server "/var/run/php72-cgi/php-cgi" stderr: PHP message: PHP Warning: session_start(): Failed to read session data: user (path: /sites/denniswels.com/tmp/) in /www/libraries/joomla/session/handler/native.php on line 260

The only issue I saw was that the DB prefix was not the same. I changed the prefix in the conf file according to the prefix in the DB but still an error. I furthermore changed the path of the tmp and log folders and the new DB credentials in the conf file.

Help please....? Thanks

I installed FPA and result:
Forum Post Assistant (v1.4.8 (koine)) : 12th February 2019 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.8.13-Stable (Amani) 9-October-2018
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Writable (644) | Owner: --protected-- . (uid: /gid: ) | Group: --protected-- (gid: ) | Valid For: 3.8
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.8.13: Yes | Database Supports J! 3.8.13: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 4.9.120-jessie1.0 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 9.49 GiB |

PHP Configuration :: Version: 7.1.26 | PHP API: fpm-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 24567 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: /sites/denniswels.com/www/:/sites/denniswels.com/www/:/sites/denniswels.com/subdomains/:/sites/denniswels.com/private/:/sites/denniswels.com/logs/:/sites/denniswels.com/backups/:/sites/denniswels.com/lib/php_include/cacert.pem:/sites/denniswels.com/tmp/:/tmp/ | Uploads: 1 | Max. Upload Size: 128M | Max. POST Size: 128M | Max. Input Time: 60 | Max. Execution Time: 120 | Memory Limit: 256M

Database Configuration :: Version: 5.5.5-10.1.37-MariaDB-1~jessie (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $) | Host: --protected-- (--protected--) | default Collation: latin1_swedish_ci (default Character Set: latin1) | Database Size: 2.70 MiB | #of Tables:  79
Detailed Environment :: wrote:PHP Extensions :: Core (7.1.26) | tip_wh ( on Thu Jan 10 12:06:51 UTC 2019) | date (7.1.26) | libxml (7.1.26) | pcre (7.1.26) | zlib (7.1.26) | calendar (7.1.26) | filter (7.1.26) | hash (1.0) | Reflection (7.1.26) | SPL (7.1.26) | session (7.1.26) | standard (7.1.26) | cgi-fcgi () | bcmath (7.1.26) | bz2 (7.1.26) | ctype (7.1.26) | curl (7.1.26) | dom (20031129) | mbstring (7.1.26) | fileinfo (1.0.5) | gd (7.1.26) | gettext (7.1.26) | iconv (7.1.26) | imap (7.1.26) | intl (1.1.0) | json (1.5.0) | exif (7.1.26) | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $) | openssl (7.1.26) | PDO (7.1.26) | pdo_mysql (7.1.26) | pdo_sqlite (7.1.26) | Phar (2.0.2) | posix (7.1.26) | pspell (7.1.26) | mysqli (7.1.26) | SimpleXML (7.1.26) | soap (7.1.26) | sockets (7.1.26) | sqlite3 (7.1.26) | tidy (7.1.26) | tokenizer (7.1.26) | xml (7.1.26) | xmlreader (7.1.26) | xmlwriter (7.1.26) | xsl (7.1.26) | zip (1.13.5) | ftp (7.1.26) | Zend OPcache (7.1.26) | Zend Engine (3.1.0) |
Potential Missing Extensions ::
Disabled Functions :: apache_child_terminate | apache_get_modules | apache_note | apache_setenv | dl | exec | passthru | shell_exec | system | proc_close | proc_get_status | proc_nice | proc_open | proc_terminate | popen | pclose | virtual | set_time_limit | posix_access | posix_ctermid | posix_get_last_error | posix_getcwd | posix_getegid | posix_geteuid | posix_getgid | posix_getgrgid | posix_getgrnam | posix_getgroups | posix_getlogin | posix_getpgid | posix_getpgrp | posix_getpid | posix_getppid | posix_getpwnam | posix_getpwuid | posix_getrlimit | posix_getsid | posix_getuid | posix_initgroups | posix_isatty | posix_kill | posix_mkfifo | posix_mknod | posix_setegid | posix_seteuid | posix_setgid | posix_setpgid | posix_setsid | posix_setuid | posix_strerror | posix_times | posix_ttyname | posix_uname | posix_setrlimit | lchgrp | lchown | lstat | symlink | link | readlink | linkinfo | syslog | openlog | closelog | pfsockopen |

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 5885957 | Threads: 7 | Questions: 411595972 | Slow queries: 0 | Opens: 73365 | Flush tables: 12 | Open tables: 2000 | Queries per second avg: 69.928 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_wrapper (3.0.0) 1 | com_mailto (3.0.0) 1 |
3rd Party:: WF_MEDIA_TITLE (2.6.30) ? | WF_AUTOSAVE_TITLE (2.6.30) ? | WF_CLIPBOARD_TITLE (2.6.30) ? | WF_CLEANUP_TITLE (2.6.30) ? | WF_HR_TITLE (2.6.30) ? | WF_IMGMANAGER_TITLE (2.6.30) ? | WF_INLINEPOPUPS_TITLE (2.6.30) ? | WF_SEARCHREPLACE_TITLE (2.6.30) ? | WF_CHARMAP_TITLE (2.6.30) ? | WF_EMOTIONS_TITLE (2.6.30) ? | WF_NONBREAKING_TITLE (2.6.30) ? | WF_DIRECTIONALITY_TITLE (2.6.30) ? | WF_SOURCE_TITLE (2.6.30) ? | WF_TEXTCASE_TITLE (2.6.30) ? | WF_KITCHENSINK_TITLE (2.6.30) ? | WF_VISUALCHARS_TITLE (2.6.30) ? | WF_STYLE_TITLE (2.6.30) ? | WF_STYLESELECT_TITLE (2.6.30) ? | WF_PRINT_TITLE (2.6.30) ? | WF_LISTS_TITLE (2.6.30) ? | WF_FONTSIZESELECT_TITLE (2.6.30) ? | WF_FONTSELECT_TITLE (2.6.30) ? | WF_FORMATSELECT_TITLE (2.6.30) ? | WF_ARTICLE_TITLE (2.6.30) ? | WF_CONTEXTMENU_TITLE (2.6.30) ? | WF_VISUALBLOCKS_TITLE (2.6.30) ? | WF_TABLE_TITLE (2.6.30) ? | WF_LAYER_TITLE (2.6.30) ? | WF_LINK_TITLE (2.6.30) ? | WF_XHTMLXTRAS_TITLE (2.6.30) ? | WF_FONTCOLOR_TITLE (2.6.30) ? | WF_FULLSCREEN_TITLE (2.6.30) ? | WF_ANCHOR_TITLE (2.6.30) ? | WF_BROWSER_TITLE (2.6.30) ? | WF_SPELLCHECKER_TITLE (2.6.30) ? | WF_PREVIEW_TITLE (2.6.30) ? | WF_LINK_SEARCH_TITLE (2.6.30) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.6.30) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.6.30) ? | WF_POPUPS_WINDOW_TITLE (2.6.30) ? | WF_LINKS_JOOMLALINKS_TITLE (2.6.30) ? | WF_AGGREGATOR_VIMEO_TITLE (2.6.30) ? | WF_AGGREGATOR_[youtube]_TITLE (2.6.30) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.6.30) ? | WF_AGGREGATOR_VINE_TITLE (2.6.30) ? |

Components :: ADMIN ::
Core :: com_templates (3.0.0) 1 | com_messages (3.0.0) 1 | com_categories (3.0.0) 1 | com_checkin (3.0.0) 1 | com_contenthistory (3.2.0) ? | com_newsfeeds (3.0.0) 1 | com_menus (3.0.0) 1 | com_banners (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_plugins (3.0.0) 1 | com_media (3.0.0) 1 | com_login (3.0.0) 1 | com_redirect (3.0.0) 1 | com_tags (3.1.0) ? | com_admin (3.0.0) 1 | com_modules (3.0.0) 1 | com_config (3.0.0) 1 | com_cache (3.0.0) 1 | com_ajax (3.2.0) ? | com_installer (3.0.0) 1 | com_associations (3.7.0) ? | com_postinstall (3.2.0) ? | com_finder (3.0.0) 1 | com_content (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_users (3.0.0) 1 | com_search (3.0.0) 1 | com_languages (3.0.0) 1 | com_fields (3.7.0) ? |
3rd Party:: Smart Slider 3 (3.3.4) ? | Smart Slider 2 (2.3.13) ? | RokSprocket (2.1.23) 1 | COM_JCE (2.6.30) ? | jSecure Lite (1.0) ? | Nextend2 (2.0.23) ? | nextend_installer (2.0) ? |

Modules :: SITE ::
Core :: mod_users_latest (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_search (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_tags_similar (3.1.0) ? | mod_articles_archive (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_tags_popular (3.1.0) ? | mod_languages (3.5.0) 1 | mod_articles_latest (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_login (3.0.0) 1 | mod_articles_popular (3.0.0) 1 |
3rd Party:: Smart Slider 2 (2.3.13) ? | HTML5 Audio Player (1.2) ? | Vina Timeline Slider (1.2) ? | RokSprocket Module (2.1.23) 1 | GalleryAholic (1.6.5-PRO) ? | BT Content Slider (2.3.11) ? | HD-Background Selector (1.3) ? | Smart Slider 3 (3.3.4) ? |

Modules :: ADMIN ::
Core :: mod_menu (3.0.0) 1 | mod_stats_admin (3.0.0) ? | mod_latest (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_login (3.0.0) 1 | mod_title (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_status (3.0.0) 1 | mod_sampledata (3.8.0) ? | mod_version (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 |
3rd Party::

Libraries :: SITE ::
Core ::
3rd Party:: Regular Labs Library (18.2.10140) ? |

Plugins :: SITE ::
Core :: PLG_INSTALLER_URLINSTALLER (3.6.0) ? | plg_installer_packageinstaller (3.6.0) ? | plg_installer_webinstaller (1.1.1) ? | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) ? | plg_extension_joomla (3.0.0) 1 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_cookie (3.0.0) ? | plg_authentication_gmail (3.0.0) 0 | plg_twofactorauth_yubikey (3.2.0) ? | plg_twofactorauth_totp (3.2.0) ? | plg_quickicon_phpversioncheck (3.7.0) ? | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_tags (3.0.0) ? | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_system_log (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_stats (3.5.0) ? | plg_system_logout (3.0.0) 1 | plg_system_redirect (3.0.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_sessiongc (3.8.6) ? | plg_system_updatenotification (3.5.0) ? | plg_system_p3p (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_fields (3.7.0) ? | plg_system_languagefilter (3.0.0) 0 | plg_system_languagecode (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_fields_sql (3.7.0) ? | plg_fields_textarea (3.7.0) ? | plg_fields_integer (3.7.0) ? | plg_fields_editor (3.7.0) ? | plg_fields_calendar (3.7.0) ? | plg_fields_usergrouplist (3.7.0) ? | plg_fields_list (3.7.0) ? | plg_fields_media (3.7.0) ? | plg_fields_imagelist (3.7.0) ? | plg_fields_url (3.7.0) ? | plg_fields_text (3.7.0) ? | plg_fields_checkboxes (3.7.0) ? | plg_fields_radio (3.7.0) ? | plg_fields_color (3.7.0) ? | plg_fields_user (3.7.0) ? | plg_captcha_recaptcha (3.4.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_fields (3.7.0) ? | plg_content_vote (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_finder (3.0.0) 0 | plg_editors-xtd_menu (3.7.0) ? | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_module (3.5.0) ? | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) ? | plg_user_contactcreator (3.0.0) 0 | plg_user_profile (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_tags (3.0.0) ? | plg_search_contacts (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 |
3rd Party:: Nextend Smart Slider Widget: Arrow (1.0.0) ? | Nextend Smart Slider Widget: Arrow (1.0.0) ? | Nextend Smart Slider Widget: Arrow (1.0.0) ? | plg_installer_smartslider3 (3.3.4) ? | plg_installer_jce (2.6.30) ? | Nextend Smart Slider Image Fade (1.0.0) ? | Nextend Smart Slider Image Flipper (1.0.0) ? | Nextend Smart Slider Button Item (1.0.0) ? | Nextend Smart Slider Joomla module (1.0.0) ? | Nextend Smart Slider Paragraph Item (1.0.0) ? | Nextend Smart Slider Vimeo Item (1.0.0) ? | Nextend Smart Slider Tag Item (1.0.0) ? | Nextend Smart Slider Heading Item (1.0.0) ? | Nextend Smart Slider [youtube] Item (1.0.0) ? | Nextend Smart Slider Html Item (1.0.0) ? | Nextend Smart Slider iframe Item (1.0.0) ? | Nextend Smart Slider Caption Item (1.0.0) ? | Nextend Smart Slider Shape Item (1.0.0) ? | Nextend Smart Slider Image Item (1.0.0) ? | Nextend Smart Slider Special Item (1.0.0) ? | plg_extension_jce (2.6.30) ? | Nextend Smart Slider Widget: Bullet (1.0.0) ? | Nextend Smart Slider Widget: Bullet (1.0.0) ? | Nextend Smart Slider Widget: Bullet (1.0.0) ? | Nextend Smart Slider Simple Type (1.0.0) ? | Nextend Smart Slider Full Page Type (1.0.0) ? | Nextend Smart Slider Horizontal Acc (1.0.0) ? | Nextend Smart Slider Vertical Accor (1.0.0) ? | Nextend Smart Slider Showcase Type (1.0.0) ? | Nextend Smart Slider Widget: Shadow (1.0.0) ? | Nextend Smart Slider Widget: Thumbn (1.0.0) ? | Nextend Smart Slider Widget: Thumbn (1.0.0) ? | Nextend Smart Slider Widget: Thumbn (1.0.0) ? | Nextend Smart Slider Widget: Indica (1.0.0) ? | Nextend Smart Slider Widget: Indica (1.0.0) ? | plg_quickicon_jce (2.6.30) ? | plg_editors_jce (2.6.30) ? | plg_editors_tinymce (4.5.8) 1 | plg_editors_codemirror (5.38.0) 1 | Nextend Smart Slider Widget: HTML - (1.0.0) ? | Nextend Smart Slider generator layo (1.0.0) ? | Nextend Smart Slider Widget: Autopl (1.0.0) ? | Nextend Smart Slider Widget: Bar - (1.0.0) ? | Nextend Smart Slider Widget: Bar - (1.0.0) ? | Nextend Smart Slider Widget: Bar - (1.0.0) ? | Nextend Smart Slider Widget: Autopl (1.0.0) ? | Nextend Smart Slider Widget: Bar (1.0.0) ? | Nextend Smart Slider Widget: Arrow (1.0.0) ? | Nextend Smart Slider Widget: Bullet (1.0.0) ? | Nextend Smart Slider Widget: Shadow (1.0.0) ? | Nextend Smart Slider Widget: Indica (1.0.0) ? | Nextend Smart Slider Widget: HTML (1.0.0) ? | Nextend Smart Slider Widget: Thumbn (1.0.0) ? | System - RokSprocket (2.1.23) 1 | System - jSecure Lite (1.0) 1 | plg_system_sourcerer (7.2.0) ? | plg_system_regularlabs (18.2.10140) ? | Nextend2 Library (3.3.4) ? | Nextend Smart Slider 3 (3.3.4) ? | plg_system_jce (2.6.30) ? | Nextend Library (1.0.0) ? | Nextend Library (1.0.0) ? | System - RokCommon (3.2.5) 1 | Nextend Smart Slider generator: Vir (1.0.0) ? | Nextend Smart Slider generator: Fli (1.0.0) ? | Nextend Smart Slider generator: Fac (1.0.0) ? | Nextend Smart Slider generator: Joo (1.0.0) ? | Nextend Smart Slider generator: red (1.0.0) ? | Nextend Smart Slider generator: Ign (1.0.0) ? | Nextend Smart Slider generator: Mij (1.0.0) ? | Nextend Smart Slider generator: Eas (1.0.0) ? | Nextend Smart Slider generator: Qui (1.0.0) ? | Nextend Smart Slider generator: Joo (1.0.0) ? | Nextend Smart Slider generator: Ima (1.0.0) ? | Nextend Smart Slider generator: Cob (1.0.0) ? | Nextend Smart Slider generator: Ins (1.0.0) ? | Nextend Smart Slider generator: ZOO (1.0.0) ? | Nextend Smart Slider generator: K2 (1.0.0) ? | Nextend Smart Slider generator: Twi (1.0.0) ? | Nextend Smart Slider generator: You (1.0.0) ? | Nextend Smart Slider generator: Pho (1.0.0) ? | Nextend Smart Slider generator: FLE (1.0.0) ? | plg_fields_mediajce (2.6.30) ? | Content - RokInjectModule (1.7) 1 | PLG_CONTENT_JOSTAG (3.0.0) ? | plg_content_jce (2.6.30) ? | plg_editors-xtd_sourcerer (7.2.0) ? |
Templates Discovered :: wrote:Templates :: SITE :: os-basetemplate (3.4.4) ? | beez3 (3.1.0) ? | protostar (1.0) ? |
Templates :: ADMIN :: isis (1.0) ? | hathor (3.0.0) 1 |

Re: session_start() na verhuizing nieuwe hoster

Posted: Tue Feb 12, 2019 3:15 pm
by pe7er
How did you move the website to another server?
I'd recommend to use Akeeba Backup to create a backup and restore the files + database on the new server.

Re: session_start() na verhuizing nieuwe hoster

Posted: Tue Feb 12, 2019 3:30 pm
by Rutger1973
Hi Peter,

I simply made a copy of all the files, uploaded them with FileZilla to the new hoster (from Versio to TransIP). Made a dump of the database, and uploaded it in the new phpmyadmin environment. Changed the DB credentials in the config file. Also adjusted the path to tmp and log according to the new hosting environment.
I cannot make a Akeeba back-up anymore because the previous environment is no longer available.

Re: session_start() na verhuizing nieuwe hoster

Posted: Tue Feb 12, 2019 4:43 pm
by pe7er
Did you put your /tmp/ outside the Joomla root?
The webserver might not be able to write any data into that folder.

Re: session_start() na verhuizing nieuwe hoster

Posted: Tue Feb 12, 2019 7:16 pm
by Rutger1973
No, tmp and log folder are in the 'standard' place... both in the root. I haven't changed anything besides the config file.

They only thing I can see that makes me wonder is that in the error log the path to the log folders doesn't have the www in the path. I have put that in the config file, do not know where else to check that.

Re: session_start() na verhuizing nieuwe hoster

Posted: Tue Feb 12, 2019 7:57 pm
by Rutger1973
I changes the php version of the hosting to 7.2... Now it generates different errors. Looks like some modules do no work with this php version.

Am completely lost now.

Re: session_start() na verhuizing nieuwe hoster

Posted: Tue Feb 12, 2019 11:23 pm
by Rutger1973
Pfff, kinda embarrassed by the mistake I made... uploaded the wrong database :( All good now. Another night wasted!

Re: session_start() na verhuizing nieuwe hoster

Posted: Wed Feb 13, 2019 9:16 am
by pe7er
No worries... happens to everyone sometimes...

Good to hear that you've solved it.
Thanks for sharing your solution!