Ubuntu Servers :: PHP Not Following Session.save_path?
Jan 3, 2011
I have two version of PHP installed on my Ubuntu Lucid 10.04 server - the default PHP 5.3.2 that comes with the distribution - and I then compiled PHP 5.2.14 to the /opt/php5.2.14 directory and it runs in Apache via FastCGI mode.The PHP 5.3.2 is working without any problem and it places all session files in the /home/session-data folder - which is set in the PHP.INI file.The PHP 5.2.14 also has the same directive set and it shows via a phpinfo() that it is set correctly:session.save_path=/home/session-dataI have ensured that all session variables/settings are the same between PHP 5.3.2 and PHP 5.2.14 - but the PHP 5.2.14 does not pay attention to the save path and is still placing the session files in the /tmp folder.Checking the session files in the /tmp folder, they are owned by www-data with 600 chmod permission settings (read/write for user, no access for group/others).
I am currently in a project to set up an LTSP server with 10 thin clients. I am using Ubuntu 9.10 (Karmic).
Installing server and booting clients are working fine. Now, according to the need, I have to restrict user session numbers and allow resuming previous user session.
I have achieved to do the first one, but still could not able to setup the second one. As per requirement, if some thin can have power failure, the same session should be restored back. I am confused here, if I need to focus on saving xsessions or saving gnome sessions. I am looking for a concrete solution as I am running out of time.
I've been working on this since last night (a few hours) but can't seem to find what I am looking for. I'll spare you the details of what I've tried already.
Could someone guide me through connecting to my Ubuntu server using a remote X session? The "kicker" is that I want to do this from a Knoppix LIVE CD. So whatever method I am given will have to be something that is common to most Linux distros.
I imagine I will need help with two important steps:
1) verifying that I have an xserver of some kind running on my server.
2) command line statement for starting the Xserver from the remote machine.
I get an error message that says phpMyAdmin - Error, Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
So I did some googling and found a post here {URL]... which speaks about resetting the ownership of the session directory. However I am wondering how I can find out what the owner if the directory is (if its root or admin or ...)
It's strange because it all worked fine just about two hours ago and I am not sure since I have the server automatically download security updates if there is something it automatically downloaded that caused this. Also how to make the server stop automatically downloading security updated?
I stream my local police station dispatch on the web using an icecast/darkice configuration [URL]. The downside of using this software is that once you initiate darkice, a terminal has to be open - the process does not run in the background.
I tried placing a monitor on my server (ouch, that hurt) and keeping darkice alive that way, but my mail server kicks the process. Now, I set the KeepAlive variable to something outrageous and keep an ssh session open on my desktop box to keep the stream going. Screen does not work as Postfix boots that as well.
I have been using proftp for about 8 months. After getting the configuration right, it worked perfectly. It is only used intermittently, so I don't know for sure when the problems started, but I suspect it was triggered by a recent OS upgrade to Ubuntu 10.04 (64 bit). I have proftp set up so that TLS is required on both the data and control channels. The problem is that, after successful login, the server seems to be terminating the session because the client (FileZilla) is attempting to renegotiate something (probably the TLS). The client settings didn't change, nor did the server settings.
I have tried switching off the TLSRequired flag, and am then able to establish a non-secure FTP session which works (but that does not meet my requirements). I wondered whether the OS upgrade had somehow invalidated my TLS certificates, but the symptoms don't seem consistent with that cause. The TLS part of my proftpd.conf file is:
I have RDP working fine on my machine, however when I am signed in locally to the machine, I get the "console" session, which is fine, but when I want to RDP from another machine, I am put into a separate session, instead of "taking over" the console session.Is there a way to do this, similar to how RDP works on a windows machine?I have tried running the mstsc /console command, but I still get stuck into a non-console session.
Currently using Ubuntu9.10 Desktop 64bit. I want to remotely login into this Ubuntu pc Gnome Desktop from my office Windows PC with a separate user and one particular application assigned to this user ID.
I was running 8.something on my ubuntu server. Today I decided to upgrade releases! So I started it, all via ssh cos the box is about 800 miles away and it was going just fine. However - I went away from the pc for about a hour, and my ssh session died. On reconnect it starts a new ssh session - and I dont know how to reconnect to the upgrade process and finish it off.
I have just installed a version of 32 bits Lucid LTS on a server box. I would like to setup a VNC service so that I will be able to login to the server with VNC viewer and spawn a gnome-session. I ran the following command: Code: apt-get install ubuntu-desktop apt-get install Xvnc xinetd
I was in front of the server and make sure that I can start a gdm locally. Then, I added Xvnc service to xinetd following the guide here: {URL] I was only using a session, and /etc/xinetd.d/Xvnc is as follow: Code: service Xvnc { type = UNLISTED disable = no socket_type = stream protocol = tcp wait = yes user = root server = /usr/bin/Xvnc .....
After all, I restart gdm by "/etc/init.d/gdm restart". When I try to start a VNC connection from another machine, I can see Xvnc running successfully. But XDMCP does not run properly and I cannot see a traditional ubuntu login screen. I am sure that port 177 UDP is opening by looking at the output of "netstat -anp".
I am trying to write a bash script to open 1 screen session with multiple windows... each one running a different service. Is this possible? I tried several things, and I can start up multiple sessions really easy.. but not 1 session with multiple windows...
I want this so I can attach to that session and quickly move between the different windows.
Is there a session manager I can use with 10.10? I would like to try Openbox but am not sure how to select it as a startup session. I would like to be able to choose between kde, gnome and openbox.
I have a very bad attempt at hashing the components of an tcp session to assign/locate the session in a hash table bucket. I am pretty sure that it has a very high collision rate and when there are a very large number of tcp sessions my application is having to search a long linked list to find the session within the bucket.
All the hashing functions I have found take a single string input where I need to input several integers and hash them into a single result. My guess is that any real hashing function is going to produce better results than what I am currently doing.
I am putting together some new systems for my customer and I'm having some trouble with a script that we use to back up files to a DVD R. The problem is that I can't write a 2nd session to the DVD unless I eject the disk and reload it. The drives are slimline type drives, Sony BD-5730S and Teac DV-W28S-V93, so they won't reload without human intervention. Opsys is CentOS 5.4 or RHEL 5.4. I've tried both AMD and Intel based mother boards. If i try this on Fedora 11 or 12 it works fine. This works on IDE attached drives but not a SATA attached drives. Fedora appears to use something called genisoimage instead of mkisofs. I can't get genisoimage to run on CentOS or RHEL.
Here's the code to setup the test files:
rm -f /tmp/BDtest/* mkdir /tmp/BDtest dd if=/dev/zero of=/tmp/BDtest/blank.iso bs=10M count=1 for NUM in {1..160}
The following message comes up when I boot up: Logging in user Warning: Cannot open ConsoleKit session: Unable to open session: Launch helper exited with unknown return code 0. When I press OK, the system completes the start up and everything looks normal. But when I try to connect to internet, I get the following message:
KNetworkManager cannot start because the installation is misconfigured. System DBUS policy does not allow it to provide user settings; contact your system administrator or distribution. KNetworkManager will not start automatically in future. If I reboot the system, I logg in successfully. So far the problem has appeared approximately upon every second time I boot up. Rebooting the system seems to take care of it.
Don't know what info is of interest. I'm using
Opensuse 11.2 KDE 4.4.2 (Factory) After upgrade from 4.4.1 to 4.4.2 it worked fine for a week or so.
I do a clean install of slackware64 13.1 beta1 with KDE and switch default runlevel to 4 in /etc/inittab.
I try to login in kdm, I always come back to the login....
I try this with default runlevel 3 and an .xinitrc with "ck-launch-session startkde" .. works without problems, so I switch back to default runlevel 4, now i can login and only get the error "Cannot open ConsoleKit session: Unable to open session..."
after an update yesterday, I cannot log into my X session ...
The first time I tried, my screen showed a KDE background, and I got the error:
could not start ksmserver check your installation then I had to click ok, and it put me back to the log in screen.
I opened a shell (ctrl-alt-F1), logged in and typed:
sudo apt-get remove ksmserver, and it told me there was nothing to remove, but said I had a bunch of stale packages and to apt-get autoremove them, and I did
Now, when I go to the log in screen (X), under sessions, it only has xterm (no gnome, no kde) ...
[edit]
I forgot to add, I have always used Gnome, and not kde ... I have no idea why it originally tried to throw me into a KDE session
How can I get my gnome desktop environment back so I can log in again? I have no idea what I did, nor how to get back to normalcy!
In recent versions of ubuntu, the behavior of gdm and gnome is changed so that if a gnome user doesn't touch the mouse or keyboard for a while, the session is locked, and they have to type their password in order to get back in. I dislike this behavior, because on some of the machines I use and manage, people will walk away and not come back, and then there is no way to log them out. I can switch and log in as a different user, but the AWOL user's session is sitting there eating up resources until the machine is rebooted. I prefer the old behavior, with no locking. Is there any way to get the old behavior back? I've looked through the gdm.conf docs, but can't seem to find anything relevant. This actually seems more like a gnome issue than a gdm issue. I think what's changed is that gnome now invokes a screensaver after a certain amount of time, and that screensaver locks the session.
I'm experiencing a problem when trying to use VNC on my desktop box. Whenever I try to connect, I get a gray screen with the error "could not acquire name on session bus".I've searched the forums, but after trying several solutions, nothing has seemed to work for me.My xstartup file looks like this:
I just upgraded to Natty (11.04) and I want to get my Ubuntu to remember what last windows I had open after I logout and then login.
Due to reasons beyond my comprehension, hibernate and sleep do not work, and I prefer to use shutdown anyway.
I am using Unity and have not changed much of the default environment. I found plenty of guides for 8.04, but the Unity change has moved a lot of things around.
Is this possible, and if so, how do I do it in 11.04?
I have installed Ubuntu Netbook Remix 10.04 on my Sony Vaio netbook. I want to be able to log into a Gnome session as an alternative to UNR. The main reason for wanting to do this is to be able to add some applets to the panel which I use a lot. This is not possible in UNR, which is really irritating! However, I really like UNR otherwise, so don't want to just install standard version.
Synaptic shows that Gnome is not installed, but when I try to install it, I get this error message: gnome: Depends: swfdec-mozilla but it is not going to be installed
I tried uninstalling Epiphany, which I sometime use instead of Firefox, but still got the error. I installed Ubuntu-Desktop, but when I select "Gnome" from the session menue at the bottom of the login page, it just logs into UNR session.
How do I install Gnome desktop so that I can log into a Gnome session?
I'm using an ATI card, however. I'm using a dual-monitor setup, such that one of the monitors is my HDTV. The problem is that flash has a bug in it (I don't care if Adobe claims it's a security feature, it's a bug) where it only opens full-screen mode on your left-most monitor, which happens to be my pc. Now I know an "easy" work-around is to switch the positions of my monitors, but I don't have room in my apartment to place them differently and switching them only virtually would confuse and frustrate me (I tried it before).
The default Ubuntu Desktop manager is very limited, and only allows me to span the display. The manager within ATI Catalyst Control center is even more limited (it doesn't even like when I use different resolution on each monitor). So I'm hoping to use separate X sessions for each display instead (I'm aware that I can't move windows between the monitors but that would not be as big of an issue to me). Can someone suggest how to setup a separate X session per monitor in ATI?
I am running Ubuntu 9.04 on a wireless networked host machine. The wireless NIC is usb based. Its running inetd for network based servers (telnet, ftp etc).For some reason telnet, ssh or any application specific connection, hangs for a few seconds and then comes back. This happens after every few minutes. I do not loose any sessions or any data flowing across but it is sort of very annoying.It is a dual boot machine and I have also got Windows XP 64-bit. When am running on windows this does not happen, hence am not sure if it is something to do with the wirless nic or something else
So, I thought I'd try Gnome as the default session. Using System...Administration...Login Screen, I selected Gnome as the default session.
When I rebooted, I see an ititial login screen, but when I click on anything, all I get is a black screen and a mouse pointer.
So now I am trying to switch back to the default. So I reboot, hit esc and drop into a root shell, type startx, and I get back to the default environment.
Now, however, When I try to use System...Administration...Login Screen, unlock does not work. I also tried by using su to change from root to my regular ID, but still, when I click on unlock in the login screen settings dialog, nothing happens.
How can I correct this? Is there a text file I can edit as root that will alow me to change things back to default?