Installation errors - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Installation errors (/showthread.php?tid=64684) |
Installation errors - Kevin - 03-20-2016 Hello everyone, I'm actually trying to install codeIgniter on my computer. However, I cannot get it right even if I'm following exactly the tutorial on this website. Actually my file is here : /localhost/v2.zw.com/htdocs/ And here, u can find the index.php I have then modified the file config like this : $config['web_directory'] = "/v2.zd.com/htdocs/"; $config['base_url'] = "https://localhost" . $config['web_directory']; I have also tried to modify : $config['index_page'] = 'index.php'; to something like $config['index_page'] = 'index.php?'; And I have also modified the file database.php for setting the database. Now, I have got a problem, every link on the page does not work, I have got every time a 404 error Not Found. Some images does not show up too. Have you an idea how can I fix that ? Thank you. J Kevin RE: Installation errors - kilishan - 03-20-2016 Most likely, localhost actually points to the "/v2.zd.com/htdocs/" directory itself, so adding that to the base_url is probably causing the issue. And, do you have an SSL certificate setup for your computer? If not, you'll get errors trying to access it via https anyway. RE: Installation errors - Kevin - 03-20-2016 First of all, thank you for your help. No, actually my localhost points to a directory called "workspace". So u have something like this : ./workspace ./workspace/wp ./workspace/v2.zd.com ./workspace/v2.zd.com/attachement ./workspace/v2.zd.com/htdocs Then u can find inside htdocs, the codeIgniter framework. I have setup a SSL Certificat but even if I remove the "s" of https, I still got an error 404 with all the link on the index.php RE: Installation errors - InsiteFX - 03-21-2016 If you are running on the Windows OS then you need to edit your hosts file in C:\Windows\System32\drivers\etc\hosts hosts is the file to edit you can use notepad to edit it. I would also recommend using Virtual Hosts for setting up your paths. RE: Installation errors - Kevin - 03-21-2016 I'm running on Ubuntu and now I use a virtual host : www.dev.com SO the link are like this : www.dev.com/v2.zw.com/ But every links still give a 404 errors RE: Installation errors - Kevin - 03-22-2016 I have finally found the problem but I dont know how to fix it. Actually all the links work if I put index.php in the path. By example, this link : www.dev.com/azezezez not gonna work But : www.dev.com/index.php/azezezez will work Have u any idea for fixing that ? RE: Installation errors - pdthinh - 03-22-2016 (03-22-2016, 12:47 AM)Kevin Wrote: I have finally found the problem but I dont know how to fix it. You need .htaccess file to rewrite url. Place it inside the same folder of index.php. Code: Options +FollowSymLinks |