Questions tagged [codeigniter]

CodeIgniter is an open source MVC framework for PHP.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

Integrate Codeigniter and Phplist 404 Nginx

Im trying to install codeigniter inside phplist and everything is running well in apache. But its getting 404 when uploaded to live server which is using nginx. I knew it must be the mod_rewrite ...
0
votes
0answers
8 views

CI 3 multiple projects on one server

Hey I'm developing a CI 3 app for a company and the company has a lot of branches and in each branch I create the project like this: website.com/branch1 website.com/branch2 each of these branches has ...
1
vote
1answer
32 views

Error Log for Apache, PHP, and Codeigniter

In our Apache access logs, we've noticed users occasionally getting a 500 error. It is likely a database query problem within our CodeIgniter code. We can't be sure how to fix it until we see the ...
0
votes
1answer
35 views

How can I fix the error Undefined variable: _ENV in /home/nginx/domains/mydomain.com/system/Config/BaseConfig.php?

I am trying to install a Codeigniter application in pure NGINX + PHP-FPM environment but it was previously developed in apache . After adding all the proper rules to Nginx in order to work with ...
0
votes
2answers
45 views

Virutal Hosting using XAMPP in AWS EC2 INSTANCE

Trying to host 2 or more domains in a single aws ec2 instance. my configuration is: host: 18.219.39.37 [my domain] httpd.conf: Listen 80 <Directory /> AllowOverride none Require ...
0
votes
1answer
442 views

DigitalOcean load balancer health checks flooding my CodeIgniter sessions

I've been trying to figure this one out for a while now, but so far no success. After contacting DigitalOcean support a couple of times, I'm even more lost. I have the following setup: domain points ...
0
votes
1answer
1k views

SetEnv in htaccess file doesn't work with PHP-FPM

I'm moving from a prefork apache setup to event mode with php-fpm. In prefork mode, I can use SetEnv directives in an htaccess file like so: SetEnv CI_ENV testing And that value ends up in PHP: ...
0
votes
2answers
2k views

nginx + codeigniter configuration not working on CentOS 7?

I am new on nginx and try to find the issue on StackOverflow but not found the exact one on forums. After successful installation of nginx, MySQL and php-fpm I test the php.info that was working fine. ...
1
vote
1answer
76 views

htaccess file to do specific rewrites on different uri

I have the following in my .htaccess file: <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On # Block hidden directories RewriteRule "(^|/)\." - [F] # ...
0
votes
3answers
4k views

How to enable .htaccess file in windows server [closed]

I am new to windows server and I'd usually used .htaccess file which is not working in a windows server. How can I enable .htaccess file in windows server.?
0
votes
1answer
1k views

How to configure NGINX location to serve Codeigniter RESTful API in sub directory of server?

I have the following directory structure: mysite.com - /api (codeigniter RESTful API Server) - /app (backbonejs app) I'm trying to configure NGINX to point all requests for mysite.com/api* to the ...
-1
votes
1answer
285 views

Nginx codeigniter setup [closed]

I'm trying to set up Nginx to serve CodeIgniter as per the official docs: https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter. The problem is, I have no clue what the directive ...
1
vote
0answers
56 views

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 ...
1
vote
1answer
2k views

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 ...
1
vote
1answer
1k views

NGINX accessing the files in the wrong path

I have a codeigniter application that has the following directory structure <HOME> |_ <web> | |_<API> | |_index.php |_<admin> The developers have an index....
1
vote
1answer
405 views

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 ...
1
vote
0answers
538 views

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: ...
0
votes
1answer
5k views

Nginx throws a 404 error when trying to access a CodeIgniter (PHP) controller

I'm trying to use CodeIgniter with Nginx. I'm on development so I'm running on localhost. This is my /etc/nginx/sites-avaiable/default file: # You may add here your # server { # ... # } # ...
3
votes
1answer
12k views

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 ...
1
vote
2answers
1k views

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 ...
0
votes
1answer
1k views

How do I remove index.php from url in CodeIgniter 2.2 [duplicate]

I have tried all the methods I can find on the web but nothing seems to work. I still get a 404 page. I already modified $config['index_page'] = ''; and add the lines to .htaccess as suggested by the ...
-1
votes
3answers
923 views

How do I map root domain to external subdomain [duplicate]

I'm trying to map somedomain.com to here.anotherdomain.com. I can do any sub domains of the original using a CNAME but the root domain ( somedomain.com ) needs an A record. This is currently set to ...
0
votes
1answer
1k views

Configuring .htaccess on a site with a CodeIgniter app and traq issue tracker

I have this site running on CodeIgniter and I have installed traq for issue tracking. Under public_html I have my application and system directory as well as an assets directory, and also traq. i.e.: ...
0
votes
0answers
177 views

Nginx Removes the index.php from URL

I have a codeigniter php application on nginx. It works as expected on Apache but after moving to nginx, I noticed that the index.php is automatically removed from the URL in all my links. Infact when ...
1
vote
1answer
720 views

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 --> ...
1
vote
1answer
3k views

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/...
0
votes
2answers
1k views

Should i separate MYSQL from PHP and NODE JS to another server

