Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

xampp php

Posted on 2012-04-11
9
Medium Priority
?
1,372 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 3

Assisted Solution

by:gnemi
gnemi earned 2000 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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
 
LVL 3

Assisted Solution

by:gnemi
gnemi earned 2000 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 2000 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 Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
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.

705 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