PHP in mandrake 9.2
This is a discussion about PHP in mandrake 9.2 in the Linux Software category; 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?.
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?
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Feb 16
Feb 19
0
2 minutes
Responses to this topic
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 ), be sure that your php script file extension parsed by apache.
Then, restart httpd.
Hope this help you.
OP
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
Code:
thanks
here is the copy of my commonhttpd.conf
Code:
http://www.pastebin.org/index.php?page=show&id=7748&key=q7fqgho46j
thanks
Quote:
"php script file extension parsed by apache?"
here is the copy of my commonhttpd.conf
Code:
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:
and add your php file extensions after the .phtml or something, just separate them with a space.
Hope this help
"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
OP
it already worked! thanks a lot!