On Fri, Mar 6, 2015 at 9:37 AM, Felipe Scarel <fbsca...@gmail.com> wrote:
>
> On Thu, Mar 5, 2015 at 6:06 PM, agrquinonez <agrquino...@agronomos.ca> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 03/05/2015 12:14 PM, Michael wrote:
> >> I run dokuwiki on httpd with php-fpm.
> >>
> >> I did an: cd /var/www/htdocs && ln -s ../../dokuwiki doku The
> >> config in /etc/examples will work ok if you adjust the root
> >> directive. You will need to open the full name via your browser, as
> >> in my setup http://127.0.0.1/doku/doku.php as you will get an error
> >> otherwise.
> >>
> >
> > Thanks to respond.
> >
> > Yes, but i do not have, and i do not want a browser in the server;
> > then i tried /var/www/htdocs/dokuwiki/install.php with:
> >
> > ln -sf /var/www/htdocs/dokuwiki /var/www/dokuwiki
> >
> > and:
> >
> >         location "*.php" {
> >                 fastcgi socket "/run/php-fpm.sock"
> >         }
> >
> > After that, i tried from an external machine:
> >
> > www.my_server.org/dokuwiki/install.php
> >
> > What is wrong with it?
> >
> > Is it what you mean?
> > # A name-based "virtual" server on the same address
> > server "dokuwiki" {
> >         listen on $ext_addr port 80
> >         root "/dokuwiki"
> > }
> > iQEcBAEBAgAGBQJU+MVEAAoJEKbsEnZGVkUMx38IAJf8dr8nZ5NPxCLVtebSIcHt
> > hRnMwtVEs1t3/COkGuH10tgs2qzsmvL78/gnnDeM5O6xVAVLARAjA0pCXvgGudd3
> > 45K0GnpJCLR6cx0e6OTpSijwxYa1rPmI8fe4alq4wWT6cyJ1f+p7WgyfU+VkDLZp
> > e2oaxRehy4DDunAPhj4TH8uQg5PMcATXKWHjq86Ip7NV04e5zLasgOZNWN9c2Wcb
> > bGhCYpWFbp1KdLUBlODShdrbHGvzrNTJ8SFCwsr5xoGjG50iEcCorC/OD3019iag
> > blVgOk2fZeohXsU4oqTNQpSNROPRlqTDR0FdeAIXFJb6maeC3WtrkdRnxvBiObM=
> > =o7Dj
> > -----END PGP SIGNATURE-----
> >
>
> Check out the "root" and "fastcgi" parameters for httpd on 5.7-beta. Also 
> check out "directory index" if you wish to serve a PHP index file.
> Of course, you also have to install php-fpm for PHP processing and check 
> directory permissions if the application needs write permissions to any files.


I forgot to mention, Reyk has a good tutorial for running OwnCloud
with httpd + php-fpm, here:
https://github.com/reyk/httpd/wiki/Running-ownCloud-with-httpd-on-OpenBSD

Much of what is there can be used as general instructions to run PHP
applications under httpd + php-fpm setups (in my case, Wordpress).

Reply via email to