Compatible Support Forums: PHP in mandrake 9.2

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PHP in mandrake 9.2

#1 User is offline   subhuman 

  • newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-February 04

Posted 16 February 2004 - 09:54 PM

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

#2 User is offline   idud 

  • newbie
  • Group: Members
  • Posts: 25
  • Joined: 16-February 04

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 wink ), be sure that your php script file extension parsed by apache.

Then, restart httpd.

Hope this help you.
0

#3 User is offline   subhuman 

  • newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-February 04

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

Code:

http://www.pastebin.org/index.php?page=show&id=7748&key=q7fqgho46j



thanks
0

#4 User is offline   idud 

  • newbie
  • Group: Members
  • Posts: 25
  • Joined: 16-February 04

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
0

#5 User is offline   subhuman 

  • newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-February 04

Posted 19 February 2004 - 09:11 AM

it already worked! thanks a lot!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users