PHP problem


 
Thread Tools Search this Thread
Operating Systems Linux PHP problem
# 1  
Old 05-04-2005
CPU & Memory PHP problem

Hi frnds

I installed phpmyadmin for OTRS but when ever i tried to open the phpMyAdmin-2.6.2/index.php page i m getting the following error


" urldecode the db name if (isset($lightm_db)) { // no longer urlencoded because of html entities in the db name // $db = urldecode($lightm_db); $db = $lightm_db; unset($lightm_db); } $url_query = PMA_generate_common_url(isset($db) ? $db : ''); header('Content-Type: text/html; charset=' . $GLOBALS['charset']); require_once('./libraries/relation.lib.php'); $cfgRelation = PMA_getRelationsParam(); if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) { PMA_purgeHistory($cfg['Server']['user']); } $phpmain_hash = md5($cfg['PmaAbsoluteUri']); $phpmain_hash_js = time(); ?> 0) { PMA_availableDatabases(); // this function is defined in "common.lib.php" } else { $num_dbs = 0; } if ($num_dbs > 1) { if ($cfg['LeftFrameLight']) { $query_frame_height += 20; } } if ($cfg['QueryFrame']) { /* Will we show list of servers? */ if ($cfg['LeftDisplayServers'] && $cfg['DisplayServersList'] && count($cfg['Servers']) > 1) { $query_frame_height += (count($cfg['Servers']) + 1)*15; } if ($cfg['QueryFrameJS']) { echo '' . "\n"; echo "\n"; echo ' ".


can any one help me out for solving the problem.

Mit
# 2  
Old 05-04-2005
Does your Web server run other PHP scripts correctly? Seems like it doesn't, because it outputs PHP code. Or did you corrupt the config.inc.php so syntax errors occur?
# 3  
Old 05-05-2005
CPU & Memory hi bro

Ya u r write non of my php scripts is working.But my config.inc.php is working fine what else i had to do.

Mit
# 4  
Old 05-06-2005
Except PHP code, are there any error messages? The text you quoted did not have any error messages.
# 5  
Old 05-06-2005
CPU & Memory Error Msg for config.inc.php

hi bro

this is the error message i m getting for the file config.inc.php i m running this message in the Mozilla browser i.e " file:///home/mit/phpMyAdmin-2.6.2/config.inc.php "

"
= 4.3.0) $cfg['Servers'][$i]['controluser'] = 'otrs'; // MySQL control user settings // (this user must have read-only $cfg['Servers'][$i]['controlpass'] = 'otrs'; // access to the "mysql/user" // and "mysql/db" tables). // The controluser is also // used for all relational // features (pmadb) $cfg['Servers'][$i]['auth_type'] = 'http'; // Auethentication method (config, http or cookie based)? $cfg['Servers'][$i]['user'] = 'root'; // MySQL user $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed // with 'config' auth_type) $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only // this db is displayed in left frame // It may also be an array of db-names, where sorting order is relevant. $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features // (see scripts/create_tables.sql) // - leave blank for no support // DEFAULT: 'phpmyadmin' $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table // - leave blank for no bookmark support // DEFAULT: 'pma_bookmark' $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc) // - leave blank for no relation-links support // DEFAULT: 'pma_relation' $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields // - leave blank for no display fields support // DEFAULT: 'pma_table_info' $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema // - leave blank for no PDF schema support // DEFAULT: 'pma_table_coords' $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf // - leave blank if you don't want to use this // DEFAULT: 'pma_pdf_pages' $cfg['Servers'][$i]['column_info'] = ''; // table to store column information // - leave blank for no column comments/mime types // DEFAULT: 'pma_column_info' $cfg['Servers'][$i]['history'] = ''; // table to store SQL history // - leave blank for no SQL query history // DEFAULT: 'pma_history' $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables // are up to date. This prevents compatibility // checks and thereby increases performance. $cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root login $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use = ''; $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults = array(); $i++; $cfg['Servers'][$i]['host'] = ''; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['compress'] = FALSE; $cfg['Servers'][$i]['controluser'] = ''; $cfg['Servers'][$i]['controlpass'] = ''; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['only_db'] = ''; $cfg['Servers'][$i]['verbose'] = ''; $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql $cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark' $cfg['Servers'][$i]['relation'] = ''; // 'pma_relation' $cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info' $cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords' $cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages' $cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info' $cfg['Servers'][$i]['history'] = ''; // 'pma_history' $cfg['Servers'][$i]['verbose_check'] = TRUE; $cfg['Servers'][$i]['AllowRoot'] = TRUE; $cfg['Servers'][$i]['AllowDeny']['order'] = ''; $cfg['Servers'][$i]['AllowDeny']['rules'] = array(); $i++; "

for calender.php i m getting this error msg " ' . "\n"; } ?> "
and for some files its displaying nothing that is blank page is opening.
thanking u for the support.

