Questions tagged [codeigniter]

CodeIgniter is an open source MVC framework for PHP.

From the website: CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications.

Links

68 questions
33
votes
1 answer

What is the name and location of the Nginx config file (htaccess equivalent)?

There are many tutorials on how to write Nginx rewrite rules to mimic Apache's .htaccess file but I can't confidently say I know what the name or location of this so-called Nginx config file actually is. I'm specifically looking for the Nginx config…
tim peterson
  • 683
  • 2
  • 9
  • 18
3
votes
2 answers

Codeigniter in subdirectory on Nginx 404

I'm trying to setup Codeigniter in a subdirectory of my domain. Currently I only get an 404 from Codeigniter on the index page. As soon as a want to go to example.com/api/welcome/index I get a 404 from nginx. My nginx.conf: location /api/ { …
Arodes
  • 101
  • 1
  • 1
  • 6
3
votes
1 answer

What is nginx equalant for my htaccess mod_rewrite?

Previously i was using linode VPS running Apache for my CodeIgniter website. Today i installed nginx and my website landing page is coming but the other pages that is using htaccess for rewriting URL is not coming. This is my htaccess, …
Arun David
  • 133
  • 1
  • 2
  • 5
2
votes
1 answer

NGINX + Codeigniter doesnt work can't access controllers and send parameters to controllers

I want to run codeigniter under NGINX but it just doesnt work. I want to be able to send a parameters to controllers methods. But so far I can not even access controller using the address example.com/index.php/welcome.php. It says No input file…
Harlsten
  • 161
  • 1
  • 1
  • 6
2
votes
0 answers

Apache + Codeigniter + New Server + Unexpected Errors

Alright here is the situation: I use to have my codeigniter site at bluehost were I did not have root access, I have since moved that site to rackspace. I have not changed any of the PHP code yet there has been some unexpected behavior. Unexpected…
ngl5000
  • 45
  • 1
  • 8
2
votes
4 answers

how to cache my website?

I have few questions about caching a website, since I haven't tried caching a site before. First is how to cache a site so it will have a faster loading when clients browse the site. For example I have many images in my css style, how do I cache…
1
vote
1 answer

htaccess file to do specific rewrites on different uri

I have the following in my .htaccess file: Options +FollowSymlinks RewriteEngine On # Block hidden directories RewriteRule "(^|/)\." - [F] # Prevent /health_check.php from using https RewriteCond…
Tom
  • 133
  • 6
1
vote
0 answers

Apache2, PHP5 , Code Igniter and PGSQL

I'm generally familiar with the stack I am encountering an odd problem. When i call a webpage that send a request that makes postgres take long to respond generally because the table is large. My Apache2 hangs no other requests to my website will…
sqwale
  • 141
  • 1
  • 8
1
vote
1 answer

CodeIgniter nginx rewrite rules for i8ln URL's

I'm testing a site which is build with CodeIgniter on a development Vagrant box (Ubuntu TLS 14 with nginx 1.8.1 and PHP 5.6 with php-fpm) and CodeIgniter just seems to fail with nginx. After several trials and errors and gathering bits and pieces…
1
vote
1 answer

NGINX accessing the files in the wrong path

I have a codeigniter application that has the following directory structure |_ | |_ | |_index.php |_ The developers have an index.html in the , and directories. The codeigniter files and the services…
sridhar pandurangiah
  • 743
  • 2
  • 11
  • 28
1
vote
1 answer

Nginx wrong path for include file in CodeIgniter

I’m adding new pages in CI (CodeIgniter 3) including footer, header and other .php files (made by CodeCharge Studio), CI pages (controllers) are running throw a /ci.php file and every thing runs well on Apache2. As I’m also migrating on NginX, when…
1
vote
0 answers

elFinder with NFS: Unable to upload "image.jpg"

I have a NFS mount with permissions 770 on user:group "nfsbackup:nfsbackuo" with www-data as member of group nfsbackup. This is my server connector configuration in PHP, using CodeIgniter 2, working: $opts = array( 'debug' => true, 'roots'…
s3go11
  • 21
  • 3
1
vote
2 answers

How to pipe postfix into Codeigniter controller

I currently have postfix piping into a PHP script to process the email via an alias. catchall: |/var/www/vhosts/website/httpdocs/scripts/incoming_mail.php However, I wish to use the DB config etc supplied in my CI project, so I need to provide a…
Jim Wright
  • 113
  • 4
1
vote
1 answer

nginx rewrite or internal redirection, primary script unknown

I am converting to nginx from apache. The application in question is as follows /contentlibrary_js /contentlibrary_js/app/index.php --> one page ajax app /contentlibrary_js/pagecreator/index.php --> codeigniter application backend I'm hoping to…
user2108258
  • 303
  • 1
  • 3
  • 10
1
vote
1 answer

Codeigniter URL only work for default router

I've installed Codeigniter on Nginx with this configuration : server { listen 80; server_name myserver; root /usr/share/nginx/html; index index.php index.html index.htm; error_log /var/log/nginx/localhost.error_log debug; location ~*…
OnlyMAJ
  • 167
  • 3
  • 11
1
2 3 4 5