Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP module to CGI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ass0ciate
n00b
n00b


Joined: 31 Aug 2003
Posts: 63

PostPosted: Tue Sep 16, 2003 1:22 pm    Post subject: PHP module to CGI Reply with quote

Hello,

I currently have PHP installed as an Apache module and I want to install it as CGI. I know that there are some changes that need to be made to the config files to allow PHP to run as CGI but is there anything I really need to do to 'remove' the PHP module installation, other than removing the LoadModule directive? Thanks in advance.
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Tue Sep 16, 2003 2:20 pm    Post subject: Reply with quote

no, the loadmodule/addmodule lines in the apache.conf should be enough ?
but why u want to run it as cgi in the first place ? its usually a very bad idea - resourcewise and securitywise. be sure to double read the php manual on cgi ...
Back to top
View user's profile Send private message
ass0ciate
n00b
n00b


Joined: 31 Aug 2003
Posts: 63

PostPosted: Tue Sep 16, 2003 3:16 pm    Post subject: Reply with quote

Thanks for the reply, I got it work fine now :)

As for your comment with regards to 'why CGI', well, I realize that it is slow and more resource-intensive but these factors don't play a role at the moment as I'm strictly in the development stage of my app. As to the security, I've read various things but the one that keeps coming up is that it is actually possible to make CGI more secure than module with the use of chroot, etc. and since module runs under apache's 'nobody' user there are issues with that as well. To be completely honest I am not completely sure which I will use in the end but for now I think CGI is going to make my life a little easier (at least when it comes to debugging my scripts).

Again, thanks for your input.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum