ODBC
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
ODBC
26-04-2010 8:12 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have been away from things for some time, but am now getting involved again. With the redevelopment of the CGI platform which has tightened security, does anyone know:
- if such ODBC links are still supported on CGI
- if PAYH still blocks them
- if suExec on CGI fixes the SafeMode problems
- should I shift everything back? (what are others in the same boat doing?)
Re: ODBC
27-04-2010 7:31 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Phil
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Re: ODBC
28-04-2010 8:11 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
And I guess my second point - does PAYH still block 3306 is answered by a PUG change request I have found which was last updated in April and which still shows PAYH as blocking 3306.
Anyone care to comment on the residual related items, particularly whether the use of suExec on CGI fixes the current PAYH Plesk SafeMode restrictions which still cause problems with my phpBB and which would certainly make it worth my moving my phpBB back to CGI
Re: ODBC
28-04-2010 9:23 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hope that makes sense, and also is correct!
Phil
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Re: ODBC
28-04-2010 2:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
suEXEC works fine as long as one is careful to respect its security model requirements, particularly with regard to directory and file permissions. There are also restrictions on what one can override in .htaccess files.
One feature that has caused the odd problem is the introduction of /~username in certain PHP / environment variables, namely SCRIPT_NAME and PHP_SELF. Changing to REQUEST_URI avoids that. DOCUMENT_ROOT is not usable on new ccgi (it wasn't on old ccgi either, but is on PAYH).
A read of the cgi platform php upgrade faq might be helpful to decision making.
David
Re: ODBC
29-04-2010 9:23 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
phpwrapper.cgi
#!/opt/php52/bin/php5-cgi
<?php
$_ENV["SCRIPT_NAME"]=$_SERVER['PHP_SELF']=$_SERVER["SCRIPT_NAME"]=$_ENV["REDIRECT_URL"];
$_ENV["SCRIPT_FILENAME"]=$_SERVER["SCRIPT_FILENAME"]=$_SERVER["DOCUMENT_ROOT"].$_ENV["REDIRECT_URL"];
ereg('^(.*)/([^/]*\.php)$', $_ENV["REDIRECT_URL"], $wrap_url);
chdir('/var/www/vhosts/username.plushost.co.uk/httpdocs/'.$wrap_url{1});
include $wrap_url{2};
?>
replacing username. Place in the cgi-bin and add this .htaccess to your root:
rewriteEngine on
RewriteCond %{REQUEST_URI} \.php$
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !^cgi-bin/phpwrapper\.cgi
RewriteRule .* cgi-bin/phpwrapper.cgi
You may also need to disable phpBB's own .htaccess. Then you can run your site without safe-mode restrictions and with includes permissions on .php files. (NB, to avoid confusion, this wrapper is for PAYH. A slightly different one was recently suggested for ccgi, so solve a different set of problems.)
Gabe
Re: ODBC
04-05-2010 6:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Shame PAYH has to be crippled in this way
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page