I just updated My Debian yesterday without changing the configuration of the Apache server. When i open any php file on localhost in the user directory it s prompting me a Save/Download Fire or open with program file . Anyone can help me with a solution . NB: phpmyAdmin is working perfectly . Anyone encountered this problem ? Need some help !!! Thank you in advance
Sounds like Apache does not have the handler setup for .php files, or, you have it turned off for that directory. Are there any .htaccess files within the folder that may be turning it off?
i searched for .htaccess this is my result of my search. /usr/share/doc/python-feedparser/docs/examples/.htaccess /usr/share/phpmyadmin/libraries/.htaccess /usr/share/phpmyadmin/setup/lib/.htaccess
Hi all, I have the same problem here. php was working pefrectly before I update. I am on Debian squeeze. When I try to open any php file in the userdir a pop up asking me where I want to save the php file appears. phpmyadmin is working. I would really appreciate some help here. Thanks in advance.
I reinstalled php and apache2 and phpmyadmin since it removed it by itself. still same problem. in the userdir php is not working but phpmyadmin is working.
I search in all the apache config filesif there is anything related to userdir that is strange but no everything is just like on the online server where everything is working fine. Where in the configuration files Chris do you suspect a problem? below is the output of my command. naji@naji:/etc/apache2$ grep -ri userdir ./ ./mods-enabled/userdir.load:LoadModule userdir_module /usr/lib/apache2/modules/mod_userdir.so ./mods-enabled/userdir.conf:<IfModule mod_userdir.c> ./mods-enabled/userdir.conf: UserDir public_html ./mods-enabled/userdir.conf: UserDir disabled root ./mods-enabled/php5.conf: <IfModule mod_userdir.c> ./mods-available/userdir.load:LoadModule userdir_module /usr/lib/apache2/modules/mod_userdir.so ./mods-available/userdir.conf:<IfModule mod_userdir.c> ./mods-available/userdir.conf: UserDir public_html ./mods-available/userdir.conf: UserDir disabled root ./mods-available/php5.conf: <IfModule mod_userdir.c>
<IfModule mod_php5.c> <FilesMatch "\.ph(p3?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> <IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_value engine Off </Directory> </IfModule> </IfModule>
<IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_value engine Off </Directory> </IfModule> nicksaliba You need to comment these lines. Do not set engine to On. Thanks a lot Chris for your help.