Help with session save path
Posted by: jgeange
Posted on: 2005-11-18 22:21:00
How do I get the "session save path" writable on Dreamhost with Joomla?
Posted by: jgeange
Posted on: 2005-11-18 22:21:00
How do I get the "session save path" writable on Dreamhost with Joomla?
Posted by: rlparker
Posted on: 2005-11-18 22:57:00
I've installed joomla several times on Dreamhost, and never encountered this problem. Told help us help you, could you please provide a little more information:
1) Did you use the 1-click install or install yourself?
2) Are you using PHP-CGI, MOD-PHP, or your own compiled php (and if so, what version, moddules, etc. - maybe include phpinfo output)?
3)What version of Joomla are you trying to install (latest "stable" is 1.0.3)
There is preesently a discussion on joomla.org that talks about this situation,
( http://forum.joomla.org/index.php?topic=11750.0;prev_next=prev ) but *that* user was running in safe mode, and that should not be the case in any default DH directory configuration. I'm also a little leery of some of the advice in the thread, so why don't we start troubleshooting with the above questions.
Regards,
--rlparker
Posted by: jgeange
Posted on: 2005-11-20 04:58:00
Hey mate,
Thanks so much for your reply...I am using the one-click install for Joomla 1.0.3 that Dreamhost offers. To be honest I am just a newbie with Mambo and all this database talk is definitely a steep learning curve for me!
I have successfully installed Joomla twice now but because the session save path is unwritable I cannot log into admin whatsoever, it just loops.
When I installed my MSQL DB I assigned it to PHP CGI I think because Dreamhost recommends this for stronger security etc.
From what I can gather this session save path might be something that has to be done from Dreamhosts side?
I have made a "tmp" folder in both the root directory and inside the administrator folder but this did not fix the problem :(
Thank you again for your assistance I really appreciate it...are you having the same problems with Dreamhost?
Posted by: rlparker
Posted on: 2005-11-20 07:52:00
Well, this *is* puzzleing, as I *just* did a new "one-click" install of my own to duplicate your problem, and had *no* problems.
In all of my joomla installs (ver 1.0 - ver 1.03), including the last "test" one that I just completed, the session_save directory is set as "/tmp", which is a directory immediatly off the *root* of your server. It is owned by DH, and is, by default, writable by all users. You should not have to add any directory for that, and Joomla has always used that directory sucessfully for me.
We are gonna have to dig into this a little more:
1) Since you used the one-click install, did you notice the directory was unwriteable at install time (when following the links provided in the "success" email sent from DH) or are you responding to an error message?
2) what server are you on?
Question 2 is important, because it is about the only "difference" between our installs - both were done with the "opne-click" installer on DH. I suppose it is *possible* that your server is mis-configured in some way, though that seems unlikely as any DH server with an unwritable "tmp" directory would probably have caused all kinds of support requests by now.
3) can you include the url of your "broken" installation, so I can visit and have a look?
Don't get discouraged; Joomla works great on DH, and we will get this figured out.
--rlparker
Posted by: jgeange
Posted on: 2005-11-21 15:56:00
That is frustrating that it works perfectly for others and I just can't get it going :(
When you ask which server I would be on would this be: doheny.dreamhost.com
?
The url is:
http://www.theguitarpodcast.com
I have deleted the directory right now but I will re-install it all again for you tonight so you can see the admin loop etc.
I have emailed support but I haven't received any assistance in regards to this matter as yet.
I am happy to hear that it will eventually work and I am extremely appreciative of your assistance...you are very kind:)
Thanks mate,
Jonathan.
Posted by: jgeange
Posted on: 2005-11-21 20:49:00
Got a reply from Dreamhost support...here is what they have to say:
I think you should try turning php-cgi off for your domain as the variable you are referring to is set as following for domains running non php-cgi : php.ini.generated:session.save_path = /tmp
How would I go about this? Do I need to wipe everything I have and reinstall the MSQL DB as Apache instead of PHP-CGI?
Posted by: rlparker
Posted on: 2005-11-22 01:04:00
Well, I hate to go against what DH Support tells you, but I think they missed the boat on this on. *ALL* my domians running Joomla, including the "test* that I set up this morning run PHP-CGI. In fact, if you use the "one-click" install (which I did this morning to test your circumstances), it tells you *on the web panel* that your domain *will* be set *to* PHP-CGI for the one-click install.
I think the next thing I would do would be to run a small php program from my home directory, while the domain is set to use PHP-CGI, to get the PHP information.
Simply put the following single line of code in a text file, name it "phpinfo.php", then place it in your root web directory of your domain:
<?php phpinfo(); ?>
THen "run" that program by going with your browser to http://www.yourdomain.com/phpinfo.php. This will run a program that will show you all kinds of useful stuff about PHP as it is running on your server, and that will help us figure out what is going on here.
In all my domains, running on PHP-CGI, phpinfo shows that session.save_path *is* set to /tmp which is writable on all my servers.
I suppose it is possible that your server is misconfigured on the DH end, though I believe that to be unlikely. I am assuming that you are running PHP 4 as PHP-CGI, on a "standard" configuration DH server....the output of this program will confirm all of that, or indicate any deviation.
I personally suspect that you may have a stuck cookie or a browser cacheing problem, which seems to me to be more likely to cause a looping condition at login.
Regards,
rlparker
Posted by: rlparker
Posted on: 2005-11-22 01:09:00
I just went to the url you provided, and got a "temporarily unavailable message" with a code "2", which generally means your MySQL connection has failed.
This could be due to DH "rebooting" MySQL werver, a flaky MySQL server, or a configuration problem. If it is a temporary thing it should be up soon. I will check again lateer tonight or early this morning (0100 hours local time for me right now :-)
Regards,
rlparker
Posted by: jgeange
Posted on: 2005-11-22 11:39:00
Got the PHP info script going...just not too sure about what it all means ;)
The only thing I can think of where I might have gone wrong is that I selected PHP 5 instead of PHP 4 in the install I think? This is also shown in the php.ini file from the info script.
Maybe this is the problem?
Posted by: jgeange
Posted on: 2005-11-22 11:48:00
The session save path is set to tmp according to the script!
I have no idea what is going on?
Am I missing something on the Joomla install maybe?
Posted by: rlparker
Posted on: 2005-11-22 13:21:00
All my sucessful installations use the default PHP 4 PHP-CGI, so I strongly suspect that using PHP5 is the problem. I'm not sure where you "selected" php 5...in the Joomla install (I don't recall seeing it there, but if I did I would have chosen PHP4 as that's how all my domains are configured), in setting up your domain (again, I've not seen that, as I have been with dreamhost since long before PHP5 was available, and have used only the DH PHP 4), or in "some other setting".
My advice is:
1) clear your directory.
2) Make sure you are using the default PHP-CGI PHP4 on your domain (Control Panel, etc.)
3) wait till everything is reset
4) reinstall the "one-click" Joomla, or "manually" install the newest Joomla 1.04 (security fixes) if the "one-click" is still using 1.03
5) Enjoy.
I suppose there is always the chance that something might still be wrong, but the process I described is what worked "like a charm" for me yesterday when I did it to test for your problem.
There are some compatibility issues with Joomla with PHP 5, especially if you have not compiled your own at DH. To use Joomla fully, you *do not* need PHP 5.
Regards,
rlparker
Posted by: rlparker
Posted on: 2005-11-22 14:00:00
You might want to check out this thread....looks like DH PHP5 might not be quite "ready for prime time" for most users ;-)
--rlparker
Posted by: jgeange
Posted on: 2005-11-22 17:02:00
IT WORKED!!!
It was just a matter of switching back to PHP4 in the domain name settings.
I have successfully logged into the sites admin section now and I am so relieved.
I need to now try and upload my Mambo site over the top of Joomla or maybe I will just use Joomla with my sites template. I haven't built the site as yet so maybe this will be the best option.
Thanks heaps for all your support, I couldn't have done it without you :)
Kind regards,
Jonathan.
Posted by: rlparker
Posted on: 2005-11-22 17:25:00
Congratulations! I'm glad you got it working. One caution, though, is that I *strongly advise against* your trying to "upload my Mambo site over the top of Joomla". You are liable to creat a whole slew of problems that way.
The templates should be interchangable, with only the slightest (usually, none at all!) changes between Mambo and Joomla, and the Joomla code is considerably better debugged then the Mambo code.
Since the site isn't built yet, I think you should just build it in Joomla (there is no better way to learn to enjoy the power of Joomla CMS than to play with it!).
Regards,
--rlparker
Posted by: jgeange
Posted on: 2005-11-22 17:47:00
Template worked fine so I am not even going to torture myself by trying to overwrite Joomla with Mambo...so not up for that!
Will I be able to enable SEF by changing the htaccess file?
At the moment I am just thankful it's running, all the rest will work itself out in the end I guess ;)
Posted by: rlparker
Posted on: 2005-11-22 17:56:00
Yes, all you have to do is enable the SEF in the Joomla Site Configuration section of the backend, and rename the htaccess,txt file to .htaccess and you are good to go!
THe site looks nice and, I think, I managed to get to be the first registered user... WooHoo!
--rlparker
Posted by: jgeange
Posted on: 2005-11-22 18:07:00
LOL...thanks mate ;)
I really love Mambo/Joomla...it sure beats messing around with a HTML editor then having to upload the files.
It took me weeks to get a grasp of Mambo but now the light has turned on and I feel like I am on my way to conquering it at last!
What are your websites? I like to check out what other people are doing with Mambo.
Posted by: rlparker
Posted on: 2005-11-22 18:59:00
I've done a bunch... several with Mambo, and now Joomla. Some have since been "taken over" by my clients (which was, to me, the whole point of Mambo/Joomla) and, subsequently, have gotten "a little rough around the edges" (or maybe "dog-earred" is a better term ;-) since they took over populating them and doing some dastardly bad things with the content (remember when the secretary in the 80's discovered fonts - OMG!) but here a couple of "typical" sites I've built for clients:
http://klatchroasting.com
http://acquisitionventures.com
http://christianminstrels.dreamhosters.com - pro bono
and an older one that the client has definately "made his own" ;-)
http://johnnystarr.com
my own site is currently suffering from the old "the cobbler's children have no shoes" syndrome...hasn't been updated in *years*and now really reflects badly on my work. I've just been building stuff for clients. I really need to re-do mine, but I don't have the money to hire myself! he he he...
--rlparker
Posted by: jgeange
Posted on: 2005-11-23 16:18:00
I am in the same boat as you with my very first website, I haven't updated it for well over a year now! I will just scrap it and replace it with a Joomla site ;)
Your latest Joomla sites look great...is web design your full-time job?
I see what you mean about your clients handy work...the great thing about Mambo is it is so easy for the client to take over the site...so you gotta love that!
Posted by: rlparker
Posted on: 2005-11-23 20:15:00
Thanks for your kind remarks....I *don't" consider myself a "designer", but I *do* develop websites, and provide other internet and IS systems consulting and training on a "full-time" basis.
I agree with you that "you gotta love" giving the small business user the ability to control their content, and Joomla/Mambo (and other CMS systems) make that a reasonable proposition for the "little guy" that can't afford to have a "webmaster" make all the little mods, changes, addition, deletions, that are part of *operating* a site. Frankly, very few of my clients can really afford to pay me, or anyone other than the $10 and hour High School kid, or "off-shore and out-sourced" third world coders to do that kind of work.
I just try to give them a servicable, attractive, and well-architected site (and initial training) and let them take it from there. Some do better than others, and others who can afford it have me maintain it. Ultimately, it gives the *client* the ability to balance their budget with the quality of their site, and seems to work out, either way, well enough.
Doesn't leave an impressive portfolio of stylish "cutting edge" or innovative sites to show off....but it pays the bills.
--rlparker
Posted by: dgamber
Posted on: 2005-11-26 22:12:00
Nice looking sites guys! You must be the official DH Joomla advocate, RL--you helped me when I transferred over to DH from another host to get my *ambo/now Joomla sites up. Maybe we need to have a local Joomla forum here--that is if we can convince the powers that be to go to an actual forum like VBulliten or SMF ;)
What's your nick on Joomla.org forum guys? You'll see me lurking there as Malibu.
I just converted another site over to Joomla from static >>> http://www.philli-ig.com
Other joomla sites
http://www.jackiegamber.com
http://www.pentopaper.org
http://www.squeakypig.info (coming next)
Posted by: rlparker
Posted on: 2005-11-27 00:24:00
Thanks for the gracious comments, Dan. I'm glad I was able to give a little encouragement, even if I gave very little actual help. Your sites are very attractive, and I can see you are enjoying Joomla/M*mbo.
I wouldn't hold my breath .re DH changing the wwwthreads software on the forum; they have used if for years and it seems to meet their purposes well enough. If anyone is really interested in "local" Joomla/M*mbo support, there is always the DH wiki!
It seems to me, though, that with the "one-click" install now available, there will probably very little need for DH related help.
As for the myriad of Joomla/M*mbo related forums around (including joomla.org and M*mboserver.com) you can usually find me as "rlparker". I'm not much for "handles" and am even less creative when it come to online personnae ;-).
--rlparker
Posted by: cinnie
Posted on: 2005-11-27 11:18:00
Not sure if I am having the same issues as you are but I have many sites hosted with dreamhost, 2 of them are now showing the session save path errors. They didn't before Thanksgiving and the crash of the server my sites are hosted on... but they did after. Nothing has been changed on either of the sites since before the holiday.
I have contacted Dreamhost twice.. one help request is over 2 days old now, with no responce back from them. If I get one I will let you know what they tell me. Might be the same issue you are having.
Posted by: rlparker
Posted on: 2005-11-27 12:45:00
Given my experience with M*ambo/Joomla at DH, and the discussion in this thread, I *strongly suspect* that something is "borked" on one or more of the DH servers.
Most simply stated, I have never seen then problem arise on a "standard configuration" DH shared server. It makes me think that the server configuaration has somehow changed.
One quick, and maybe irrelevant, thought: Are you leaving the "dataglobs" in your path setting withing the M*mbo/Joomla configuration?
I haven't worked through the full implication of that to the session save path issue, but it *is* one thing that DH warned us "could change" on our accounts at any time. At least that is something that *might* have changed without your participation between when your sites worked and when they "broke".
--rlparker
Posted by: rlparker
Posted on: 2005-11-27 12:50:00
Did you run the phpinfo program detailed earlier in this thread? We probably should start there to determine the condition of your PHP.
--rlparker
Posted by: cinnie
Posted on: 2005-11-27 14:31:00
Not sure if you were replying to me or the other person but my issues are not with Mambo/Joomla.
One site is running osCommerce (which is funny because I have it on 2 other sites and there are no errors... and I am a team member for osCommerce and know these errors should not be happening). The other site is a phpadboard/classifieds type of thing.
I agree, I believe (in fact I know) it has something to do with something on their end. Just wish they would respond to messages sent over 2 days ago. I have a site I am suposed to have done tomorrow that I can't work on because of the errors. : ( Pain in the butt.
Posted by: rlparker
Posted on: 2005-11-27 15:29:00
Oops! Sorry about that M*ambo/Joomla assumption. I also feel a little silly with the phpinfo suggestion given your probable knowledge of php from your oscommerce work.
I guess we will know more when support surfaces (probably just need to awaken from their trptophan induced sleep after the holiday!)
If convenient, would you share with us what you learn? I'm especially curious, as this is a "new" issue I have not seen before with DH php.
Regards,
--rlparker
Posted by: cinnie
Posted on: 2005-11-27 20:30:00
No worries about the assumption. lol I am no genius when it comes to php but enough to get by, and I guess enough to be asked to be a team member over there. : ) There are sooo many others with more experience than I have though.
I will be sure to let you know what they tell me. I finally got a responce back saying they would have to check into it.
Posted by: cinnie
Posted on: 2005-11-28 16:00:00
Not sure what happened, but just recieved an email from Dreamhost saying they didn't see the errors any more so I went and checked and they are gone on both sites that had them. I haven't touched anything and guessing by the email the person that was helping me didn't do anything either... so I can't tell you how it was fixed. Just glad it is.
Posted by: jollymade
Posted on: 2006-02-25 06:28:00
Hello, world! A new DH user here, and I'm trying to solve this same problem of the session save path not being writable in the one-click Joomla! install. It seems from this thread that specifying PHP 4 is the ticket - I can't find the place to do that!
Any hints?
Thanks very much -
pj