Jump to content
Compatible Support Forums
Sign in to follow this  
subhuman

PHP in mandrake 9.2

Recommended Posts

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?

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post
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 post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×