LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-05-2008, 02:58 AM   #1
cybernet4
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Question problem with domain in Ubuntu


a have a lighttpd server with php5 and Mysql extension ... on my ubuntu desktop

The problem is when a php script is trying to connect sub.domain.com

it says

Code:
Warning: mysql_pconnect() [function.mysql-pconnect]: Lost connection to MySQL server during query in /var/-/www/settings/database.php on line 16
Cannot connect to database, check if username, password and host are correct.
in database.php i have

PHP Code:
$database="*";

    
$mysql_user "user";

    
$mysql_password "password"

    
$mysql_host "mysql.*.ro";

    
$mysql_table_prefix "x"
if i replace mysql.*.ro with localhost
is working more then better

what is wrong

in windows worked perfectly


thanks.

CyBerNe7
 
Old 03-07-2008, 03:27 AM   #2
cybernet4
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
nobody ? (
 
  


Reply

Tags
lighttpd, mysql, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting on windows domain using ubuntu serious issues Linux - Laptop and Netbook 2 01-09-2008 03:36 PM
LXer: OpenLDAP + Samba Domain Controller On Ubuntu 7.10 LXer Syndicated Linux News 0 01-06-2008 01:20 PM
Intermittent Windows Domain Logon problems in Ubuntu GeneNZ Linux - Software 2 10-17-2007 11:27 PM
Connecting Ubuntu to Windows Domain rf123 Linux - Networking 2 01-26-2007 12:22 PM
ubuntu to windows 2003 ad domain Thermos Linux - Networking 1 08-14-2005 12:29 AM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration