I'm kind of surprised you managed to hit that limit -- I run apache and pgsql on multiple servers at my workplace without encountering that limit. One thing that might be of help is that phppgadmin doesn't necessarily need to run on the same server as postgresql...
–
ShadurMay 6 '11 at 16:56

@Shadur I suspect there are lost semaphores from early crashes. I can't do anything about that at the moment, though, so I'm considering my other options.
–
Daniel C. SobralMay 6 '11 at 17:04

In that case I recommend you find some way to clear the lost semaphores and find out what keeps crashing, or raising the limit will just get you in trouble again when the new limit is reached...
–
ShadurMay 6 '11 at 17:53

@Shadur It is not crashing anymore, but to clear the semaphores I need to stop the database, and it will take a while before I get a window to do that.
–
Daniel C. SobralMay 6 '11 at 18:47

You can RECOMPILE, the Linux OS, and increase the hard limit. I bumped it up to thousands, because that's what I was using for one client (they were porting unix code to linux).. norman.
–
user80994Aug 15 '14 at 21:36