DebianThis forum is for the discussion of Debian Linux.
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.
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.
Hello. I installed apache2, php5, mysql-server and phpmyadmin in Debian Squeeze using Synaptic. After that, I create a link to userdir.conf and userdir.load to /etc/apache2/mods-enabled so that i can store and run my PHP files in /home/user/public_html. But when I tried to browse my files in a browser, a dialog box asking me whether to open or save the file appears. But if I try to open phpmyadmin, it correctly display the page. How can i configure it to display the PHP file which resides in public_html in my browser? Thanks in advance.
Thank evo2. Yes, libapache2-mod-php5 is installed in my system. I type in address bar this:
Code:
http://localhost/~user/info.php
The content of info.php is
Code:
<?php
phpinfo();
?>
but the browser only open a dialog box asking whether to open or save the file. Is there any configuration I need to perform so that it can display the PHP files in the public_html? Thanks in advance.
as in commenting the entire block? What is their difference? thanks in advance.
Presumably, by default it is on so you shouldn't need to explicitly turn it on in your config file. For a definitive
answer you will need to read the documentation and check all your apache config files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.