View previous topic :: View next topic |
Author |
Message |
ass0ciate n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 31 Aug 2003 Posts: 63
|
Posted: Tue Sep 16, 2003 1:22 pm Post subject: PHP module to CGI |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mglauche Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/d4cac7603db6b920987fd.gif)
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Tue Sep 16, 2003 2:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ass0ciate n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 31 Aug 2003 Posts: 63
|
Posted: Tue Sep 16, 2003 3:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|