Link to home
Start Free TrialLog in
Avatar of starview
starview

asked on

Setup up of PHP on Libranet

I can not get php script to execute.

When I installed Libranet GNU/Linux 2.8.1 it asks me several questions if I wanted to install php, do you want me to fill in the correct information on the php.ini and I answer yes.

But, when I tried to run any php script from the browser it will only ask me if I want to save the file.
There isn't any information on installing phpMyAdmin on Libranet.

So I place phpMyAdmin in the /var/www/ which is asigned root directory and where the index file is for you web page  and setup the config.inc.php file with the following:

$cfg[‘PmaAbsoluteUri’]=’http://localhost:80/phpMyAdmin’;

$cfg[‘Servers’][$i][‘host’]=’localhost’;

$cfg[‘Servers’][$i][‘auth_type’’]=’config’;

$cfg[‘Servers’][$i][‘user’]=’myusername’;

$cfg[‘Servers’][$i][‘password’]=’mypassword’;

When I run the following in my browser http://localhost:80/phpMyAdmin

It changes in the browser to http://127.0.0.1/phpMyAdmin

and It Displays the phpMyAdmin directory content, but will not run the index.php script for phpMyAdmin.

I have checked to see if apache and mysql are running and all seems to be ok.

ASKER CERTIFIED SOLUTION
Avatar of pdub79
pdub79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of starview
starview

ASKER

I have done all you have written above, but still get the same thing when I type
http://localhost it gaves me a list of directorys which is fine, but when I click the directory for phpMyAdmin it tells me the ** is of application/x-httpd-php and does not know how to handle this type.
This also happens when I tried to run any php script.

Also, I am getting this when I start apache:
[wed mar 30 07:47.46 2005] [alert apache:could not determine the server's full qualified domain, using 12.0.0.1 for serverName.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am running php4 not php5 so I did'nt put that line in
LoadModule php5_module     modules/libphp5.so

Where is this line?
ServerName   localhost

I have done a search and could not find that line.
I found them they were commented out.
I can now run php script, but I can not run phpMyAdmin it go as far as the language menu and stops.

I think I know what the problem is, I am trying to run phpMyAdmin 2.6.pl3
and should go back to and old version for php4.
anyway I think that is the the problem. Let me know if that is correct.
OK, I deleted the phpMyAdmin-2.6.1-pl3
and replaced it with phpMyAdmin-2.2.7-pl1
 I have the config,inc.php setup as follows.

$cfg[‘PmaAbsoluteUri’]=’http://localhost/phpMyAdmin’;

$cfg[‘Servers’][$i][‘host’]=’localhost’;

$cfg[‘Servers’][$i][‘auth_type’’]=’config’;

$cfg[‘Servers’][$i][‘user’]=’myusername’;

$cfg[‘Servers’][$i][‘password’]=’mypassword’;

But when I try and run phpMyAdmin Iget the following error.

Error
MySQL said:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, but know I get this error:
Warning: unable to parse url (http:/localhost/phpMyAdmin/) in /var/www/phpMyAdmin/main.php on line 12
 
 Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.php:12) in /var/www/phpMyAdmin/main.php on line 16
 
 Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.php:12) in /var/www/phpMyAdmin/libraries/ob.lib.php on line 53
 
 Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.php:12) in /var/www/phpMyAdmin/header.inc.php on line 23
 
 Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.php:12) in /var/www/phpMyAdmin/header.inc.php on line 24
 
 Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.php:12) in /var/www/phpMyAdmin/header.inc.php on line 25
 
 Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.php:12) in /var/www/phpMyAdmin/header.inc.php on line 26
 
 Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.php:12) in /var/www/phpMyAdmin/header.inc.php on line 28
     

Welcome to phpMyAdmin 2.2.7-pl1

 

MySQL 3.23.49-log running on localhost as oneplace@localhost