i've been trying to execute php scripts in my computer but it seems that it doesn't load; rather, the browser shows a dialog box and asks what application should i use to open php scripts. can anyone help me in this problem?
Page 1 of 1
PHP in mandrake 9.2
#2
Posted 18 February 2004 - 07:23 AM
Be sure you have mod_php-xxx installed, the xxx means versions that suit your installed apache release (it can be done easily with rpmdrake or from Mdk Cont. Center).
When you're done, please check the file /etc/httpd/conf/comonhttpd.conf (sorry if mistyped
), be sure that your php script file extension parsed by apache.
Then, restart httpd.
Hope this help you.
When you're done, please check the file /etc/httpd/conf/comonhttpd.conf (sorry if mistyped
Then, restart httpd.
Hope this help you.
#3
Posted 18 February 2004 - 05:44 PM
thanks for the reply. but i already have done that yet no changes happened. i just want to clarify what do you mean by "php script file extension parsed by apache?"
here is the copy of my commonhttpd.conf
thanks
here is the copy of my commonhttpd.conf
Code:
http://www.pastebin.org/index.php?page=show&id=7748&key=q7fqgho46j
thanks
#4
Posted 19 February 2004 - 06:31 AM
Quote:
"php script file extension parsed by apache?"
here is the copy of my commonhttpd.conf
Code:
http://www.pastebin.org/index.php?page=show&id=7748&key=q7fqgho46j
thanks
What i mean in "php script file extension" is the extension of your php file, it's ussually .php, .php3, or .phtml.
I'm not sure if your commonhttpd.conf just contain 1 line, for an example go to www.google.com and search about commonhttpd.conf you will find some examples there.
If you are, too tired to do that, please open your original commonhttpd.conf and serch for this state:
Code:
<IfModule mod_php.c> AddType application/x-httpd-php .phtml
and add your php file extensions after the .phtml or something, just separate them with a space.
Hope this help
Share this topic:
Page 1 of 1

Help










