Jump to content

Issues connecting to DB


oalvarado

Recommended Posts

Hello all;

 

I'll start out with the hardware interface:

 

VPS hosting @ myhosting . com --> Linux(CentOS) Parallels Plesk 10.4.4

 

Problem:

 

I'm trying to host an auction on this server. My php.ini file is configured as per the instructions on the software, the installation for the software is done online you type in the following to install: yourdomain.com/admin/install.php. The installation is a series of five steps, 1. verify if server is supported. 2 DB creation. 3. LICENSE CHECK. 4. writing of config files 5. DB dump. Is there problems with this software or perhaps the server?

 

Doing the install as per the instructions on step 3. the License check  comes back as license failed. I found a way around that bypassing the license check, by the way I do have a license for it and a receipt that I paid for it. After modifying the software I'm able to get to step 4. writing of config files. When clicking o the next button (step 5) I get the following error on the browser:

 

Database access error. Please contact the site administrator.

UPDATE PHPAUCTIONXL_settings SET sitename='', siteurl='', adminmail=''

Access denied for user 'xxxxxxxxx'@'localhost' (using password: NO)

 

Well I am using a password to connect to the DB and I know the software (script) works fine because I tested it on my computer first using wamp and it installs with no errors. Anyways after speaking to the script developer he tells me that the server is the problem, even dough I change my php.ini file the host is restricting my f url open or that I might have a session variable issue at the server. Could that be true?

 

Well I'm open to any suggestions or Ideas if someone here is willing to help the link to the install is below with the DB user and passwords.

 

www.pujasyganas.com/admin/install.php -->l ink to install

localhost

user: xxxxxxx

pwd: xxxxxx

create new DB : auction

License #: 6DF68320JY372946V

 

If some one here is up to a challenge I'm open to upload the files or give acces to the server just let me know.

 

Thanks in advance guys.

Link to comment
Share on other sites

Yeah, ouch. You've set yourself back a bit with this post...

 

Does your host give you a name prefix at all? (for example - my host adds the generated username, lets say "ithaca_", and then adds the name of the domain - so it would be ithaca_randomwebsite for the username).

 

The password would come back as "No" since the username "may" be incorrect...I would try the prefixed name, or if you have CPanel, look in the MySQL DB wizard as the correct username (if there eve is one, mind you) should be listed there.

 

But yeah, you (hopefully) will pull this info offline before the Russian viagra squad gets hold of it.

Link to comment
Share on other sites

The error message, occurring at the time you are trying to execute an UPDATE query, means that you don't have a database connection at that time.

 

You would need to troubleshoot why the actual logic responsible for creating a database connection isn't doing so.

 

The quickest way of pinning down what is and is not working would be to set php's error_reporting to E_ALL and display_errors to ON so that all the php detected errors will be reported and displayed.

 

Just a few wild guess, but the configuration file either has short open tags in it or it didn't actually get written to due to a file/folder permissions.

Link to comment
Share on other sites

 

I'm open to upload the files or give acces to the server just let me know.

 

 

Kinda did already. Hope you check this thread soon sir.

Since he went 6 hours without noticing his db creds in public, I killed them.

 

OP, you absolutely 100% must change your database password the instant you read this.  Right now, stop reading and go change your password. 

Link to comment
Share on other sites

 

I'm open to upload the files or give acces to the server just let me know.

 

 

Kinda did already. Hope you check this thread soon sir.

Since he went 6 hours without noticing his db creds in public, I killed them.

 

OP, you absolutely 100% must change your database password the instant you read this.  Right now, stop reading and go change your password.

 

The cake is a lie. And so is your website...well, now.

 

I'm still looking for help with my own damn issue, but keep checking back to see the drama unfold. Oh dear, my life.

Link to comment
Share on other sites

OP, you absolutely 100% must change your database password the instant you read this.  Right now, stop reading and go change your password.

 

It's good that you took the time to do that. I already did that once on my own server (just posting code without thinking) and left it up for maybe 4 seconds. But seriously, how...can...what? What is wrong with some people?

 

Here are all my website credentials, login just like I would and do whatever!

 

Ok, no.

Link to comment
Share on other sites

  • 2 weeks later...

Thanks alot guys to all who responded to my problem.

the best answer to solve this problem was by  PFMaBiSmAd, I now know where my problem is, apparently I have a session_start() problem.

 

Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_ep254bt7v3n7a9ejfnludsnr00, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/Pujasyganas.com/httpdocs/admin/install.php on line 1

 

 

Warning: Unknown: open(/var/lib/php/session/sess_ep254bt7v3n7a9ejfnludsnr00, O_RDWR) failed: Permission denied (13) in Unknown on line 0

 

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

 

the new question is how to resolved this issue since I dont have a folder php in (var/lib) folder?

 

Thanks again for all your help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.