New to CodeIgniter in IIS7 + HTTP 500 Internal Server Error |
[eluser]richardpd[/eluser]
Hi Over the last 2 days I have started to look at codeigniter & want to use it in Windows7 OS. Here I use both IIS7 localhost & WebMatrix (IIS7Express). However I am following tutorials & using http://localhost/rpdci/index.php/blog/ returns HTTP 500.0 Internal Server Error in IIS7 I couldn't get it to go in WebMatrix either. I am most grateful for help so I can get started with CodeIgniter & begin coding websites with it. I look forward to helpful replies-thanks
[eluser]regal2157[/eluser]
I don't think this is a CI error. Check this out: 1. Removed IIS and WAS. Re-installed with the following settings: Web Management Tools (default) - IIS Management Console WWW Services - Application Development Features - ALL - Common Http Features - ALL - Health and Diagnostics - ALL - Performance Tracing - ALL - Security (default) - Request Filtering 2. Add "Users" to folder security options for each folder being added as a virtual directory in IIS7 Worked!!!! Got it from http://forums.iis.net/t/1144489.aspx and they have other fixes as well.
[eluser]richardpd[/eluser]
Thanks for your reply. I have all those features enabled in IIS7.5 & still getting same error (not sure what you mean about folders as virtual directory? folders on inetpub/wwwroot?). Any other ideas anyone?
[eluser]richardpd[/eluser]
I am now trying nettuts ci tutorial http://net.tutsplus.com/articles/news/co...tch-day-1/ and get this error at http://localhost/ci/index.php/site : A PHP Error was encountered Severity: 8192 Message: Function set_magic_quotes_runtime() is deprecated Filename: codeigniter/CodeIgniter.php Line Number: 60 An Error Was Encountered The URI you submitted has disallowed characters. I am not having an easy time learning CI.....
[eluser]regal2157[/eluser]
The Nettuts tutorials are a bit out of date. They are using version 1.7, while CI is currently on 2.0.2 What is your /codeigniter/CodeIgniter.php file? (around like 60)
[eluser]richardpd[/eluser]
Thanks for replies! I still have got it working yet. For the Nettuts example I changed CodeIgniter.php to latest version and I now get error HTTP 500.0 Internal Server error. As for htaccess why do I need to edit this? No beginner tutorials seem to mention this? I will keep trying to get this working & post updates here -meanwhile all helpful advice most welcome.
[eluser]richardpd[/eluser]
I have my CI issue solved now and the basic start with CI I was trying works now. I was helped by the code files for helloworld from http://learn-codeigniter.com/episode/codeigniter_basics I copied these over to my rpdci directory in localhostserver & changed config.php to use that folder/directory & now http://localhost/rpdci/index.php/blog/ works with blog.php in controllers directory. blog.php code is: <?php class Blog extends CI_Controller { public function index() { echo 'Hello World!'; } } ?> giving me the very (not!) impressive 'Hello World!' html page output! Perhaps I shall never know why the original CI files I had in rpdci directory would not allow this to work & kept returning the HTTP 500.0 error. All mysterious to me-but at least I can move on now with my CodeIgniter learning! Best wishes to all :-) |
Welcome Guest, Not a member yet? Register Sign In |