I downloaded the Drupal stack on my development machine and got the administration pages and everything all set up to where I like it.
Created a basic page and put it to the front.
Then used a free FTP program and upload the files to my Web server. It looks like the theme files successfully showed up and rendered…
It's the basic page that didn't render properly.
This is my first attempt at developing with Drupal.
WordPress was my first love, then had a fling with ASP.net pages.
:-)
It looks like it still pointing to the local host.
Maybe I'm answering my own question, but… I just want to be sure.
Do I just need to get my IP address for my main domain and insert that where it looks like it point to the local host?
What else do I need to do?
Here is the error messages that showed up…
Warning: PDO::__construct(): [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://127.0.0.1:33066) in DatabaseConnection->__construct() (line 304 of C:\CloudSites\144649\mywebsite.com\webroot\includes\database\database.inc).
Warning: PDO::__construct(): [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://127.0.0.1:33066) in DatabaseConnection->__construct() (line 304 of C:\CloudSites\144649\mywebsite.com\webroot\includes\database\database.inc).
Warning: PDO::__construct(): [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://127.0.0.1:33066) in DatabaseConnection->__construct() (line 304 of C:\CloudSites\144649\mywebsite.com\webroot\includes\database\database.inc).
Warning: PDO::__construct(): [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://127.0.0.1:33066) in DatabaseConnection->__construct() (line 304 of C:\CloudSites\144649\mywebsite.com\webroot\includes\database\database.inc).
PDOException: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. in lock_may_be_available() (line 167 of C:\CloudSites\144649\mywebsite.com\webroot\includes\lock.inc).
Warning: PDO::__construct(): [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://127.0.0.1:33066) in DatabaseConnection->__construct() (line 304 of C:\CloudSites\144649\mywebsite.com\webroot\includes\database\database.inc).
Comments
see your 'settings.php'
see your 'settings.php' files, the database name, user and pssword must be correc to your server config.
ꦱꦠꦽꦶꦪ
Set the host and port in settings.php
Hi Rob,
Specifically, look at the section of code in settings.php that defines the database connection. In the example below, notice the host and port settings. In your file, change these to point to the correct host.
On most hosting servers, the host is 'localhost' and the port you can leave empty, i.e. ''.
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'acquia_drupal',
'username' => 'drupaluser',
'password' => '',
'host' => '127.0.0.1',
'port' => '33066',
'driver' => 'mysql',
'prefix' => '',
),
),
);
Good luck.
- Mike
The Settings in the error messages…
the setting letter in error messages, I have to assume are from my development machine.
I need the settings to reflect my life Web server.
Wouldn't the port be 80?
Also, wouldn't that username and password automatically upload… The ones I created, maybe I'm thinking about that username and password to log into the administration pages.
Come to think of it, I don't remember setting username or password for any of the databases.
I used a program called, "Acquia Dev Desktop Control Panel"…
on the main dialog box for this program, there is a button for "Manage My Database"…
When I click on it, it opens up my web browser and a page for "phpadmin" opens…
I just got done looking over that phpadmin page… It looks like I can edit settings.
if you give me some directions on which one to edit, I'll do it…
RobUsing Acquia Dev Desktop,
Rob
Using Acquia Dev Desktop, you should not have to change anything in phpMyAdmin.
Your site's settings.php should have been amended automatically when you either created a new or imported a site.
The '$databases = array' should be like this:
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'acquia_drupal',
'username' => 'drupaluser',
'password' => '',
'host' => '127.0.0.1',
'port' => '33066',
'driver' => 'mysql',
'prefix' => '',
),
),
);
Unless, you have designated another port to be used. If so, just change the port to reflect the preferred port for your setup.
Also, on the bottom of your site's settings.php (automatically created)...
///////////////////////////////////////////////////////////////////////
// Please don't edit anything between <@@ADCP_CONF@@> tags //
// This section is autogenerated by Acquia Dev Desktop Control Panel //
///////////////////////////////////////////////////////////////////////
//<@@ADCP_CONF@@>
$base_url = 'http://YOURLOCALHOST:8082/YOURDOMAIN.com';
//D6 DB config
$db_url = 'mysqli://drupaluser@127.0.0.1:33066/YOUR_DATABASE_NAME_GOES_HERE';
//D7 DB config
$databases = array('default' => array('default' => array(
'driver' => 'mysql',
'database' => 'YOUR_DATABASE_NAME_GOES_HERE',
'username' => 'drupaluser',
'password' => '',
'host' => '127.0.0.1',
'port' => 33066 )));
//
Ralph Manis
Infinitee Designs
https://www.infinitee-designs.com/
https://www.infinitee-designs.com/webdesign
https://www.infinitee-designs.com/t-shirts