Softaculous


Topic : new OpenX causes 500 internal server error


Posted By: SoftDux on May 12, 2011, 7:11 am
Hi,

I just installed OpenX 2.8.7 on a server and when I logged in, I got this:
Quote

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@x.x.x and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.





Looking at cPanel's error logs I see the following:
Quote


[Thu May 12 09:06:16 2011] [error] [client 196.215.3.15] SoftException in Application.cpp:256: File "/home/campaign/public_html/www/admin/plugins/oxMarket/market-info.php" is writeable by group
[Thu May 12 09:06:14 2011] [error] [client 196.215.3.15] SoftException in Application.cpp:256: File "/home/campaign/public_html/www/admin/plugins/oxMarket/market-info.php" is writeable by group
[Thu May 12 08:32:05 2011] [error] [client 196.215.3.15] File does not exist: /home/campaign/public_html/500.shtml, referer: http://campaign.softdux.com/www/admin/
[Thu May 12 08:32:05 2011] [error] [client 196.215.3.15] SoftException in Application.cpp:256: File "/home/campaign/public_html/www/admin/plugins/oxMarket/market-info.php" is writeable by group, referer: http://campaign.softdux.com/www/admin/
[Thu May 12 08:18:36 2011] [error] [client 196.215.3.15] File does not exist: /home/campaign/public_html/500.shtml, referer: http://campaign.softdux.com/www/admin/index.php
[Thu May 12 08:18:36 2011] [error] [client 196.215.3.15] SoftException in Application.cpp:256: File "/home/campaign/public_html/www/admin/plugins/oxMarket/css/ox.market.css.php" is writeable by group, referer: http://campaign.softdux.com/www/admin/index.php
[Thu May 12 08:18:32 2011] [error] [client 196.215.3.15] File does not exist: /home/campaign/public_html/500.shtml, referer: http://campaign.softdux.com/www/admin/
[Thu May 12 08:18:32 2011] [error] [client 196.215.3.15] SoftException in Application.cpp:256: File "/home/campaign/public_html/www/admin/plugins/oxMarket/css/ox.market.css.php" is writeable by group, referer: http://campaign.softdux.com/www/admin/




So, it seems like market-info.php has been given incorrect permissions. Can you please fix this in the installation script?



EDIT: When I wanted to change the permissions on market-info.php I noticed every single file has 777 permissions

Edited by SoftDux : May 12, 2011, 7:17 am

Posted By: alons on May 13, 2011, 4:35 am | Post: 1
Hi,

Can you please give me access to one demo account to check this ?

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP

Posted By: chrisadam on July 24, 2011, 3:14 am | Post: 2
Hey guys, I just tested the same install and I have the same error as well.

My url is here:
http://therealestatewebshop.com/adserver

Its still set as default login/pass for testing..

Posted By: chrisadam on July 24, 2011, 3:16 am | Post: 3
Ok it seems to go to :
http://therealestatewebshop.com/adserver/www/admin/plugins/oxMarket/market-info.php

after login...

If i delete the url all the way back to: (after login) http://therealestatewebshop.com/adserver

It works...
it must be that "oxmarket" im not sure what it is.

Posted By: chrisadam on July 24, 2011, 7:24 pm | Post: 4
nevermind it does not work, the file oxmarket is for creating an openx account....  can someone help please? This install is not working.

Posted By: chrisadam on July 24, 2011, 7:45 pm | Post: 5
Another interesting thing is that is you click the demo in the softaculous cpanel, everything works perfectly... so whats the difference?

Posted By: Brijesh on July 25, 2011, 12:28 pm | Post: 6
Hi,

Which panel are you using and exactly what error are you getting?

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: chrisadam on July 25, 2011, 2:14 pm | Post: 7
Quote From : Brijesh July 25, 2011, 12:28 pm
Hi,

Which panel are you using and exactly what error are you getting?


Which panel? you mean cpanel? or version number or theme? Be more descriptive please.

What error? Click the link above in one of my other posts where I describe what is happening and you'll see the error. its a 500 internal server error.

