Solved

xampp php

Posted on 2012-04-11
9
1,358 Views
Last Modified: 2012-04-12
I have successfully installed the latest xampp on a windows server 2008.
The localhost port is :888
Mysql is running on 3306

When I type in the url: http://localhost:888/xampp I get the correct orange administration screen and I can administer all the servers and files.

PHP info tells me that the port is Localhost:888
Mysql is on 3306

The problem is as follows:
If I create a website in the following directory:
c:\xampp/htdocs\sitename\sitename2\site\index.php

And access using:
http://localhost:888/sitename/sitename2/index.php

The page times out and gives an error telling me that it is waiting for the localhost

the connections.php file is as follows (the xxx values are correct in my file):
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_Onecallorders = "localhost:888";
$database_Onecallorders = "1callorders";
$username_Onecallorders = "xxx";
$password_Onecallorders = "xxx";
$Onecallorders = mysql_pconnect($hostname_Onecallorders, $username_Onecallorders, $password_Onecallorders) or trigger_error(mysql_error(),E_USER_ERROR);
?>

am I missing a configuration somewhere ?
0
Comment
Question by:doctorbill
  • 6
  • 3
9 Comments
 
LVL 3

Assisted Solution

by:gnemi
gnemi earned 500 total points
ID: 37832125
MySQL hostname would just be localhost.
0
 

Author Comment

by:doctorbill
ID: 37832210
where would this be ?
0
 

Author Comment

by:doctorbill
ID: 37832212
would it be in the my.ini file ?
0
 

Author Comment

by:doctorbill
ID: 37832220
This is what I get if I let the php page try to load:

Warning: mysql_pconnect() [function.mysql-pconnect]: MySQL server has gone away in C:\xampp\htdocs\OneCallOrders\Connections\Onecallorders.php on line 9

Warning: mysql_pconnect() [function.mysql-pconnect]: Error while reading greeting packet. PID=6120 in C:\xampp\htdocs\OneCallOrders\Connections\Onecallorders.php on line 9

Warning: mysql_pconnect() [function.mysql-pconnect]: MySQL server has gone away in C:\xampp\htdocs\OneCallOrders\Connections\Onecallorders.php on line 9

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\OneCallOrders\Connections\Onecallorders.php on line 9
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 3

Assisted Solution

by:gnemi
gnemi earned 500 total points
ID: 37832259
$hostname_Onecallorders = "localhost:888";

should just be
$hostname_Onecallorders = "localhost";

apache is listening on 888 not mysql
0
 

Author Comment

by:doctorbill
ID: 37832685
I now get the following:

Fatal error: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\OneCallOrders\Connections\Onecallorders.php on line

The pw for root is correct. How can I set up a different UN / PW or check the existing one ?
0
 

Author Comment

by:doctorbill
ID: 37832714
Sorry - I have found the problem. The root UN does not have a password at the initial instal of xampp. The site is now working

Having said that,  could you still tell me how to:
1 add a password for root
2 set up a new UN and PW in mysql

Thanks,
0
 
LVL 3

Accepted Solution

by:
gnemi earned 500 total points
ID: 37835179
you can change the MySQL root password at http://localhost/security/

and you can add a MySQL user through phpmyadmin located at http://localhost/phpmyadmin
0
 

Author Closing Comment

by:doctorbill
ID: 37836721
Very accurate and speedy responses
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
echo button 13 46
MySQL database data submission 7 39
how to get total ticket count on days wise using mysql 24 42
php image upload 3 27
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now