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

[eluser]TWP Marketing[/eluser]
On your original system, the one that works, did you have any virtual host configured for apache?
It would probably be in
/etc/apache2/sites-enabled/...
#32

[eluser]Rurik[/eluser]
I just directed php errors to a log file, restarted apache, no errors. I did have a few sites on that server, namely the main one, and one for the squirrelmail client. But as far as I can remember (I set up these), all I really changed was the root location.

I am trying to check them now, but the server may be down... They have an annoying amount of connectivity issues.

Apache logs:


[Fri Sep 07 08:59:34 2012] [notice] caught SIGTERM, shutting down
[Fri Sep 07 08:59:35 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9 with Suhosin-Patch configured -- resuming normal operations
[Fri Sep 07 08:59:48 2012] [error] [client 10.22.122.7] File does not exist: /var/www/favicon.ico
[Fri Sep 07 08:59:51 2012] [error] [client 10.22.122.7] File does not exist: /var/www/favicon.ico
[Fri Sep 07 09:03:02 2012] [notice] caught SIGTERM, shutting down
[Fri Sep 07 09:03:03 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9 with Suhosin-Patch configured -- resuming normal operations
[Fri Sep 07 09:30:26 2012] [notice] Graceful restart requested, doing restart
[Fri Sep 07 09:30:26 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9 with Suhosin-Patch configured -- resuming normal operations
[Sat Sep 08 08:32:26 2012] [notice] Graceful restart requested, doing restart
[Sat Sep 08 08:32:26 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9 with Suhosin-Patch configured -- resuming normal operations
[Sat Sep 08 08:37:31 2012] [notice] Graceful restart requested, doing restart
[Sat Sep 08 08:37:31 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9 with Suhosin-Patch configured -- resuming normal operations
[Sat Sep 08 08:51:59 2012] [notice] caught SIGTERM, shutting down
[Sat Sep 08 08:52:00 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9 with Suhosin-Patch configured -- resuming normal operations
[Sat Sep 08 09:18:41 2012] [notice] caught SIGTERM, shutting down
[Sat Sep 08 09:18:42 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9 with Suhosin-Patch configured -- resuming normal operations
#33

[eluser]TWP Marketing[/eluser]
Your patience is commendable.
Apache is serving something, even if it is a blank page.
The error logs are blank, so no major code errors.
That leaves configuration...
1) index.php has the path to your system and application folders (correctly set?)
2) the base_url in /application/config/config.php is set correctly for the new server?

I'm running out of thoughts and I'm about to be thrown out of here, I'll be back tomorrow.
#34

[eluser]Rurik[/eluser]
$system_path = 'system';

$application_folder = 'application';

$config['base_url'] = '';
#35

[eluser]TWP Marketing[/eluser]
[quote author="Rurik" date="1347067806"] $system_path = 'system';

$application_folder = 'application';

$config['base_url'] = '';[/quote]

Ok, try setting your config base_url to:

Code:
$config['base_url'] = 'http://eagle.restofname:8022/webFiles/';
This tells CI where to look for your index.php file. Note the trailing slash...
I understand that '...restofname...' is different, be sure to put the correct domain name there.
#36

[eluser]Rurik[/eluser]
Nope still nothing, sorry for the slow reply, im out in Australia and only just got up.
#37

[eluser]TWP Marketing[/eluser]
What do you get when you type this into your browser:

http://eagle.restofname:8022/webFiles

assuming the correct value for 'restofname'
#38

[eluser]Rurik[/eluser]
Blank page still

edit 1:
php -l tells me that there are no syntax errors in index.php or the controller or the views that are called via index.php

edit 2:
It couldnt be the fact that I have to specify a port could it? Im really straining for differences between the servers now, and thats the main one I can think of.

edit 3: Interestingly, if i try to go directly to application/controllers/login.php, it tells me it cant find the MY_Controller class
#39

[eluser]Rurik[/eluser]
Is there anywhere that the program is likely to be using the server name of Andromeda, instead of the localhost ip of 127.0.1.1?
#40

[eluser]Rurik[/eluser]
I have recently discovered that the two servers are as follows: Ubuntu 12.04 with PHP 5.3.10-1 and Ubuntu 10.10 with PHP 5.3.3-9. Would this be causing the issues?




Theme © iAndrew 2016 - Forum software by © MyBB