Re: httpd + dokuwiki or mailman
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).
Re: httpd + dokuwiki or mailman
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.
httpd + dokuwiki or mailman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello misc OpenBSD 5.7-beta (GENERIC) #727: Sun Mar 1 02:30:38 MST 2015 I did an installation of Dokuwiki, i gave execution permit to install.php and then i try to run install.php in the server historia = dokuwiki. I tested too, with ln -sf from htdocs to historia (dokuwiki). first try: # /var/www/dokuwiki then: i installed lynx, and tried to run it again. from other machine, i used firefox and the file was only available to open it with an editor or download it. I tested many posibilities on the httpd.conf. # $OpenBSD: httpd.conf,v 1.13 2014/12/28 13:55:22 reyk Exp $ # # Macros # ext_addr=* # # Global Options # # prefork 3 # # Servers # # A minimal default server server default { listen on $ext_addr port 80 } # A name-based virtual server on the same address server agronomos { listen on $ext_addr port 80 } # A name-based virtual server on the same address server dokuwiki { listen on $ext_addr port 80 } # Logging is enabled by default, but it can be turned off per server #no log ### location /pub/* { ### directory auto index ### log style combined ### } ### location *.php { ### fastcgi socket /run/php-fpm.sock ### } ### location /cgi-bin/* { ### fastcgi # The /cgi-bin directory is outside of the document root ### root / ### } ### root /htdocs/example.com ###} # An HTTPS server using SSL/TLS ###server secure.example.com { ### listen on 127.0.0.1 tls port 443 # Define server-specific log files relative to /logs ### log { access secure-access.log, error secure-error.log } # Increase connection limits to extend the lifetime ### connection { max requests 500, timeout 3600 } ### root /htdocs/secure.example.com ###} # Another server on a different internal IPv4 address ###server intranet.example.com { ### listen on 10.0.0.1 port 80 ### directory { auto index, index default.htm } ### root /htdocs/internet.example.com ###} # An IPv6-based server on a non-standard port ###server ipv6.example.com { ### listen on 2001:db8::53f6:3eab port 81 ### root /htdocs/ipv6.example.com ###} # Include MIME types instead of the built-in ones types { include /usr/share/misc/mime.types } I am curious, how is expected to run install.php; i have done it few times before with apache and nginx, but i can not figure it out whit httpd. I am in need to do it from other computer, via ssh or directly from firefox. Thanks for your attention, and a really great OS. agrquinonez PS: My next step is to install mailman! iQEcBAEBAgAGBQJU+LSeAAoJEKbsEnZGVkUMelIH/R0B5xePjHVA5NkgFbXj1kix urRUwhg8J3zSg8hlR+Ohf0tlu6yCL0kDk0X4AwvcBygrs6cOCXlwuDm0QLHFS7HJ mZdLFDel9VOpAFwAwgLvJ+e23asYcuDuJ/mJkLXHW7Bppb8fs8F+gFwDdnogB2k3 sTCAVEqXILl2YzDlnoGvkzHxAs4u6ucVgFq82mmhDPzkk1T5ad1RyHpv6GMeOfn+ 8jSy4mt13t8aXM7BFNi+iijohPabpS3q4kxOZp55DMS74sKA3TJqgvzE76jnkU0K 9spDIfC3jgu8m14WMXKPtRQyohAWMkbKXoWFQPXqGdPRZncTJzZ+/oJWNhthsec= =SSOd -END PGP SIGNATURE-
Re: httpd + dokuwiki or mailman
-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-