Welcome Guest, Not a member yet? Register   Sign In
index.php is downloading instead run
#1

[eluser]Unknown[/eluser]
Hi everybody!

I am new on CI and i need help. I have to modified a website so i am trying to set up on my local machine first for testing, but when access it the browser try to download index.php. this is my .htaccess file

# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Festival25/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404/index.php
</IfModule>

i enabled mod_rewrite and modified the AllowOverride to All but doesn't work.

any suggestion?

Thanks

AV
#2

[eluser]umefarooq[/eluser]
hi which version of php you are using if 5 or greater version then no need to put

AddHandler application/x-httpd-php5 .php

remove it and check.

http://kb.siteground.com/article/How_to_...sions.html
#3

[eluser]Thorpe Obazee[/eluser]
@OP. I don't think your local server is handling .php files right. How did you set it up. Did you use wamp, xampp or did do the installation yourself?

I think you should start checking from there.
#4

[eluser]Unknown[/eluser]
umefarooq:

Thank you very much! My php version is 5.2.10; i removed the line don't try to download anymore.

bargainph:

Thanks for you too. i am sorry i dont know wich i use (wamp or xampp). i installed easyphp, change the root directory and create the database.

But is working now, (i think so), just need add the images, css, etc.

Thanks!!

Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB