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;








1















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 :)










share|improve this question
























  • 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

















1















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 :)










share|improve this question
























  • 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













1












1








1








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 :)










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















1














Maybe have a look at this thread:
http://codeigniter.com/forums/viewthread/96347/






share|improve this answer






























    -5














    chmod 777 cgi-bin






    share|improve this answer


















    • 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











    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
    );



    );













    draft saved

    draft discarded


















    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









    1














    Maybe have a look at this thread:
    http://codeigniter.com/forums/viewthread/96347/






    share|improve this answer



























      1














      Maybe have a look at this thread:
      http://codeigniter.com/forums/viewthread/96347/






      share|improve this answer

























        1












        1








        1







        Maybe have a look at this thread:
        http://codeigniter.com/forums/viewthread/96347/






        share|improve this answer













        Maybe have a look at this thread:
        http://codeigniter.com/forums/viewthread/96347/







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 9 '10 at 11:46







        JustTryingToHelp






























            -5














            chmod 777 cgi-bin






            share|improve this answer


















            • 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















            -5














            chmod 777 cgi-bin






            share|improve this answer


















            • 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













            -5












            -5








            -5







            chmod 777 cgi-bin






            share|improve this answer













            chmod 777 cgi-bin







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 9 '10 at 9:39







            sudipta














            • 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












            • 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







            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

















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos