Unstoppable Domains โ€” Get your daily AI drops report

Database help

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

tech4

Established Member
Impact
161
Problems solved!
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Often means you're connecting with the wrong username+password. check they are 100% correct for the database you are connecting to.
 
0
•••
Well how do I change it? is it the config file or the .htaccess file?
 
Last edited:
0
•••
Well how do I change it? is it the config file or the .htaccess file?

config file usually...is it a directory?
 
0
•••
Yes its a directory. I think.
I don't know why I also have many .htaccess in there.

....
Let me try to make the changes to the config. if it will work.

The config file is in connections and connections_server. Are those the right folders?
I have like 10 .htaccessfiles around too...don't know why they are all there.
How would I open the .htaccess ? and would site work if I delete them all?
 
0
•••
Yes its a directory. I think.
I don't know why I also have many .htaccess in there.

....
Let me try to make the changes to the config. if it will work.

The config file is in connections and connections_server. Are those the right folders?
I have like 10 .htaccessfiles around too...don't know why they are all there.
How would I open the .htaccess ? and would site work if I delete them all?

Yikes...sounds like you've got a mess in there - you should only have one .htaccess
as far as I know.

If I were you, I'd be trying to deal with that first...are they all in one file?
 
0
•••
what is on line 40 of paging_class.php?

How are you connecting to the database?
 
0
•••
For the config file,
public_html > include > config.php

for the mysql stuff - should look something like this?

define('LANGUAGE', 'en');
define('DB_DRIVER', 'mysql');
define('DB_HOST', 'localhost');
define('DB_NAME', 'dbname_dbname');
define('DB_USER', 'dbname_username');
define('DB_PASSWORD', 'password');
 
0
•••
Thanks for the responses. Yes I have like 10 .htaccess files. But they are in different folders (don't know why) and some of them are a bit different. But since I haven't touch them, I am not going to.

Thanks for the advice everyone.

Yes the config files are fixed and updated with new password and usernames.

The problem was the new host, changed the database name, changed the user name, changed the password and I have a few directories for a few config files. Basically the config files were the same thing, just like Mod Mis_chiff mentioned. I went in there, and changed everyone of them.

So problem solve.
But I have another one, before I went to the new host, my old host (or programmer) deleted my old database, so I did not make a backup of the few updated files, but still have them I believe. So I am going back to the old host(still have an account) and trying to download a few files to test which ones are updated.

Thanks everyone!
 
0
•••
Thanks for the responses. Yes I have like 10 .htaccess files. But they are in different folders (don't know why) and some of them are a bit different. But since I haven't touch them, I am not going to.

Thanks for the advice everyone.

Yes the config files are fixed and updated with new password and usernames.

The problem was the new host, changed the database name, changed the user name, changed the password and I have a few directories for a few config files. Basically the config files were the same thing, just like Mod Mis_chiff mentioned. I went in there, and changed everyone of them.

So problem solve.
But I have another one, before I went to the new host, my old host (or programmer) deleted my old database, so I did not make a backup of the few updated files, but still have them I believe. So I am going back to the old host(still have an account) and trying to download a few files to test which ones are updated.

Thanks everyone!

Glad you got it resolved....:)
 
0
•••
Problems solved!
 
Last edited:
0
•••
Looks like it's not finding something relating to the template..

what version directory type are you installing?
 
0
•••
Problems solved!
 
Last edited:
0
•••
I'll just say fingers crossed this time :lol:
 
0
•••
You're so right!

I got another one!
Warning: mkdir() [function.mkdir]: Permission denied in /usr/home/allfoodm/domains....file.php in line 18

What does a warning mean?
Why is permission to write denied?

Does it have to do with that file.php in line 18?

This is what line 18 is
How can I fix it?

$dir = realpath("../uploadedfiles");

if (is_dir($dir)) {



srand(make_seed());

$id = md5(time().rand());

$dir .= DIRECTORY_SEPARATOR.$id.DIRECTORY_SEPARATOR;
// $dir .= DIRECTORY_SEPARATOR.$id;

Line 18 here>>>>if (!is_dir($dir) && mkdir($dir)) chmod($dir,0777);



if (is_dir($dir)) {

$filename = $dir.basename($filename);

if ($filename && ((file_exists($filename) && unlink($filename)) || !file_exists($filename))) {

move_uploaded_file($_FILES['filename'.$i]['tmp_name'],($filename)) ;

$uploaded = true;
 
0
•••
Looks like folder or file permissions, I don't know how to decipher
the code to know what's wrong - if anything in that -
but permissions is what I would try if I got that error.
 
0
•••
Thanks (I got the answer from Digitalpoint)
Problem solved! AGAIN!

It was the permission thing. The line said permission set to 0777
while the file permission was set to like 775 or something, so I had to rewrite it to 777.

Thanks Mis_chiff
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back