Php configuration can trigger an error while installing Joomla

Earlier I was trying to install a joomla package for a client and I've got the following error:

Warning: session_start(): open(tcp://127.0.0.1:11211/sess_973eebe815a2f02cac90592473de1467, O_RDWR) failed: No such file or directory (2) in /home/joomla/public_html/libraries/joomla/session/session.php on line 531 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/joomla/public_html/libraries/joomla/session/session.php:531) in /home/joomla/public_html/libraries/joomla/session/session.php on line 531 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/joomla/public_html/libraries/joomla/session/session.php:531) in /home/joomla/public_html/libraries/joomla/session/session.php on line 531

That was triggered by the php configuration:

main session.save_path   tcp://127.0.0.1:11211

That configuration is sending the request to nowhere (I mean to a place the scripts gets no valid response or no response at all). If you have access to php.ini (located in the folder where php is installed) you can change save_path yourself, if you don't have access ask someone that has (the server administrator, for example).

The configuration should be something like this (using a folder that exists and have permission to be written by the Apache server - or any other webserver you use):

main session.save_path where N is an integer. Instead of storing all the session files in /path, what this will do is use subdirectories N-levels deep, and store the session data in those directories. This is useful if you or your OS have problems with lots of files in one directory, and is a more efficient layout for servers that handle lots of sessions. NOTE 1: PHP will not create this directory structure automatically. You can use the script in the ext/session dir for that purpose. NOTE 2: See the section on garbage collection below if you choose to use subdirectories for session storage /tmp

One other option you can work around php configuration problem is to use ini_set function to change the value of session.save_path. You have to put in the file index.php in the installation folder the following code:

@ini_set('session.save_path', '../cache');

The problem is when you'll update the package or you'll overwrite the file you'll lose the changed value and you'll have the same problem (again).

Related Articles

seo search engine optimisation The search engine optimisation part is very important for websites - they have to match certain criteria in order to appear as often as possible in the search results on Google and Bing. SEO (search engine optimization) starts from site / online store / platform development because it involves a specific structure of the pages, it involves an ease to browse for the visitors (for your clients) and it involves quicky loading when accessed. Our sites are delived already optimized, but if you have already a solution developed by someone else we analize your website and we offer consultancy - we'll tell you about the options you have about to boost its visibility and organic traffic.

realizăm site-uriWe develop websites to present your activity to the world and applications for internet that help you organize your activity as eficient as possible and without loses (in money, time and energy) wherever you are. Do you need an online store or a tool available for you anytime? We can develop that as long you reserve a domain name and some hosting space, the app is our job.

As an extension to your site or web app we can provide an app for your smartpone / table to keep you always informed about what's happening with the product already developed.

developing appsWe develop web applications and mobile apps (Android) for various companies and organisations according to their specifications and requirements. The apps are being used by employees and partners to work more efficient and with less costs for the company: the web applications can be accessed through the browsers installed on smartphones and tablets but the usage of a complementary mobile app can make efficiency to go up (it can increase the communication between people or it can show things not so important on PC).

We offer support for the applications used now and we develop them further using modern technologies.

Consulting bussiness online / itWe offer consultancy about the informatic system you have installed and we offer sollutions to make the more efficient, to improve and develop them further, we analize the activities inside your company and / organisation and we offer sollutions for the projects you want to develop.

If you don't have a website, an online store, a web application or a mobile app (Android) but you want to develop one for yourself or your company we offer the initial consultancy, the one that's necessary before starting anything about such project.

Share this URL on social social

"Cu capãtul arcurilor, trecînd,
rãzboinicii
mîngîie roua..."

Yosa Buson (1715-1783)

facebook sharing button
twitter sharing button
messenger sharing button
reddit sharing button
wordpress sharing button
whatsapp sharing button
tumblr sharing button
pinterest sharing button
blogger sharing button