I decided for suphp because I need it
so I did
# sudo a2dismod php5
# sudo /etc/init.d/apache2 restart
I only have these mods available:
# ls /etc/apache2/mods-enabled/
alias.conf deflate.conf reqtimeout.conf alias.load deflate.load
reqtimeout.load auth_basic.load dir.conf rewrite.load authn_file.load
dir.load setenvif.conf authz_default.load env.load
setenvif.load authz_groupfile.load geoip.conf status.conf authz_host.load
geoip.load status.load authz_user.load mime.conf
suphp.conf autoindex.conf mime.load suphp.load autoindex.load
negotiation.conf userdir.conf cgi.load negotiation.load userdir.load
Also there are two places for suphp.conf file you mentioned:
/etc/apache2/mods-enabled/suphp.conf
/etc/suphp/suphp.conf
*and the files are different (former is if suphp_mod type of syntax and the
other is like a php.ini type of file)
I think cgi came ready with my ubuntu 10.10 so my line for the suphp.conf
(one under /etc/suphp/suphp.conf) reads:
[handlers]
;Handler for php-scripts
application/x-httpd-suphp="php:/usr/bin/php-cgi"
*because under my usr/lib/php5 I only found:
20090626+lfs/ build/ libexec/ maxlifetime
Now I am confused if these lines
AddType application/x-httpd-php5 .php
suPHP_Engine on
go into the /etc/apache2/apache2.conf or the /etc/suphp/suphp.conf
I remember at first I placed them on my apache2.conf but without success,
things would not work already.
And about the
<Location />
SuPHP_AddHandler x-httpd-php5
</Location>
I of course take it to be placed in
# less /etc/apache2/sites-enabled/bunchofsites
<VirtualHost *:80>
ServerName ward.local
DocumentRoot /home/cordoval/Dropbox/ward
SuPHP_AddHandler x-httpd-php5
<!---------------------????
DirectoryIndex index.php
<Directory /home/cordoval/Dropbox/ward/>
AllowOverride All
allow from all
</Directory>
</VirtualHost>
I have been reading for weeks now, and it seems like the problem is hidden
somehow or I am confused about things. But wonder where?
For other people that had done it I am amazed that they had not run into
these problems, it is like plugnplay for them.
Please help, and thanks for your answer.
Luis
PS>
/etc/apache2/apache2.conf --> http://pastebins.com/316
<http://pastebins.com/316>/etc/apache2/sites-available/bunchofsites
<VirtualHost *:80>
ServerName ward.local
DocumentRoot /home/cordoval/Dropbox/ward
DirectoryIndex index.php
<Directory /home/cordoval/Dropbox/ward/>
Options +ExecCGI
AllowOverride All
allow from all
</Directory>
</VirtualHost>
<http://pastebins.com/316>Please let me know if you require any other
information.
Thanks so much,
Luis
- Hide quoted text -
On Mon, Nov 1, 2010 at 6:05 PM, corrideat <[email protected]>wrote:
> Well, if you read the documentation for suPHP, you would see that PHP
> and suPHP shouldn't be run in the same environment at the same time.
> In other words, you either setup your web server to use mod_php (or
> CGI PHP for that matter) OR you set it up to use mod_suphp.
>
> If you decide on the latter, you should modify your /etc/suphp.conf
> (depending on your distro this might be a different file) accordingly,
> pointing to your CGI PHP executable, e.g.,
> [handlers]
> x-httpd-php5="php:/usr/lib/php5/bin/php-cgi" (again, this may also be
> different).
>
> Finally, you should setup your Apache configuration so that .php files
> are mapped to suPHP. For example,
>
> AddType application/x-httpd-php5 .php
> suPHP_Engine on
>
> <Location />
> SuPHP_AddHandler x-httpd-php5
> </Location>
>
> You are strongly advised to read all the documentation concerning this
> module and the Apache webserver in general.
>
> Regards,
>
> On Mon, Nov 1, 2010 at 11:46 PM, Luis Cordova <[email protected]> wrote:
> > I tried at first to just install suphp in ubuntu
> > These are some questions:
> > - do I have to run cgi rather than cli php?
> > - setting up cgi is not clear on the suphp instructions links I have
> found
> > online, can someone help me with clear instructions?
> > - I have spend already weeks on trying to set my ubuntu 10.10 with php
> cgi
> > and suphp for a simple local httpd setup.
> > I really need someone that has done this on ubuntu to help me please
> > I have available:
> > /etc/apache2/apache.conf
> > /etc/apache2/sites-available/site1
> > and other files
> > Can someone please help thanks,
> > skype cordova_luis
> > IRC cordoval_ @ #httpd (I have already been kicked out from the rooms by
> > some of the guys who already know too much to help a newbie like me)
> > Luis
> >
> >
> >
> > _______________________________________________
> > suPHP mailing list
> > [email protected]
> > https://lists.marsching.com/mailman/listinfo/suphp
> >
> >
>
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp