LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-05-2006, 10:37 PM   #1
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Rep: Reputation: 31
php page can't display but download as php file?


Hi,

I just install php4 , mysql and apache and try to test for a php page. BUt instead of displaying page it become a php file to download?? Below is a list of package i install :

===================================
root@dav-ubuntu:/# dpkg -l |grep php
ii libapache2-mod-php4 4.4.0-3ubuntu1 server-side, HTML-embedded scripting languag
ii php4 4.4.0-3ubuntu1 server-side, HTML-embedded scripting languag
ii php4-common 4.4.0-3ubuntu1 Common files for packages built from the php
ii php4-mysql 4.4.0-3ubuntu1 MySQL module for php4
ii phpmyadmin 2.6.4-pl1-1ubuntu1.1 set of PHP-scripts to administrate MySQL ove


root@dav-ubuntu:/# dpkg -l |grep mysql
ii libdbd-mysql-perl 2.9007-1 A Perl5 database interface to the MySQL data
ii libmysqlclient10 3.23.56-3 LGPL-licensed client library for MySQL datab
ii libmysqlclient12 4.0.24-10ubuntu2 mysql database client library
ii libmysqlclient14 4.1.12-1ubuntu3.1 mysql database client library
ii mysql-client 4.0.24-10ubuntu2 mysql database client binaries
ii mysql-common 4.0.24-10ubuntu2 mysql database common files (e.g. /etc/mysql
ii mysql-navigator 1.4.2-4 GUI client program for MySQL database server
ii mysql-query-browser 1.1.12-1ubuntu7 Official GUI tool to query MySQL database
ii mysql-query-browser-common 1.1.12-1ubuntu7 Architecture independent files for MySQL Que
ii mysql-server 4.0.24-10ubuntu2 mysql database server binaries
ii php4-mysql 4.4.0-3ubuntu1 MySQL module for php4
ii python-mysqldb 1.2.1c3-1ubuntu1 A Python interface to MySQL
ii python2.4-mysqldb 1.2.1c3-1ubuntu1 A Python interface to MySQL


ii apache 1.3.33-8ubuntu1 versatile, high-performance HTTP server
ii apache-common 1.3.33-8ubuntu1 support files for all Apache webservers
ii apache2-common 2.0.54-5ubuntu4 next generation, scalable, extendable web se
ii apache2-mpm-prefork 2.0.54-5ubuntu4 traditional model for Apache2
ii apache2-utils 2.0.54-5ubuntu4 utility programs for webservers
ii libapache2-mod-php4 4.4.0-3ubuntu1 server-side, HTML-embedded scripting languag
==============================

Thanks in advance.

chris
 
Old 03-05-2006, 10:41 PM   #2
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
as far as i know, you must edit file apache's httpd.conf.
This is instruction for you : -http://www.php.net/manual/en/install.unix.php
 
Old 03-07-2006, 05:57 PM   #3
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Original Poster
Rep: Reputation: 31
ok , I added in with the correct module and now it work after a few reboot. What i am interested to know is if I must restart linux box?

I tried to restart apache , mysql , inetd but still no luck. Its only after reboot , the php page get rendered finally...

Hopefully someone with similar experience can share some tips?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Php don't interpret my php file. mant Linux - Software 2 01-21-2006 10:09 AM
Suse 9.3/apache2/php4 - Firefox tries to download index.php, other *php pages work stefanlasiewski Suse/Novell 1 01-18-2006 06:12 PM
php display a file, driving me insane xushi Programming 14 02-02-2005 04:08 AM
php page will not load kaplan71 Linux - Software 6 09-11-2004 07:37 AM
file up/download php client on linux server sam99 Programming 5 03-10-2004 05:06 PM


All times are GMT -5. The time now is 05:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration