Contact SalesSitemapCustomer Login

Go Back   VPSlink Forums > Operating Systems > Debian

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2009, 11:03 PM
Junior Member
 
Join Date: Mar 2009
Posts: 1
Question PHTML file

I just created a debian LAMP server. I went ahead and installed phpmyadmin and when I try to visit phpmyadmin, I get a prompt to download a phtml file. I'm not sure how to fix this. Any help would be awesome.
Reply With Quote
  #2 (permalink)  
Old 03-30-2009, 07:59 PM
Administrator
 
Join Date: Dec 2007
Posts: 1,108
Default

Check your Apache configuration and add the following line if it does not already exist, then restart Apache:

Code:
AddType application/x-httpd-php  .php .phtml
This should allow Apache to parse phpMyAdmin's phtml output instead of offering it for download.
Reply With Quote
  #3 (permalink)  
Old 04-28-2009, 10:13 PM
Junior Member
 
Join Date: Apr 2009
Posts: 1
Post phtml download is wrong action

How or what must i change in wich file to change the action.
Caus now my server sends a download screen action.
But i do not want that. I want that my server pars the php files.
What must i do?
Reply With Quote
  #4 (permalink)  
Old 04-28-2009, 11:45 PM
Administrator
 
Join Date: Dec 2007
Posts: 1,108
Default

Quote:
Originally Posted by evarie View Post
How or what must i change in wich file to change the action.
Caus now my server sends a download screen action.
But i do not want that. I want that my server pars the php files.
What must i do?
  • Run apachectl -V or apache2ctl -V
  • Look for the SERVER_CONFIG_FILE parameter - this will be the path to your server configuration file
  • Run egrep -i '^Include' <SERVER_CONFIG_FILE_PATH> (where <SERVER_CONFIG_FILE_PATH> is the path you found in the prior step - the path will be /etc/apache/httpd.conf or /etc/apache2/apache2.conf by default on most systems)
  • One of the directories listed on these lines will contain your configuration file for PHP (assuming that PHP has been installed)
  • Locate your PHP configuration file and add the AddType application/x-httpd-php .php .phtml directive
Reply With Quote
  #5 (permalink)  
Old 04-29-2009, 04:30 AM
Senior Member
 
Join Date: Mar 2008
Posts: 126
Default

have you installed php5 (or better) and mysql?
Reply With Quote
Reply

Bookmarks

Tags
php5, phpmyadmin, phtml

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 02:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0