Posted By: Brijesh on July 26, 2011, 10:27 am | Post: 8
Hi,

The Admin panel URL should be:
http://therealestatewebshop.com/adserver/www/admin/index.php

and you can access this page:
http://therealestatewebshop.com/adserver/www/admin/plugins/oxMarket/market-info.php
after you login to the admin panel.


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: chrisadam on July 26, 2011, 3:13 pm | Post: 9
Quote From : Brijesh July 26, 2011, 10:27 am
Hi,

The Admin panel URL should be:
http://therealestatewebshop.com/adserver/www/admin/index.php

and you can access this page:
http://therealestatewebshop.com/adserver/www/admin/plugins/oxMarket/market-info.php
after you login to the admin panel.


Im not sure what this post is about, but can I get someone to fix my problem please?

This is not a free service as you know, and all we've managed to accomplish is rephrasing my original post.

Now Ive got a business here with clients asking me to fix something that is a part of this product what is the fix for this?

please, ASAP.



Posted By: Brijesh on July 27, 2011, 5:51 am | Post: 10
Hi,

Please open a support ticket with the root details.
Support department will look into it.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: binhaus on November 16, 2011, 2:09 pm | Post: 11
here the fix:
create file 500fix.php then upload to your openx folder then run it from browser
the fix will cmod the folder openx market back from 777 to 755 and file from 777 to 644 which is corect
Code