I am a PHP Programmer and working on community website. I am using Apache NodeJS Php and Mysql on server: 24GB RAM Intel i7 950 8Cores 8Threads 3.06GHz, 120GB SSD HDD 12GB SWAP (dedicated server) OS: ...
0
votes
1answer
487 views

Under nginx and codeigniter how do i redirect certain pages from http to https

I want that certain pages to be available on https but not on http. I have a Code Igniter framework there. Here is the code from nginx conf: server { listen 80; ...... #enforce ...
1
vote
2answers
2k views

System load average is extremely high

I own a website which is running on a VPS since last week. From monday until saturday, everything is going smoothly. The website has around 4.500 unique visitors a day, and the load average and ...
1
vote
0answers
528 views

nginx codeigniter rewrite: Controller name conflicts with directory

I'm trying out nginx and porting my existing apache configuration to nginx. I have managed to reroute the codeigniter url's successfully, but I'm having a problem with one particular controller whose ...
1
vote
1answer
1k views

nginx: rewrite subdomain to subdirectory without redirect

I'd like nginx to rewrite any http://api.example.org/xyz requests to actually call example.org/api/xyz behind the scenes. The tricky part too is that I'm using CodeIgniter so rather than load a php ...
1
vote
1answer
860 views

Nginx and Codeigniter rewrite error

I am trying to get a site on nginx running based on codeigniter. Some parts work but some fail. I noticed in access logs that index.php sometimes has two slashes at the end insted of one I am also ...
1
vote
0answers
61 views

codeignitor Halogy rewrite issue

I'm using a CMS called halogy built off codeignitor but can't figure out how to get it to work correctly in IIS. I think its related to the rewrite from Apache (works fine on Apache) heres the ....
1
vote
0answers
717 views

Nginx + php5-fpm + CodeIgniter Response Too Slow

I have installed nginx, php5-fpm and setup codeigniter with REST controller on Ubuntu 12.04 LTS. The configurations work but response is too slow at times, even with just a single user. Sometimes the ...
-1
votes
1answer
3k views

Blank CodeIgniter Home Page on Amazon EC2 [closed]

My CodeIgniter app is working fine in WAMP using http://localhost/myapp However, I'm getting a blank page on my Amazon EC2 micro instance using http://xxx-xxx-xxx-xxx-xxx.compute-1.amazonaws.com/...
0
votes
1answer
652 views

Errors uploading CodeIgniter Website to Amazon EC2

I tried to transfer my CodeIgniter website to /var/www/html located within my Amazon EC2 micro instance using FileZilla. However, the transfer was unsuccessful as I received hundreds of transfer ...
0
votes
1answer
233 views

Problems with Rewriting URLs having fcgid enabled

First some information about my server: Apache2 Version: 2.4 Modules: php5 : disabled; rewrite : enabled; suexec : enabled; fcgid : enabled; Php Version: 5.3.3 I am currently creating a website ...
1
vote
1answer
13k views

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/...
0
votes
1answer
6k views

Can't get Codeigniter URLs working on Nginx [duplicate]

After successfully setting up nginx on my windows, another problem where I am stuck. Though, everything works as usual. I am able to access pages and PHP works fine but problem comes when I try to use ...
1
vote
1answer
1k views

How to setup CodeIgniter with nginx allowing for SSL?

My nginx.conf file has: server { listen 80; listen 443; server_name www.mysite.com; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; root /...
1
vote
0answers
984 views

500 Error when logging into subdomain using codeigniter

I have a website that has been setup and working fine for ages. It's built using Code Igniter. It's run using .htaccess files to restrict access and hide urls. All fine. Until a couple of days ago ...
0
votes
1answer
1k views

Apache rewrite rule to remove index.php and direct certain areas to https

I have a codeignitor application running on Apache2, I have managed to remove the index.php from the urls with this .htaccess RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
0
votes
1answer
2k views

NGinx rewrite rules and post parameters

I have a website, using CodeIgniter, and running under NGinx. I used these rewrite rules to cleanup the URL, and remove the index.php from the URL. Unfortunately, I have a problem with AJAX queries ...
1
vote
0answers
2k views

only removing index.php rule works on my NginX and CodeIgniter as rewrite. Why?

Although I've spent 2 days reading on forums, I still can't get some Codeigniter rewrites working in Nginx. Here is the server configuration: server { listen *:80; server_name artademy.com ...
31
votes
1answer
82k views

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 ...
1
vote
2answers
20k views

.htaccess Rewrite Rules Not Working (CodeIgniter) [closed]

Here's what I want to do: I'm using CodeIgniter, so all URLs are in the form of http://example.com/index.php/controller/function. However, the script I've written is a essentially a glorified link ...
2
votes
0answers
5k views

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 ...
1
vote
1answer
974 views

Mod_rewrite is ignoring the extension of a file

This is my entire mod_rewrite condition: <IfModule mod_rewrite.c> <Directory /var/www/> Options FollowSymLinks -Multiviews AllowOverride None Order allow,deny allow ...
2
votes
4answers
2k views

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 ...
3
votes
2answers
15k views

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 ...