Sorry if this question is little bit out of topic. But I need help to overcome this problem fast.
Im trying to add ssh user to 4 of my server with PHP. At first, I tried with 2 server. I simply run adduser command and the page loading pretty slow. It is still acceptable.
So I add 2 more server and the page loading goes up to 300secs. So I increase my maximum php execution to unlimited. Then, weird error start to fill in my log.
$ Premature end of script headers: add.php $ (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
after minutes of loading, my browser shows 500 interval error
I just ran simple command which is adduser john -M -s /bin/ssh_user && echo john:abc12345 | chpasswd
It goes pretty well with 2 servers.. When I add 4 servers, the script dead. Is there any fix? or any better way to add ssh user via php?
http://ift.tt/1dvHQ0Z
0 comments:
Post a Comment