Questions tagged [codeigniter]

CodeIgniter is an open source MVC framework for PHP.

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 views

"The User Agent is required to access this page" message only goes away when I clear NGINX cache

I'm new to NGINX and can't really tell if there's a problem with it or with our app. My PHP application has a php package Device Detector that is responsible for User Agent info as well as CodeIgniter,...
user avatar
0 votes
2 answers
148 views

AWS EC2 MySQL Replication: Config To Query Slave From Master

I have successfully set up a MySQL master-slave situation on separate AWS EC2 instances. The slave is running and is successfully replicating the master. So far so good. Now I want to be able to query ...
user avatar
0 votes
0 answers
37 views

Subdomain in nginx with codeigniter

So currently all users profile page are loaded on path https://example.com/username. i want to change that and load user profile page on https://username.example.com. i am using nginx as web server,...
user avatar
1 vote
1 answer
92 views

How to Set Up folder Based Virtual Hosting (Vhosts) With Apache Web Server on ubuntu like /localhost/site1 localhost/site2

I am trying to configure virtual hosts with multiple sites with codeigniter based on folders on ubuntu 18 with Apache2. By this what I mean is site1 is to be accessed by using url http://localhost/...
user avatar
0 votes
0 answers
171 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
-1 votes
1 answer
393 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 ...
user avatar
0 votes
2 answers
550 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 ...
user avatar
0 votes
1 answer
839 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 ...
user avatar
0 votes
1 answer
2k 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: ...
user avatar
  • 506
0 votes
2 answers
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. ...
user avatar
1 vote
1 answer
152 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] # ...
user avatar
  • 133
0 votes
3 answers
7k 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.?
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 809
0 votes
1 answer
305 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 ...
user avatar
  • 237
1 vote
0 answers
62 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 ...
user avatar
  • 141
1 vote
1 answer
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 ...
user avatar
1 vote
1 answer
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....
user avatar
1 vote
1 answer
490 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 ...
user avatar
1 vote
0 answers
564 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: ...
user avatar
  • 21
0 votes
1 answer
7k 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 { # ... # } # ...
user avatar
3 votes
1 answer
17k 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 ...
user avatar
  • 101
1 vote
2 answers
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
-1 votes
3 answers
1k 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 ...
user avatar
  • 101
0 votes
1 answer
2k 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.: ...
user avatar
  • 101
0 votes
0 answers
182 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 ...
user avatar
1 vote
1 answer
765 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 --> ...
user avatar
1 vote
1 answer
4k 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/...
user avatar
  • 167
0 votes
2 answers
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: ...
user avatar
0 votes
1 answer
573 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 ...
user avatar
1 vote
2 answers
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 ...
user avatar
  • 121
1 vote
0 answers
590 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 ...
user avatar
  • 113
1 vote
1 answer
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 ...
user avatar
  • 131
1 vote
1 answer
1k 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 ...
user avatar
  • 11
1 vote
0 answers
63 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 ....
user avatar
1 vote
0 answers
775 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 ...
user avatar
-1 votes
1 answer
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/...
user avatar
  • 201
0 votes
1 answer
698 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 ...
user avatar
  • 201
0 votes
1 answer
237 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 ...
user avatar
  • 101
2 votes
1 answer
15k 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/...
user avatar
  • 161
0 votes
1 answer
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 ...
user avatar
  • 101
1 vote
1 answer
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 /...
user avatar
  • 901
1 vote
0 answers
1k 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 ...
user avatar
0 votes
1 answer
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 %{...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 131
1 vote
0 answers
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 ...
user avatar
33 votes
1 answer
92k 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 ...
user avatar
1 vote
2 answers
21k 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 ...
user avatar
2 votes
0 answers
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 ...
user avatar
  • 45