I can run php scripts on my computer from the command prompt but I can't open it through my web browser. My assumption is that this happens because apache is not configured to use php.
Does anyone know what lines(s) I should add to apache's httpd.conf file? I found some examples online, but they all differ from one another(different versions, different tweaks, etc). I tried some of them, but none of them worked. What is the 'right' way to add php to apache? I am pasting the the fist paragraph generated by phpinfo(). Please let me know if any more information is required. Thanks.
PS. I am running ubuntu linux

PHP Version => 5.2.1

System => Linux ryy 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686
Build Date => Nov 28 2007 23:13:02
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/cli/conf.d
additional .ini files parsed => /etc/php5/cli/conf.d/mysql.ini,

10 Years
Discussion Span
Last Post by WebManiac
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.