*Emergency* How do you upload a CI website onto a Linux server? |
[eluser]friday[/eluser]
My config file looks like this: http://i47.tinypic.com/2i1o4z9.jpg Is the format for putting the server address correct?
[eluser]PhilTem[/eluser]
In most cases CI can detect the base_url correctly. Only if it doesn't work one should input it manually. I guess in your case it's something different that makes the script non executable. Scripts in the php are accessible via your webserver? Did you try uploading a clean CI installation to another folder and testing if that one works? I'm quite sure though it's a problem with conflicting permissions of you and the webserver which I am however not quite sure of how to solve them.
[eluser]friday[/eluser]
I just tried it now (installing a new version of CI). I can finally access the CI folder through a browser, but I don't see anything inside (when I go through a browser). You can see the permissions from FileZilla, as well as how there's nothing in the directory: http://i49.tinypic.com/1zl4uop.jpg Also, when I point my browser to ci/index.php, it should give the Codeigniter welcome message but instead says "The requested URL /~EE4717G48/CI/index.php was not found on this server." Installing Codeigniter basically means uploading the CI folder to the htdocs root right? So I'm not sure why this is happening.
[eluser]CroNiX[/eluser]
In addition to file permissions (I use 644, which works fine except for upload directories) some hosts may require that the files have correct ownership (user/group) for that account.
[eluser]friday[/eluser]
THANKS EVERYONE! It was indeed a problem with permissions, so with FileZilla, I right-clicked on CI and used "File Attributes" to set everything to Read Write and Execute. The Codeigniter welcome page finally works. However, I have a specific database error: A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346 Does anyone know what issue this is? Thanks a lot for all the replies :-) EDIT: Okay I solved the issue by setting $db['default']['pconnect'] = FALSE; $db['default']['db_debug'] = FALSE; Thanks a lot. |
Welcome Guest, Not a member yet? Register Sign In |