PDA

View Full Version : php as cgi - what's the difference?


scotty
Mon 27th May '02, 3:52am
I searched the forum, but I could't find something describing the disadvantage of php as cgi...

...only the advice to compile php with apache.

Can someone please tell me the differences?
Is it slower? How much? Do you need more memory in the server...

THX!

scott.

eva2000
Mon 27th May '02, 6:48am
Originally posted by scotty
I searched the forum, but I could't find something describing the disadvantage of php as cgi...

...only the advice to compile php with apache.

Can someone please tell me the differences?
Is it slower? How much? Do you need more memory in the server...

THX!

scott. php as an apache module will run faster... you also have to take into consideration security issues

http://au.php.net/manual/en/security.php

http://au.php.net/manual/en/security.cgi-bin.php

http://au.php.net/manual/en/security.apache.php

http://au.php.net/manual/en/install.unix.php

i'd run it as an apache module

scotty
Mon 27th May '02, 7:31pm
Originally posted by eva2000
php as an apache module will run faster... you also have to take into consideration security issues
hm...

...most hosters run it as cgi explizit for security reasons. (prevent user to access other docs outside their home-folder)

but as i understand the linked articles says that php as cgi is a risk? :confused:

or do i missundestand something!?