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

[eluser]TWP Marketing[/eluser]
I just pulled down CI 2.0.2 from here: http://codeigniter.com/downloads/
It contains CI 2.0.2 code, not 2.1.2.
You might try another download form CI's archives, above.
#12

[eluser]Rurik[/eluser]
Downloaded 2.0.2, copied it over, unzipped contents, which is all the user guide tells you to do, and tried to load my page, still the issue. I thought it would have to be a problem with installing code igniter because the exact same code works on the other server, but not on this server which has a lamp stack, a postgresql database, vsftpd and presumedly CodeIgniter 2.0.2, the same as the other server.

I'm running out of ideas.
#13

[eluser]TWP Marketing[/eluser]
[quote author="Rurik" date="1346975229"]Downloaded 2.0.2, copied it over, unzipped contents, which is all the user guide tells you to do, and tried to load my page, still the issue. I thought it would have to be a problem with installing code igniter because the exact same code works on the other server, but not on this server which has a lamp stack, a postgresql database, vsftpd and presumedly CodeIgniter 2.0.2, the same as the other server.

I'm running out of ideas.[/quote]

I hope you copied the original application directory over the newly unzipped copy of CI2.0.2?

Under linux. I use a virtual host configuration, using the hosts file (/etc/hosts). Are you using a similar configuration on your lamp server? We don't know what is actually happening when you type a URL into a browser, other than a blank screen, so I'm trying to walk through my configuration to compare with yours.
#14

[eluser]Rurik[/eluser]
The original directory is /var/www/, the CI2.0.2 app is in /opt/share/php like some page or other told me to do. System directories are obviously in the same places.

The contents of my hosts file:


127.0.0.1 localhost
127.0.1.1 uServer

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

The contents of the hosts file on the other server:
127.0.0.1 localhost
127.0.1.1 Andromeda

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

An echo statement in the controller and view that should be loading is not echoing out, so it seems to not be reaching that controller or view.
#15

[eluser]TWP Marketing[/eluser]
Ok, it looks like you're not using a virtual host configuration. I'd recommend it, but it is more complex.

I have all my sites under /var/www/ like this:
/var/www/
|
+mysite
+othesite
+theirsite

In the apache virtual setup, I use the virtual host to avoid using localhost in the url
/etc/apache2/sites-available
and
/etc/apache2/sites-enabled

These are where you create the apache configuration for sites using full domain names etc.
The configuration is complex and I'm not going to try to walk you through it here.
Reference: http://httpd.apache.org/docs/2.0/vhosts/name-based.html
and: https://httpd.apache.org/docs/2.2/vhosts/examples.html
and: http://www.thegeekstuff.com/2011/07/apac...tual-host/

I'd recommend moving your site code to /var/www/yoursite instead of elsewhere, since you're in a local environment. It makes working on it easier.

Sorry for the overload of information, but it may be at the root of the problem, not pun intended.
I'm available on this forum to help you through it, as are several others here.
#16

[eluser]Rurik[/eluser]
Thank you for trying to help. The code for the site that should be working is indeed in var/www/webFiles, with index.html under /var/www holding a link to the index.php in webFiles.

I would rather not try to implement virtual hosts if I can avoid it, if only because I have never done it before, and dont want to screw anything up too badly.

It is the default files from a codeIgniter zip that is under /opt/share/php, not the "working" application
#17

[eluser]TWP Marketing[/eluser]
So your url is something like:
Code:
http://localhost/mysite/index.html

It makes CI's url handling more difficult. It expects to find:
Code:
http://mysite.com/index.php/controller-name[/method-name][/params]

What is the url you're using now, the one that give a blank page?

PS, I'm almost offline for the day, but I'll be back tomorrow morning
#18

[eluser]Rurik[/eluser]
The index.html url is: http://eagle.restofname:8022/

The index.php url is: http://eagle.restofname:8022/webFiles/index.php

With restofname replaced by actual url, for privacy reasons, as I am working on a university server.
#19

[eluser]Aken[/eluser]
Are you still receiving a blank page? If so, you still haven't turned error reporting on properly, which might help you solve this problem in the first place.
#20

[eluser]Rurik[/eluser]
[quote author="Aken" date="1346979344"]Are you still receiving a blank page? If so, you still haven't turned error reporting on properly, which might help you solve this problem in the first place.[/quote]'

I turned on error reporting in my php.ini file as suggested by one of the other users, in the apache2 folder. And there was nothing logged or displayed.


error_reporting(E_ALL); turns up syntax errors and for some reason php -l finds errors parsing my php.ini files




Theme © iAndrew 2016 - Forum software by © MyBB