PHP in mandrake 9.2

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




Topic Options
#5714 - 02/16/04 08:54 PM PHP in mandrake 9.2
subhuman Offline
newbie

Registered: 02/16/04
Posts: 4
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?

Top
Advertisement
#5757 - 02/18/04 06:23 AM Re: PHP in mandrake 9.2
idud Offline
newbie

Registered: 02/16/04
Posts: 25
Loc: Bandung, Indonesia
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.

Top
#5765 - 02/18/04 04:44 PM Re: PHP in mandrake 9.2
subhuman Offline
newbie

Registered: 02/16/04
Posts: 4
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

Top
#5776 - 02/19/04 05:31 AM Re: PHP in mandrake 9.2
idud Offline
newbie

Registered: 02/16/04
Posts: 25
Loc: Bandung, Indonesia
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 [url=www.google.com]www.google.com[/url] 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

Top
#5777 - 02/19/04 08:11 AM Re: PHP in mandrake 9.2
subhuman Offline
newbie

Registered: 02/16/04
Posts: 4
it already worked! thanks a lot!

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
What version of Linux is this?
by DxxLinux
Yesterday at 07:59 PM
Anything like HyperCam?
by Luckycharm8989
12/11/09 02:08 PM
Thank you for your help
by guaiguai
12/11/09 07:29 AM
What the problem is?
by guaiguai
12/11/09 05:09 AM
Need an database for Dictionary
by shaanspecial
12/09/09 10:19 AM
Who's Online
2 Registered (Merries007, Philipp), 168 Guests and 45 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91325 Members
24 Forums
58850 Topics
189361 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22