Lighttp, Rails, cPanel and PHP5 questions

Hey,
I decided to update my cPanel (CentOS) servers so I can use lighttpd, ruby on rails and php5, and now I have a few questions:

1- I recompiled PHP from the command line, I updated it from version 4 to 5. When I run php -v it shows version 5, but on apache it will still run as php4. This is probably because of mod_php4, if I wanted php5 on apache I'd have to recompile it from WHM. But is there any chance that this recompile will cause me any trouble? As far I know I overwrote the /usr/local/bin/php file, or does cpanel uses another binary? Why does it come with php4 installed then?

2- Can I disable apache 1.3 from WHM and install apache 2.0 from the command line? Will that mess up with WHM (I don't expect it to be able to handle accounts and everything like it does with apache 1.3, but will the other features work?)

3- I set up lighttpd, removed apache's httpd from /etc/init.d/httpd, and even though lighttpd has its file there, and it works (/etc/init.d/lighttp start), why won't it automatically start when the server boots like apache?

4- Lighttpd requires me to use a user and group to run it that's not root. Up until now I was using a user created by cPanel when I created an account, but what command should I run to create an user/group with the right permissions to use with lighttpd?

Thanks in advance

 

 

 

 

Top