PhpMyAdmin Show SourceCode instead of login use prompt

rnc

Verified User
Joined
Jun 8, 2013
Messages
72
Hello
ive installed a new DA serer with CB2
when i try to access PHpmyadmin it show line of code like this:

phpMyAdmin
'; echo '

'; $class = null; // We rely on CSP to allow access to http://www.phpmyadmin.net, but IE lacks // support here and does not allow request to http once using https. if ($GLOBALS['cfg']['VersionCheck'] && (! $GLOBALS['PMA_Config']->get('is_https') || PMA_USR_BROWSER_AGENT != 'IE') ) { $class = 'jsversioncheck'; } PMA_printListItem( __('Version information') . ': ' . PMA_VERSION, 'li_pma_version', null, null, null, null, $class ); PMA_printListItem( __('Documentation'), 'li_pma_docs', PMA_Util::getDocuLink('index'), null, '_blank' ); PMA_printListItem( __('Wiki'), 'li_pma_wiki', PMA_linkURL('http://wiki.phpmyadmin.net/'), null, '_blank' ); // does not work if no target specified, don't know why PMA_printListItem( __('Official Homepage'), 'li_pma_homepage', PMA_linkURL('http://www.phpMyAdmin.net/'), null, '_blank' ); PMA_printListItem( __('Contribute'), 'li_pma_contribute', PMA_linkURL('http://www.phpmyadmin.net/home_page/improve.php'), null, '_blank' ); PMA_printListItem( __('Get support'), 'li_pma_support', PMA_linkURL('http://www.phpmyadmin.net/home_page/support.php'), null, '_blank' ); PMA_printListItem( __('List of changes'), 'li_pma_changes', PMA_linkURL('changelog.php'), null, '_blank' ); ?>


the code is larger than but trim that
 
For some reason PHP is not active.

Are you referring to the phpmyadmin instance installed with DirectAdmin? Or one installed under a usrename?

How are you calling phpmy adim? What is the entire URL? If a domain name, is that domain name owned by a user with php activated? Do simpler php scripts run on the server?

How are you running PHP on your server? (DirectAdmin offers several options, all in the /usr/local/directadmin/custombuild/options.conf file.)

Jeff
 
For some reason PHP is not active.

Are you referring to the phpmyadmin instance installed with DirectAdmin? Or one installed under a usrename?

How are you calling phpmy adim? What is the entire URL? If a domain name, is that domain name owned by a user with php activated? Do simpler php scripts run on the server?

How are you running PHP on your server? (DirectAdmin offers several options, all in the /usr/local/directadmin/custombuild/options.conf file.)

Jeff


Hello

other PHP scripts are work just fine under each user name
and also i tried to access PHPmyadmin trough user Domain


here is my option.conf

Code:
#PHP settings.
#Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, 5.5, no. php1/php2_mode: mod_php,$
php1_release=5.3
php2_release=no
php1_mode=fastcgi
php2_mode=php-fpm
htscanner=yes
php_ini=no
php_timezone=EDT
#Possible values - production or development
php_ini_type=production
ioncube=yes
x-mail-header=yes
zend=yes

#HTTP server. Possible values: apache, nginx
webserver=apache

#Apache settings

#Possible value: 2.4
apache_ver=2.4
mod_ruid2=no
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=no
redirect_host=lnx4.irdatacenter.net
redirect_host_https=no

#Possible values - 5.1, 5.5, 5.6
mysql=5.5
mysql_inst=yes
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Web applications
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes

#Mail options
exim=no
eximconf=no
clamav=yes
spamassassin=no
dovecot=yes

and recently i saw another problem in this setup
it is a Litespeed Webserver installed
when lite speed is enables php scripts show these errors

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/cp/virtual.php:1) in /home/user/domains/domain.com/public_html/cp/check.php on line 14


when i switch to apache the this error disappear ! but the phpmyadmin is still there

what could cause this
 
Please try:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs
 
Please try:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

Thanks
Solved !
but after i tried to upgrade to CB2 i used
.build all d
and rewrite !
why this solved the problem but not that ?

do you have any idea about this section ?

recently i saw another problem in this setup
it is a Litespeed Webserver installed
when lite speed is enables php scripts show these errors

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/cp/virtual.php:1) in /home/user/domains/domain.com/public_html/cp/check.php on line 14

Thank you
 
Back
Top