Welcome Guest, Not a member yet? Register   Sign In
Unable to run codeigniter project in wamp virtual host.
#1

Hello!
My codeigniter project works fine in the localhost. I had to create a virtual host where I could run multiple projects in my local pc. when running the project from the virtual host I can see the login page (the first page of my project), after feeding in the user name and password in the login page the page, instead of taking me to the next page I get this error
Code:
Forbidden
You don't have permission to access / on this server.
I tried using xampp as well and the error I get when using xampp is
Code:
Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated.
I am not sure where the mistake lies.  
This is the virtual host url for the loginpage
Code:
http://saseco.dev/
and this is where it leads to after clicking the login button
Code:
saseco.dev/<?=site_url('login/user_login');?>
This is the virtual host setting that I have

Code:
httpd-vhost.conf
Code:
NameVirtualHost *:80
<VirtualHost *:80>
   ServerAdmin [email protected]
   DocumentRoot "c:/Apache2/docs/dummy-host2.example.com"
   ServerName dummy-host2.example.com
   ErrorLog "logs/dummy-host2.example.com-error.log"
   CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
<Directory C:/www/saseco>
AllowOverride All
Order Deny,Allow
Allow from all
</directory>
<VirtualHost *:80>
DocumentRoot "C:\www\saseco"
ServerName saseco.dev
</VirtualHost>
My .htaccess file
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond $1 ^(application|system|private|logs)
RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L]
RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|public|assets|css|js|images)
RewriteRule ^(.*)$ - [PT,L]
RewriteRule ^(.*)$ index.php/$1 [PT,L]
</IfModule>
<IfModule !mod_rewrite.c>
   ErrorDocument 404 /index.php
</IfModule>
I am not sure where the error is coming from so I have copied my .htaccess and virtual host config file for your reference. IOr ancy chance that the codes in my login page is not right. Any advice on this please
Reply


Messages In This Thread
Unable to run codeigniter project in wamp virtual host. - by karma - 05-10-2015, 11:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB