Log in

View Full Version : Problems getting the script running....


milay
03-05-2009, 02:59 PM
Before I start: I guess it'll make things easier if I also provide my passwords, else this problem might not be able to be solved.
So please, don't mess around with the sites. I personally don't care if you change anything since I can easily change it back or create a new site.
But I want to solve this problem and this might become more difficult if you make more problems appear.....

Problem seems to be solved, psswords already changed.

------------

I host the sites at bplaced.net.


First, I made a test page: http://wolken.bplaced.net
The database runs with the same domain (http://phpmyadmin.wolken.bplaced.net)
Password used for both: neklow

This site is running fine.

The config.php has the following information:

<?php

// PHP Easy Adoptables Configuration File

$dbhost = 'localhost'; //DB Hostname
$dbuser = 'wolken'; //DB User
$dbpass = 'neklow'; //DB Password
$dbname = 'wolken'; //Your database name
$dname = 'wolken.bplaced.net'; //Your domain name (No http, www or . )
$spath = ''; //The folder you installed this script in, if subfolder use a slash, if root domain empty
$auser = 'milay'; //Admin Username for Host Admin CP
$apass = 'hylo135'; //Password for Host Admin CP

?>

----------------------------------------------

Now the problem: I wanted to create a proper adoptables site.
The domain: http://aenimals.bplaced.net
The database: http://phpmyadmin.aenimals.bplaced.net
Password used for both: hugede45

The config.php:

<?php

// PHP Easy Adoptables Configuration File

$dbhost = 'localhost'; //DB Hostname
$dbuser = 'aenimals'; //DB User
$dbpass = 'hugede45'; //DB Password
$dbname = 'aenimals'; //Your database name
$dname = 'aenimals.bplaced.com'; //Your domain name (No http, www or . )
$spath = ''; //The folder you installed this script in, if subfolder use a slash, if root domain empty
$auser = 'milay'; //Admin Username for Host Admin CP
$apass = 'hylo135'; //Password for Host Admin CP

?>


However, when trying to load the page, it says:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'www-data'@'localhost' (using password: NO) in /users/aenimals/www/inc/functions.php on line 44
Error connecting to mysql database!

---------------------------------------------

Do you have any ideas what might cause this error?

You may check the FTP-accounts if this'll help.

Thanks in advance to all who try to help me!!

BMR777
03-05-2009, 03:05 PM
Double check that on the second site you uploaded config.php to the inc folder. If the file was not uploaded or only partially uploaded (corrupt upload) that would cause the issue. The error you get shows that you're not even attempting to use a database password, which I can see is not the case.

Just try re-uploading config.php and let me know if that has any effect.

milay
03-05-2009, 03:25 PM
The uploaded file is correct.
(You can check yourself, the download link is: ftp://aenimals.bplaced.net/inc/config.php
If this doesn't work, you can manually check the FTP-account with the password in the first post)

BMR777
03-05-2009, 03:41 PM
Ok. Please PM me your FTP username and password. The password in the first post doesn't work and I need a username anyway.

BMR777
03-05-2009, 05:47 PM
Your site seems to be working now, sort of. Looking at the HTML source, did you mess with the templates at all?

milay
03-05-2009, 08:31 PM
Yay! It works! Much thanks!

Well, I played around a bit with the template, but it still worked at the wolken.bplaced.net site (my modified template).
Was this the cause ofthe problem? (but why did the error say something with databse, when it's the template?)
It might be, that I accidentially saved unfinished changes in the original crystal x-template......

BMR777
03-06-2009, 02:48 PM
I'm not sure what the cause was. I don't think it was the template though. Anyway, it seems to be working now. I see you have a custom template that is on the site now.

gjac1
03-08-2009, 07:21 AM
milay, how did you get this webshost to allow the images to be shown ?? they seem to have the php read function disabled :(