Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help
Author Message
ghostgeek
Regular
Regular


Joined: Jan 14, 2005
Posts: 93

PostPosted: Tue Jun 14, 2005 12:52 am Reply with quote

Apologies if this is the wrong forum for this…

I’ve recently purchased a virtual server hosting account as my site has outgrown traditional shared hosting.

I was able to get phpMyAdmin installed. I’ve also backed up the MySQL database on my old shared host, FTPed it to my virtual server and imported the tables and data via MySQL in an SSH session.

I then untared all my sites files within the document root.

Almost there, but not quite…

When I attempt to view my site in a browser, I get this…

Code:


Warning: SAFE MODE Restriction in effect. The script whose uid is 32454 is not allowed to access ./config.php owned by uid 10001 in /home/httpd/vhosts/DOMAIN.com/httpdocs/mainfile.php on line 109

Fatal error: Failed opening required 'config.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/DOMAIN.com/httpdocs/mainfile.php on line 109


Might I have something misnamed? My old host appended the user name to the front of every MySQL database created. Thus my Nuke database was called USERNAME_nuke

On my virtual server, I created a database with the same name – USERNAME_nuke I created the same DB user as I had on my old host with the same password. Alas it is not working.

Do I have the naming convention right, or is there something else? I ran a SQL Dump on a database called TEST and that’s the same name it had in the dump results, so I’m guessing the naming is right.

I’m lost here and any ideas and help are greatly appreciated.[/code]
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jun 14, 2005 3:56 am Reply with quote

The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren't very realistic, many people, especially ISP's, use safe mode for now.
says php....
 
View user's profile Send private message
ghostgeek
PostPosted: Tue Jun 14, 2005 4:18 am Reply with quote

Yes, I've seen that, but what does it tell me to solve the problem?
 
hitwalker
PostPosted: Tue Jun 14, 2005 4:30 am Reply with quote

well its weird cause even my site runs on safe-mode...
arte you sure you have it all normal set?
no weird paths somewhere?
And if you can contact your host ask them to turn off safe-mode for a minute so you can check if it makes a difference..

Or you can provide some login stuff so i can have a look....
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Tue Jun 14, 2005 4:43 am Reply with quote

I assume you have root privledges? If so, run a "chown userid:groupid on all files/folders in your public_html folder, where userid and groupid are your username nad/or userid. For instance, if your hosting account is username ghostgeek, then ssh to your public_html folder and run this command:

chown -R ghostgeek:ghostgeek *

If that doesn't help, then your ISP has set the paths up incorrectly in php.ini
 
View user's profile Send private message
ghostgeek
PostPosted: Tue Jun 14, 2005 1:52 pm Reply with quote

You rock Raven! That worked (had to play with it a bit, but I got it to work.

/me does happy dance!

Thanks again for all your help!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©