I finally was sick of having to SSH into my Suse 10.3 box as root and manually starting XAMPP (therefore Ampache) when I turn the machine on (I turn it off after use just because it isn’t complete yet). After some research, I found that I could set it to run during boot by adding the command to run XAMPP (in my case, /opt/lampp/lampp start) into the /etc/rc.d/boot.local text file.
This DOES work, as far as starting everything up, BUT for some reason, when I start the system this way, if I try to stream, the flash player will come up, but nothing will play. I can see the data buffer fill, but it is faster than it should be. Keep in mind that I have to transcode, using ALAC and LAME. It normally takes 10-15 seconds for the song to stream to the player, but when using this method, the song gets to the player in 5ish seconds, almost as if I were just copying the file, as would be the case if I were using MP3s and not transcoding.
So, I checked the permissions of ALAC and LAME. Both were set to 755 root root. Noticing that XAMPP was running as nobody, I changed the permissions of ALAC and LAME to 755 nobody root. No dice, so I changed them back to root root. As root, I restarted XAMPP, and all was well… That’s odd… I logged out, then back in as a regular user, and received an error that XAMPP must be run as root (but through other research, saw that it switched to nobody after it is running).
It seems like there is an issue with how the program is set to run after boot. Is there a way that I can set it to run as root (then it will change on it’s own to nobody)?