Welcome Guest, Not a member yet? Register   Sign In
Installing an old application to a new server
#51

[eluser]TWP Marketing[/eluser]
That's a difference from my system, I'm not operating as root, and have to change ownership to match my username. But not significant for this problem. You are logged-in as root, right?
Do you have other controllers which extend MY_Controller? Do they give the same error if you call them via URL like login.php?
#52

[eluser]Rurik[/eluser]
never mind what was here before, i realised my mistake there. Now when i say application/controllers/login.php i get a 500
#53

[eluser]TWP Marketing[/eluser]
I"m about to go offline here.
Does your apache error log say anything about the 500 error?
#54

[eluser]Rurik[/eluser]
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Sep 10 12:44:59 2012] [notice] caught SIGTERM, shutting down

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Sep 10 12:47:04 2012] [notice] Apache/2.2.16 (Ubuntu) configured -- resuming normal operations
[Mon Sep 10 12:47:05 2012] [notice] Graceful restart requested, doing restart
[Mon Sep 10 12:47:05 2012] [notice] Apache/2.2.16 (Ubuntu) configured -- resuming normal operations
[Mon Sep 10 15:40:59 2012] [notice] SIGHUP received. Attempting to restart
[Mon Sep 10 15:40:59 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Tue Sep 11 07:19:51 2012] [error] [client 49.176.66.196] Invalid method in request SSH-2.0-TrileadSSH2Java_213
[Tue Sep 11 07:19:59 2012] [error] [client 49.176.66.196] Invalid method in request SSH-2.0-TrileadSSH2Java_213
[Tue Sep 11 09:27:53 2012] [error] [client 10.22.110.202] PHP Fatal error: Class 'MY_Controller' not found in /var/www/webFiles/application/controllers/client.php on line 4
[Tue Sep 11 09:27:58 2012] [error] [client 10.22.110.202] PHP Fatal error: Class 'MY_Controller' not found in /var/www/webFiles/application/controllers/client.php on line 4
[Tue Sep 11 09:28:05 2012] [error] [client 10.22.110.202] PHP Fatal error: Class 'MY_Controller' not found in /var/www/webFiles/application/controllers/login.php on line 4
[Tue Sep 11 09:29:44 2012] [error] [client 10.22.110.202] PHP Fatal error: Class 'MY_Controller' not found in /var/www/webFiles/application/controllers/login.php on line 4
[Tue Sep 11 09:30:39 2012] [error] [client 10.22.110.202] PHP Fatal error: Class 'MY_Controller' not found in /var/www/webFiles/application/controllers/login.php on line 4


There are a whole lot more PHP dynamic library failures above those
#55

[eluser]Aken[/eluser]
There's your fatal error...
#56

[eluser]TWP Marketing[/eluser]
I assume that line 4 in todays errors is the class declaration line:
Quote:[Tue Sep 11 09:30:39 2012] [error] [client 10.22.110.202] PHP Fatal error: Class ‘MY_Controller’ not found in /var/www/webFiles/application/controllers/login.php on line 4

The warnings about the mysql.so and mysqli.so files mean there may have been problems (prior to today) with the database server. Can't speak to those, but they don't appear in today's run, so you may have fixed it...

Let me remove my MY_Controller and see what Apache says about it in my log.
I'll get back tomorrow morning.
#57

[eluser]TWP Marketing[/eluser]
I renamed MY_Controller.php and got a similar error:
Quote:Fatal error: Class 'MY_Controller' not found in /var/www/twpmarketing/application/controllers/twpm.php on line 3
We found the problem child, now why isn't it visible to Apache?

Spelling
access permissions
user

Could you post the first few lines of MY_Controller.php and let us see if it looks ok?
I know it works on the other server, but...

I'll be back tomorrow, maybe Aken can follow up???
#58

[eluser]Rurik[/eluser]
I am so sorry I didnt reply until now, but for some reason I didnt get an email from your last post. I will get the info now and edit this post with it.

EDIT:


?php

//Used for auto-completion
/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
* @property CI_Calendar $calendar
* @property CI_Cart $cart
* @property CI_Config $config
* @property CI_Controller $controller
* @property CI_Email $email
* @property CI_Encrypt $encrypt
* @property CI_Exceptions $exceptions
* @property CI_Form_validation $form_validation
* @property CI_Ftp $ftp
* @property CI_Hooks $hooks
* @property CI_Image_lib $image_lib
* @property CI_Input $input
* @property CI_Lang $lang
* @property CI_Loader $load
* @property CI_Log $log
* @property CI_Model $model
* @property CI_Output $output
* @property CI_Pagination $pagination
* @property CI_Parser $parser
* @property CI_Profiler $profiler
* @property CI_Router $router
* @property CI_Session $session
* @property CI_Sha1 $sha1
* @property CI_Table $table
* @property CI_Trackback $trackback
* @property CI_Typography $typography
* @property CI_Unit_test $unit_test
* @property CI_Upload $upload
* @property CI_URI $uri
* @property CI_User_agent $user_agent
* @property CI_Validation $validation
* @property CI_Xmlrpc $xmlrpc
* @property CI_Xmlrpcs $xmlrpcs
* @property CI_Zip $zip
* @property CI_Javascript $javascript
* @property CI_Jquery $jquery
* @property CI_Utf8 $utf8
* @property CI_Security $security
*/
class MY_Controller extends CI_Controller
{

public function __construct()
{
parent::__construct();
$this->load->library('permissions');
$privilege = "";

//Stops direct script access
if(!defined('BASEPATH'))
{
exit('No direct script access allowed');
}

//Check for enabling the developer debug profile
if($this->config->item('development'))
{
$this->output->enable_profiler(false);
}

//Redirects the user if they are on an invalid page
$this->permissions->check_user();
}

}

end file
#59

[eluser]TWP Marketing[/eluser]
The only thing which looks unfamiliar to me is the last line: "end file", which might be replaced with a closing bracket '}' and the text turned into a comment:
Code:
...
} // end file

The trick is to avoid any spaces after the final text, which can cause a failure that is difficult to diagnose, since the space isn't visible. Using the comment makes it irrelevant how many spaces are there.
#60

[eluser]Rurik[/eluser]
I put that in myself just now to show that it was the whole file. Its not in the actual file.

Where does it tell the controllers to look for My_Controller?

Setting the core folder to 777 doesnt fix it, so its not permissions on MY_Controller




Theme © iAndrew 2016 - Forum software by © MyBB