[font=monospace][b][color=#000000]<?php[/color][/b]
[color=#990000]error_reporting[/color][color=#009900]([/color][b][color=#009900]E_ALL[/color][/b][color=#009900])[/color][color=#339933];[/color]
  [color=#B1B100]require_once[/color] [color=#0000FF]'init.php'[/color][color=#339933];[/color]

    [b][color=#000000]function[/color][/b] oxMarketChmod[color=#009900]([/color][color=#000088]$path[/color][color=#339933],[/color] [color=#000088]$filePerm[/color][color=#339933]=[/color][color=#208080]0644[/color][color=#339933],[/color] [color=#000088]$dirPerm[/color][color=#339933]=[/color][color=#208080]0755[/color][color=#009900])[/color] [color=#009900]{[/color]
      [i][color=#666666]// Check if the path exists[/color][/i]
      [color=#B1B100]if[/color][color=#009900]([/color][color=#339933]![/color][color=#990000]file_exists[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#009900])[/color]
      [color=#009900]{[/color]
      [color=#B1B100]return[/color][color=#009900]([/color][b][color=#009900]FALSE[/color][/b][color=#009900])[/color][color=#339933];[/color]
      [color=#009900]}[/color]
      [i][color=#666666]// See whether this is a file[/color][/i]
      [color=#B1B100]if[/color][color=#009900]([/color][color=#990000]is_file[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#009900])[/color]
      [color=#009900]{[/color]
      [i][color=#666666]// Chmod the file with our given permissions[/color][/i]
      [color=#990000]chmod[/color][color=#009900]([/color][color=#000088]$path[/color][color=#339933],[/color] [color=#000088]$filePerm[/color][color=#009900])[/color][color=#339933];[/color]
      [i][color=#666666]// If this is a directory...[/color][/i]
      [color=#009900]}[/color]

      [color=#B1B100]elseif[/color][color=#009900]([/color][color=#990000]is_dir[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#009900])[/color]
      [color=#009900]{[/color]
      [i][color=#666666]// Then get an array of the contents[/color][/i]
      [color=#000088]$foldersAndFiles[/color] [color=#339933]=[/color] [color=#990000]scandir[/color][color=#009900]([/color][color=#000088]$path[/color][color=#009900])[/color][color=#339933];[/color]
      [i][color=#666666]// Remove "." and ".." from the list[/color][/i]
      [color=#000088]$entries[/color] [color=#339933]=[/color] [color=#990000]array_slice[/color][color=#009900]([/color][color=#000088]$foldersAndFiles[/color][color=#339933],[/color] [color=#CC66CC]2[/color][color=#009900])[/color][color=#339933];[/color]
      [i][color=#666666]// Parse every result...[/color][/i]
      [color=#B1B100]foreach[/color][color=#009900]([/color][color=#000088]$entries[/color] [color=#B1B100]as[/color] [color=#000088]$entry[/color][color=#009900])[/color]
      [color=#009900]{[/color]
      [i][color=#666666]// And call this function again recursively, with the same permissions[/color][/i]
      oxMarketChmod[color=#009900]([/color][color=#000088]$path[/color][color=#339933].[/color][color=#0000FF]"/"[/color][color=#339933].[/color][color=#000088]$entry[/color][color=#339933],[/color] [color=#000088]$filePerm[/color][color=#339933],[/color] [color=#000088]$dirPerm[/color][color=#009900])[/color][color=#339933];[/color]
      [color=#009900]}[/color]
      [i][color=#666666]// When we are done with the contents of the directory, we chmod the directory itself[/color][/i]
      [color=#990000]chmod[/color][color=#009900]([/color][color=#000088]$path[/color][color=#339933],[/color] [color=#000088]$dirPerm[/color][color=#009900])[/color][color=#339933];[/color]
      [color=#009900]}[/color]
      [i][color=#666666]// Everything seemed to work out well, return TRUE[/color][/i]
      [color=#B1B100]return[/color][color=#009900]([/color][b][color=#009900]TRUE[/color][/b][color=#009900])[/color][color=#339933];[/color]
      [color=#009900]}[/color]
    [color=#000088]$plugins[/color] [color=#339933]=[/color] oxMarketChmod[color=#009900]([/color]MAX_PATH[color=#339933].[/color][color=#0000FF]'/plugins/etc/oxMarket'[/color][color=#009900])[/color][color=#339933];[/color]
    [color=#000088]$admin[/color] [color=#339933]=[/color] oxMarketChmod[color=#009900]([/color]MAX_PATH[color=#339933].[/color][color=#0000FF]'/www/admin/plugins/oxMarket'[/color][color=#009900])[/color][color=#339933];[/color]
?>
    [color=#B1B100]if[/color] [color=#009900]([/color][color=#000088]$admin[/color] [color=#339933]==[/color] [color=#000088]$plugins[/color][color=#009900])[/color][color=#009900]{[/color]
    [color=#B1B100]echo[/color] [color=#0000FF]"All Done, you can <a href='www/admin/'>login</a> now"[/color][color=#339933];[/color]
    [color=#009900]}[/color]
    [color=#B1B100]else[/color] [color=#009900]{[/color]
    [color=#B1B100]echo[/color] [color=#0000FF]'Something has gone wrong... Perhaps oxMarket dosent exist?'[/color][color=#339933];[/color]
    [color=#009900]}[/color][b][color=#000000]?>[/color][/b][/font]


credit of btdsoft

==
have fun with my site:
thoi trang


-----------------------
rao vat mien phi
bong da
Choi game vui


Posted By: Keithleeds on November 22, 2011, 6:41 pm | Post: 12
Here's a plaintext version of the above...

<?php
error_reporting(E_ALL);
require_once 'init.php';

function oxMarketChmod($path, $filePerm=0644, $dirPerm=0755) {
    if(!file_exists($path))
        return(FALSE);
     
    if(is_file($path))
        chmod($path, $filePerm);
    elseif(is_dir($path)) {
        $foldersAndFiles = scandir($path);
        $entries = array_slice($foldersAndFiles, 2);
        foreach($entries as $entry) {
            oxMarketChmod($path."/".$entry, $filePerm, $dirPerm);
        }
        chmod($path, $dirPerm);
    }
    return(TRUE);
}

$plugins = oxMarketChmod(MAX_PATH.'/plugins/etc/oxMarket');
$admin = oxMarketChmod(MAX_PATH.'/www/admin/plugins/oxMarket');

if ($admin == $plugins)
    echo "All Done, you can <a href='www/admin/'>login</a> now";
else
    echo 'Something has gone wrong... Perhaps oxMarket dosent exist?';


Powered By AEF 1.0.8 © 2007-2008 Electron Inc.