GoDaddy headaches, CodeIgniter, and bears, oh my! |
[eluser]fivestringsurf[/eluser]
ci ver. 2.0 (if you're impatient...scoll down and I post of my solution) I've spent the last 9 months getting to know codeigniter; it has worked like a dream on my local xampp environment. I plan on using for some production work for some clients soon...so I figured; let me quick place ci on my godaddy shared server and iron out any kinks. What a gosh-darn headache. None of the posts here, there or anywhere solved my problems (i think they are older and maybe involve previouse versions of ci) Here's some of the rubbish I tried (+other stuff outside this forum): http://ellislab.com/forums/viewthread/137124/ http://ellislab.com/forums/viewthread/67052/#330516 http://ellislab.com/forums/viewthread/133292/ http://ellislab.com/forums/viewthread/96608/#504796 I tried every imaginable combination of this junk combining .htaccess settings and config settings. None of it worked and what's worse; working off the server is near impossible to trouble shoot and the slowest process ever. I was at this for nearly 6 hours- then I took a different approach. I started hacking apart core files and placing simple echo statements to see what was loading and what was not. ***I figured out that the constants: APPPATH and BASEPATH that ci were declaring were simply relative paths: like 'system' and 'application' which work fine locally but not with godaddy. MY SOLUTION:in root dir > index.php i changed: Code: $system_path = 'system';//old for the application > config.php I didn't even change anything other than the domain for live testing Code: $config['base_url'] = 'http://mydomain.com/'; MY QUESTIONS ~for you ci experts ? ? Am I missing something? Why are all the other solutions so damn complex? I don't even have an .htaccess file and I have working short urls as in: http://mysite.com/index/ One problem i did notice is that going to http://mysite.com throws ci's 404; that is one thing I will need to figure out(probably an .htaccess thing) -Got any advice on that? Hopefully this helps others and I would love to hear some insight from some experts here. |
Messages In This Thread |
GoDaddy headaches, CodeIgniter, and bears, oh my! - by El Forum - 04-09-2011, 04:44 PM
GoDaddy headaches, CodeIgniter, and bears, oh my! - by El Forum - 04-09-2011, 06:35 PM
GoDaddy headaches, CodeIgniter, and bears, oh my! - by El Forum - 04-09-2011, 08:44 PM
|