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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-05-2006, 10:37 PM
|
#1
|
Member
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194
Rep:
|
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
|
|
|
03-05-2006, 10:41 PM
|
#2
|
Member
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55
Rep:
|
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
|
|
|
03-07-2006, 05:57 PM
|
#3
|
Member
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 07:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|