Mit
# 6  
Old 05-06-2005
Quote:
Originally Posted by naik_mit
file:///home/mit/phpMyAdmin-2.6.2/config.inc.php
Hey ... you don't load PHP scripts this way. Using a URL with the file:// scheme simply means opening them, but PHP scripts in this case won't run. No wonder they don't run at all.

You need to set up a Web server. Put your scripts somewhere where the Web server will find it and enable PHP at the Web server. Finally you need to use a URL at the browser like

http://localhost/~user/phpMyAdmin/index.php

(This is just an example)

The script will load if the Web server is set correctly (and your PHPMyAdmin correctly configured)
# 7  
Old 05-09-2005
CPU & Memory Php problem

Hi bro,

Now my phpmyadmin has started as u have written it and its showing me the login page.But the problem is whenever
i click on the links it is showing me this error.


Not Found

1.The requested URL /PhpMyAdmin-2.6.2-pl1/server_variables.php was not found on this server.
Apache/2.0.46 (Red Hat) Server at 192.168.10.20 Port 80

2.
The requested URL /PhpMyAdmin-2.6.2-pl1/left.php was not found on this server.
Apache/2.0.46 (Red Hat) Server at 192.168.10.20 Port 80


Thanks for the Help.

Mit
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

php script problem

$result = shell_exec("/sbin/checkscript.sh jdoe"); echo "$result" ; i am running a script through php. the script is /sbin/checkscript jdoe. this script is supposed to output something similar to this: ################################ #### Welcome John Doe... (0 Replies)
Discussion started by: SkySmart
0 Replies

2. UNIX for Advanced & Expert Users

Running multiple php scripts into one php only, cron mail alert problem...

hi, while separated they produce the usual mail alert and i can see the output... if i write into the php script: <?php system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script1.php'); system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script2.php'); system('php -f... (0 Replies)
Discussion started by: 7stars
0 Replies

3. Solaris

problem in php installation..

hi am senthil, am trying to install PHP in my solaris 10 x86 ... i installed oracle,apache,tomcat,mysql .. the only thing am missing is PHP.. i tried to install php using ./configure .. my ./configure command.. ./configure \ --with-apxs=/usr/apache/bin/apxs \... (4 Replies)
Discussion started by: senkerth
4 Replies

4. Solaris

php installation problem..

hi am senthil, i want to install php 5 in my solaris 10 x86server.. i already enabled apache and my mysql 5 is woking fine.. i want to know the procedure to install php.. i googled it and got some info .. i have doubt in the following thing /configure -with-apache2=/opt/httpd-2.0.49... (1 Reply)
Discussion started by: senkerth
1 Replies

5. UNIX for Advanced & Expert Users

PHP installation problem

Hey Linux experts, I am very new to Linux and PHP. I am trying to install php-5.3.2 on Linux(Centos), but I am getting an error as given below: cc1: out of memory allocating 2036 bytes after a total of 63528960 bytes make: *** Error 1 What is exactly meant by this error?Can someone guide... (5 Replies)
Discussion started by: mahesh_raghu
5 Replies

6. Shell Programming and Scripting

problem with a php script

The script is called php-ping and it is taken from theworldsend.net I modified it so that instead of ping he will execute another command called scr witch telnets to a switch and changes the vlan on an interface the telnet script: #! /bin/bash ( sleep 0.2; echo admin; sleep 0.2; echo... (1 Reply)
Discussion started by: silently
1 Replies

7. Shell Programming and Scripting

i have a serious problem in php

hello guys, well as i mentioned first i have a serious problem, i need your help. i have a hosting plan with linux, apache and php. i have a script (that have my UID=32256) inside my web site (in the panel folder -see below-) that creates new scripts (in the pages folder) (the new scripts... (0 Replies)
Discussion started by: mehdi
0 Replies

8. UNIX for Dummies Questions & Answers

PHP rpm problem

I did not know where to ask this problem so posting it here The version of php used is 4.3.2. 1. If I say rpm -qa | grep php, I get mod_php4-4.2.2 and mod_php4-core-4.2.2 If I do php -v, I get 4.3.2. How could that be possible? I am sure the version which is being used is 4.3.2. 2. The... (2 Replies)
Discussion started by: superprogrammer
2 Replies

9. Shell Programming and Scripting

Problem with PHP and MySQL

Okay, I'm new to this PHP and MySQL stuff, so help would be VERY much appreciated. :) On my iMac runnning Panther, it has MySQL and PHP installed. Yet when I view a PHP file from the iMac or another computer at my house, I get the source code. What's wrong? (11 Replies)
Discussion started by: Danny_10
11 Replies

10. Shell Programming and Scripting

PHP: problem with index.php

iam geting a error with this index script. heres the error Parse error: parse error in c:\phpdev\www\dev\compulearn\in work\index.php on line 39 Whats wrong?? ------------------------ <?php //display header and left bars include ('header.php'); include ('left.php'); //connect... (13 Replies)
Discussion started by: perleo
13 Replies
Login or Register to Ask a Question