Welcome Guest, Not a member yet? Register   Sign In
Installation errors
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

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
Reply
#6

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 ?
Reply
#7

(03-22-2016, 12:47 AM)Kevin Wrote: 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 ?

You need .htaccess file to rewrite url. Place it inside the same folder of index.php.
Code:
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
Reply




Theme © iAndrew 2016 - Forum software by © MyBB