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’ ]=’localho st’;
$cfg[‘Servers’][$i][‘auth_ type’’]=’c onfig’;
$cfg[‘Servers’][$i][‘user’ ]=’myusern ame’;
$cfg[‘Servers’][$i][‘passw ord’]=’myp assword’;
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.
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’
$cfg[‘Servers’][$i][‘auth_
$cfg[‘Servers’][$i][‘user’
$cfg[‘Servers’][$i][‘passw
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
LoadModule php5_module modules/libphp5.so
Where is this line?
ServerName localhost
I have done a search and could not find that line.
ASKER
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.
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.
ASKER
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’ ]=’localho st’;
$cfg[‘Servers’][$i][‘auth_ type’’]=’c onfig’;
$cfg[‘Servers’][$i][‘user’ ]=’myusern ame’;
$cfg[‘Servers’][$i][‘passw ord’]=’myp assword’;
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.so ck' (2)
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’
$cfg[‘Servers’][$i][‘auth_
$cfg[‘Servers’][$i][‘user’
$cfg[‘Servers’][$i][‘passw
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.so
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, but know I get this error:
Warning: unable to parse url (http:/localhost/phpMyAdmin/) in /var/www/phpMyAdmin/main.p hp on line 12
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p hp:12) in /var/www/phpMyAdmin/main.p hp on line 16
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p hp:12) in /var/www/phpMyAdmin/librar ies/ob.lib .php on line 53
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p hp: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.p hp: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.p hp: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.p hp: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.p hp: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
Warning: unable to parse url (http:/localhost/phpMyAdmin/) in /var/www/phpMyAdmin/main.p
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p
Warning: Cannot add header information - headers already sent by (output started at /var/www/phpMyAdmin/main.p
Welcome to phpMyAdmin 2.2.7-pl1
MySQL 3.23.49-log running on localhost as oneplace@localhost
ASKER
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.