Trying to run a codeigniter app on custom phpapache configuration for cohosting mod_python and php based appsApache2/fastcgi/php fastcgi/haproxy - graceful restart problems changing configuration settingsDjango running on Apache+WSGI and apache SSL proxyingHow to best maintain security with a contractor installing a PHP/CodeIgniter/MySQL app?apache2 configuration for blog.example.com not workingWhy the php-cgi wrapper script for php-fpm? (Using virtualhost and suexec.)Apache + Codeigniter + New Server + Unexpected ErrorsDoing two rewrites with apache and rewrite module together with webdavNginx throws a 404 error when trying to access a CodeIgniter (PHP) controllerCodeIgniter nginx rewrite rules for i8ln URL's
Flooding vs Unknown Unicast Flooding
What will Doctor Strange protect now?
Company stopped my paying salary. What are my options?
Opposite party turned away from voting when ballot is all opposing party
Align a table column at a specific symbol
When was it publicly revealed that a KH-11 spy satellite took pictures of the first Shuttle flight?
Are there vaccine ingredients which may not be disclosed ("hidden", "trade secret", or similar)?
How to explain intravenous drug abuse to a 6-year-old?
My perfect evil overlord plan... or is it?
Whose birthyears are canonically established in the MCU?
How is it believable that Euron could so easily pull off this ambush?
Is it possible to do moon sighting in advance for 5 years with 100% accuracy?
How could a civilization detect tachyons?
Partition error (Fdisk/Parted)
Was Mohammed the most popular first name for boys born in Berlin in 2018?
What are my options legally if NYC company is not paying salary?
What's the difference between "ricochet" and "bounce"?
Is there an idiom that means "revealing a secret unintentionally"?
Crime rates in a post-scarcity economy
What is the Ancient One's mistake?
Exactly which act of bravery are Luke and Han awarded a medal for?
Do oversize pulley wheels increase derailleur capacity?
How to append code verbatim to .bashrc?
Expl3 and recent xparse on overleaf: No expl3 loader detected
Trying to run a codeigniter app on custom php
apache configuration for cohosting mod_python and php based appsApache2/fastcgi/php fastcgi/haproxy - graceful restart problems changing configuration settingsDjango running on Apache+WSGI and apache SSL proxyingHow to best maintain security with a contractor installing a PHP/CodeIgniter/MySQL app?apache2 configuration for blog.example.com not workingWhy the php-cgi wrapper script for php-fpm? (Using virtualhost and suexec.)Apache + Codeigniter + New Server + Unexpected ErrorsDoing two rewrites with apache and rewrite module together with webdavNginx throws a 404 error when trying to access a CodeIgniter (PHP) controllerCodeIgniter nginx rewrite rules for i8ln URL's
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a CodeIgniter app that I deployed to a server with php 5.2 and my dev box has 5.3, and some stuff doesn't work anymore. I didn't want to upgrade php and risk the other app on the server having issues. Anyway I compiled a custom PHP and added the following to a single .conf file in /etc/httpd/conf.d/zcid.conf with all the other conf files.
<VirtualHost *:80>
DocumentRoot /var/www/cid/app
ServerName sub.example.co.nz
</VirtualHost>
<Directory "/var/www/cid/app">
authtype Basic
authname "oh dear how did this get here i am no good with computer"
authuserfile /path/to/auth
require valid-user
RewriteEngine on
RewriteCond $1 !^(index.php|robots.txt|createEvent.php|/cgi-bin)
RewriteRule ^(.*)$ /index.php/$1 [L]
AddHandler custom-php .php
Action custom-php /cgi-bin/php53.cgi
</Directory>
In /var/www/cid/app I have the cgi-bin folder and the php53.cgi that I copied from /usr/local/php53/bin/php-cgi
But now when I navigate to the subdomain it says:
The requested URL /cgi-bin/php53.cgi/index.php/ was not found on this server.
And if I try to browse to /cgi-bin it says (what it is supposed to?):
You don't have permission to access /cgi-bin/ on this server.
Quite confused now. Anyone know what to do here?
Thanks :)
apache-2.2 php codeigniter cgi-bin
add a comment |
I have a CodeIgniter app that I deployed to a server with php 5.2 and my dev box has 5.3, and some stuff doesn't work anymore. I didn't want to upgrade php and risk the other app on the server having issues. Anyway I compiled a custom PHP and added the following to a single .conf file in /etc/httpd/conf.d/zcid.conf with all the other conf files.
<VirtualHost *:80>
DocumentRoot /var/www/cid/app
ServerName sub.example.co.nz
</VirtualHost>
<Directory "/var/www/cid/app">
authtype Basic
authname "oh dear how did this get here i am no good with computer"
authuserfile /path/to/auth
require valid-user
RewriteEngine on
RewriteCond $1 !^(index.php|robots.txt|createEvent.php|/cgi-bin)
RewriteRule ^(.*)$ /index.php/$1 [L]
AddHandler custom-php .php
Action custom-php /cgi-bin/php53.cgi
</Directory>
In /var/www/cid/app I have the cgi-bin folder and the php53.cgi that I copied from /usr/local/php53/bin/php-cgi
But now when I navigate to the subdomain it says:
The requested URL /cgi-bin/php53.cgi/index.php/ was not found on this server.
And if I try to browse to /cgi-bin it says (what it is supposed to?):
You don't have permission to access /cgi-bin/ on this server.
Quite confused now. Anyone know what to do here?
Thanks :)
apache-2.2 php codeigniter cgi-bin
You're trying to run codeigniter against a cgi connected PHP??? You should really have a look at php-fpm
– symcbean
Mar 25 '12 at 22:39
add a comment |
I have a CodeIgniter app that I deployed to a server with php 5.2 and my dev box has 5.3, and some stuff doesn't work anymore. I didn't want to upgrade php and risk the other app on the server having issues. Anyway I compiled a custom PHP and added the following to a single .conf file in /etc/httpd/conf.d/zcid.conf with all the other conf files.
<VirtualHost *:80>
DocumentRoot /var/www/cid/app
ServerName sub.example.co.nz
</VirtualHost>
<Directory "/var/www/cid/app">
authtype Basic
authname "oh dear how did this get here i am no good with computer"
authuserfile /path/to/auth
require valid-user
RewriteEngine on
RewriteCond $1 !^(index.php|robots.txt|createEvent.php|/cgi-bin)
RewriteRule ^(.*)$ /index.php/$1 [L]
AddHandler custom-php .php
Action custom-php /cgi-bin/php53.cgi
</Directory>
In /var/www/cid/app I have the cgi-bin folder and the php53.cgi that I copied from /usr/local/php53/bin/php-cgi
But now when I navigate to the subdomain it says:
The requested URL /cgi-bin/php53.cgi/index.php/ was not found on this server.
And if I try to browse to /cgi-bin it says (what it is supposed to?):
You don't have permission to access /cgi-bin/ on this server.
Quite confused now. Anyone know what to do here?
Thanks :)
apache-2.2 php codeigniter cgi-bin
I have a CodeIgniter app that I deployed to a server with php 5.2 and my dev box has 5.3, and some stuff doesn't work anymore. I didn't want to upgrade php and risk the other app on the server having issues. Anyway I compiled a custom PHP and added the following to a single .conf file in /etc/httpd/conf.d/zcid.conf with all the other conf files.
<VirtualHost *:80>
DocumentRoot /var/www/cid/app
ServerName sub.example.co.nz
</VirtualHost>
<Directory "/var/www/cid/app">
authtype Basic
authname "oh dear how did this get here i am no good with computer"
authuserfile /path/to/auth
require valid-user
RewriteEngine on
RewriteCond $1 !^(index.php|robots.txt|createEvent.php|/cgi-bin)
RewriteRule ^(.*)$ /index.php/$1 [L]
AddHandler custom-php .php
Action custom-php /cgi-bin/php53.cgi
</Directory>
In /var/www/cid/app I have the cgi-bin folder and the php53.cgi that I copied from /usr/local/php53/bin/php-cgi
But now when I navigate to the subdomain it says:
The requested URL /cgi-bin/php53.cgi/index.php/ was not found on this server.
And if I try to browse to /cgi-bin it says (what it is supposed to?):
You don't have permission to access /cgi-bin/ on this server.
Quite confused now. Anyone know what to do here?
Thanks :)
apache-2.2 php codeigniter cgi-bin
apache-2.2 php codeigniter cgi-bin
edited Apr 29 at 10:18
Gerald Schneider
6,90332647
6,90332647
asked May 18 '10 at 4:37
hamstarhamstar
3252517
3252517
You're trying to run codeigniter against a cgi connected PHP??? You should really have a look at php-fpm
– symcbean
Mar 25 '12 at 22:39
add a comment |
You're trying to run codeigniter against a cgi connected PHP??? You should really have a look at php-fpm
– symcbean
Mar 25 '12 at 22:39
You're trying to run codeigniter against a cgi connected PHP??? You should really have a look at php-fpm
– symcbean
Mar 25 '12 at 22:39
You're trying to run codeigniter against a cgi connected PHP??? You should really have a look at php-fpm
– symcbean
Mar 25 '12 at 22:39
add a comment |
2 Answers
2
active
oldest
votes
Maybe have a look at this thread:
http://codeigniter.com/forums/viewthread/96347/
add a comment |
chmod 777 cgi-bin
2
-1. You should only use777if you really need any system user to have write access. If your problem is "the Apache user needs access to a directory", create a group with that user in, give that group ownership of that directory and set permissions accordingly.
– nickgrim
Jan 19 '12 at 10:04
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f142851%2ftrying-to-run-a-codeigniter-app-on-custom-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Maybe have a look at this thread:
http://codeigniter.com/forums/viewthread/96347/
add a comment |
Maybe have a look at this thread:
http://codeigniter.com/forums/viewthread/96347/
add a comment |
Maybe have a look at this thread:
http://codeigniter.com/forums/viewthread/96347/
Maybe have a look at this thread:
http://codeigniter.com/forums/viewthread/96347/
answered Sep 9 '10 at 11:46
JustTryingToHelp
add a comment |
add a comment |
chmod 777 cgi-bin
2
-1. You should only use777if you really need any system user to have write access. If your problem is "the Apache user needs access to a directory", create a group with that user in, give that group ownership of that directory and set permissions accordingly.
– nickgrim
Jan 19 '12 at 10:04
add a comment |
chmod 777 cgi-bin
2
-1. You should only use777if you really need any system user to have write access. If your problem is "the Apache user needs access to a directory", create a group with that user in, give that group ownership of that directory and set permissions accordingly.
– nickgrim
Jan 19 '12 at 10:04
add a comment |
chmod 777 cgi-bin
chmod 777 cgi-bin
answered Jul 9 '10 at 9:39
sudipta
2
-1. You should only use777if you really need any system user to have write access. If your problem is "the Apache user needs access to a directory", create a group with that user in, give that group ownership of that directory and set permissions accordingly.
– nickgrim
Jan 19 '12 at 10:04
add a comment |
2
-1. You should only use777if you really need any system user to have write access. If your problem is "the Apache user needs access to a directory", create a group with that user in, give that group ownership of that directory and set permissions accordingly.
– nickgrim
Jan 19 '12 at 10:04
2
2
-1. You should only use
777 if you really need any system user to have write access. If your problem is "the Apache user needs access to a directory", create a group with that user in, give that group ownership of that directory and set permissions accordingly.– nickgrim
Jan 19 '12 at 10:04
-1. You should only use
777 if you really need any system user to have write access. If your problem is "the Apache user needs access to a directory", create a group with that user in, give that group ownership of that directory and set permissions accordingly.– nickgrim
Jan 19 '12 at 10:04
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f142851%2ftrying-to-run-a-codeigniter-app-on-custom-php%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You're trying to run codeigniter against a cgi connected PHP??? You should really have a look at php-fpm
– symcbean
Mar 25 '12 at 22:39