I am building a Joomla! website with a lot of code customization to my components. I also had to change a lot of strings to the translations files and now it's time to upgrade the Joomla and the components core, for which I need to set up a local development environment.
I decided to use VirtualBox to run a copy of my Joomla! 3.7.2 website on Ubuntu 16.04 with Apache 2.4.18, PHP 7, MySQL 5.7. I could recycle a previous DE where I was testing Drupal so I don't exclude a compatibility issue.
Summing up my migration procedure for you:
- I exported a database dump from the live site web hosting server and downloaded a whole copy of Joomla core, then placed all its content in /var/www/html.
- Created a new database and imported the db dump through Phpmyadmin
- I edited configuration.php so that it would match the new local server
- Made sure PHP session folder was writable and owned by the user under which Apache is running
When browsing the HTTP content of my server I get the notorious message
Code: Select all
Error displaying the error page
and the Apache itself error logs read
Code: Select all
PHP Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in /var/www/html/libraries/joomla/session/handler/native.php on line 194
Then I tinkered native.php boolean values as I read around the internet, disabled session management as a whole via configuration.php and a few more things but anytime I load any PHP file from Joomla's core I get the aforementioned error. Other PHP scripts work fine so I'm asking for some input from you as to what may be causing this issue.