Skip to main content

Questions tagged [codeigniter]

CodeIgniter is an open source MVC framework for PHP.

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

I am Attempting to local port forward a website on a LXC to view on host web browser but getting "Connection was reset"

I have a CodeIgniter app that is hosted on a LXC container at IP 10.0.3.200 with user name ci I use the following local port forwarding method in separate terminal: ssh -L 8080:127.0.0.1:8080 [email protected]....
earth2jason's user avatar
1 vote
2 answers
1k views

CPU Usage 98% /usr/sbin/mysqld and server down

How to solve this issue. php codeigniter framwork Everyday our server goes down because of these issue. CPU usage 98 % Ram used 21 083 MB /usr/sbin/mysqld
majid lateef's user avatar
0 votes
2 answers
3k views

Multiple php-fpm pools and nginx

I have a website which is built on Codeigniter 3. It is a typical nginx + php-fpm setup. Now I need to direct some of the requests to be handled by another php-fpm pool. Here is a simplified example ...
Steve's user avatar
  • 143
0 votes
1 answer
129 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,...
Cris Tecelo's user avatar
0 votes
2 answers
558 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 ...
James Butler's user avatar
0 votes
0 answers
149 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,...
Dhrumil Patel's user avatar
1 vote
1 answer
1k 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/...
Aravinda B N's user avatar
0 votes
0 answers
273 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 ...
Aradea Techno's user avatar
1 vote
1 answer
3k 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 ...
Christian's user avatar
-1 votes
1 answer
628 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 ...
Optimus Servers's user avatar
0 votes
2 answers
1k 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 ...
connorliam's user avatar
0 votes
1 answer
985 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 ...
Javier Larroulet's user avatar
1 vote
1 answer
3k 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: ...
S. Imp's user avatar
  • 585
0 votes
2 answers
3k 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. ...
NomanJaved's user avatar
1 vote
1 answer
526 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] # ...
Tom's user avatar
  • 133
0 votes
3 answers
9k 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.?
Hanan Ashraf's user avatar
0 votes
1 answer
3k 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 ...
David's user avatar
  • 851
0 votes
1 answer
341 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 ...
ankush981's user avatar
  • 257
1 vote
0 answers
70 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 ...
sqwale's user avatar
  • 141
1 vote
1 answer
3k 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 ...
anithegregorian's user avatar
1 vote
1 answer
2k 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....
sridhar pandurangiah's user avatar
1 vote
1 answer
652 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 ...
Fédi BELKACEM's user avatar
1 vote
0 answers
610 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: ...
s3go11's user avatar
  • 21
0 votes
1 answer
9k 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 { # ... # } # ...
user2719875's user avatar
3 votes
2 answers
20k 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 ...
Arodes's 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 ...
Jim Wright's 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 ...
user3512976's user avatar
0 votes
3 answers
2k 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 ...
jhodgson4's user avatar
  • 111
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.: ...
alexg's user avatar
  • 101
0 votes
0 answers
195 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 ...
codeHead's user avatar
1 vote
1 answer
831 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 --> ...
user2108258's 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/...
OnlyMAJ's 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: ...
user3420783's user avatar
0 votes
1 answer
668 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 ...
user3116300's 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 ...
Tomzie's user avatar
  • 121
1 vote
0 answers
648 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 ...
palerdot's 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 ...
taber's 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 ...
osci's user avatar
  • 11
1 vote
0 answers
65 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 ....
Michael Rooks's user avatar
1 vote
0 answers
800 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 ...
Shahqaan Qasim's 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/...
Anthony's user avatar
  • 201
0 votes
1 answer
778 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 ...
Anthony's user avatar
  • 201
0 votes
1 answer
251 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 ...
Xavjer's 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/...
Harlsten's 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 ...
Shubham's user avatar
  • 101
1 vote
1 answer
2k 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 /...
Shamoon's 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 ...
itsdanprice's user avatar
0 votes
1 answer
2k 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 %{...
squareborg's 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 ...
Emidee's 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 ...
Atomei Cosmin's user avatar