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?.

Linux Software 434 This topic was started by , . Last reply by ,


data/avatar/default/avatar31.webp

4 Posts
Location -
Joined 2004-02-16
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

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Feb 16
Created
Feb 19
Last Response
0
Likes
2 minutes
Read Time
User User
Users

Responses to this topic


data/avatar/default/avatar10.webp

25 Posts
Location -
Joined 2004-02-16
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.

data/avatar/default/avatar31.webp

4 Posts
Location -
Joined 2004-02-16
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:
http://www.pastebin.org/index.php?page=show&id=7748&key=q7fqgho46j
 
thanks

data/avatar/default/avatar10.webp

25 Posts
Location -
Joined 2004-02-16
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

data/avatar/default/avatar31.webp

4 Posts
Location -
Joined 2004-02-16
OP
it already worked! thanks a lot!