Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-05-2008, 02:00 AM suphp and mysqli
Average Talker

Posts: 27
Name: Jill Terry
Trades: 0
Is their anything known about mysqli changing permissions when suphp is enabled (or the other way round!)?

Now, I must start off by saying I know NOTHING about php, msql or any other cryptic letters and rely on the script authors and my host to deal with matters.

I run two scripts. My main one is basically a highly customised CMS. To run this securely and smoothly I had suphp enabled.

My second script is a database made up from datafeeds and runs automatically, updating itself weekly. This is on my main domain and is just in the background.

My other sites run the CMS and then have a piece of php to call and display information on the external database, which is run by my second script.

All was working beautifully, until.....

I noticed a site that was pretty dormant (and only using my first script) had an error message and couldn't read the database. This had happened with two other sites previously, and after investigating it was believed because msqli was not enabled.

So my host enabled mysqli. Just after that I found out that my second script could no longer call from the external database, just giving the error message:
Quote:
An error occoured at http://www.idealchristmasgift.co.uk/...changer-helmet on 2008-11-03 10:25:03. Please relay this data to support. Error #2: 'require(/home/papillon/public_html/pricetap/searchExternal.php) [function.require]: failed to open stream: Permission denied' in /home/idealchr/public_html/includes/commonfuncs.php(888) : eval()'d code on line 126.
Fatal error: require() [function.require]: Failed opening required '/home/papillon/public_html/pricetap/searchExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/idealchr/public_html/includes/commonfuncs.php(888) : eval()'d code on line 126
The second script itself is still working perfectly on the main site, just that the external sites can no longer access it.

On contacting my host they replied that "It appears your php sapi was seto to suphp instead of DSO. Has this always been the case? I've switched it dso and am looking over your sites now to make sure there aren't any issues."

The second script can now call and display the info from the external database.

HOWEVER, with them having disabled suphp I will now have to go through ALL my sites, entering ftp info into the admin area and changing certain file permissions to 666 and certain folders to 777. This is because of my main cms script. It requires ftp info because it automatically upgrades from the authors site.

Now I really don't want to do this! so am really hoping somebody may have a solution.
babrees is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-05-2008, 03:44 PM Re: suphp and mysqli
Average Talker

Posts: 27
Name: Jill Terry
Trades: 0
My host has now managed to get this working again
babrees is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to suphp and mysqli
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21164 seconds with 12 queries