|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
httpd web server not read my files
Hi,
I am trying to have a little web server onto OpenBSD 5.7, running on VMware. I followed this tutorial but I noticed that it is very old! From 5.6 version, in fact, there is a new httpd server as I understand it. One of the issues I am having is to install mysql-server: this packet does not seems to exists! After, I configured /var/www/conf/http.conf in this way: Quote:
If I type links MY_IP it prints It works instead of the content of index.html file I put in /var/www/htdocs. Why? Is there a tutorial to correctly install a web server? Thanks. |
|
|||
Have you read the man pages for httpd(8) and httpd.conf(5) and looked at the example config in /etc/examples/ ?
The base httpd config file goes in /etc/, not in /var/www Give that a try and see if you make it further. Tim. |
|
|||
Yes, I read the httpd.conf example before to make any changes.
Now, I copied /var/www/conf/httpd.conf in /etc/ but if I typed links MY_IP I have a connection refused error. |
|
|||
Try connecting to 127.0.0.1, if that works what is your firewall configuration?
Tim. |
|
|||
Quote:
Edit 1: Another question: why OpenBSD does not find mysql-server? Is there another way to have php and mysql? I only install php-mysql packet Edit 2: If I try to open a php file in links or graphical browser I cannot view the file but the browser give me only the possibility to download the file. Last edited by tab; 27th October 2015 at 10:15 AM. Reason: added info |
|
||||
I believe you are looking for MariaDB. https://en.wikipedia.org/wiki/MariaDB
After installing mariadb-server:
|
|
|||
Is it compatible with some CMS such as Wordpress?
Quote:
Thanks |
|
||||
I don't use either Wordpress or MariaDB, but the very first hit on a Google search using those two words was this link, which says:
Quote:
Quote:
Last edited by jggimi; 27th October 2015 at 11:05 AM. Reason: corrected mariadb wordpress link |
|
|||
I had already read the official paper. I also read your link (and your post) but I have a 500 Internal Server Error.
I do not have php-fpm.sock under /var/www/run or /var/run. So, I tried to install php-fpm with pkg_add -v but the problem is the same. |
|
||||
You must start the php-fpm daemon. You may use rcctl(8) as previously discussed.
Edited to add: The php-fpm daemon at 5.7 is named "php_fpm" -- note the underscore character. Last edited by jggimi; 27th October 2015 at 12:18 PM. Reason: added daemon name |
|
|||
ok, thank you very very much!
Now, all works! |
Tags |
httpd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mdoc(7) documentation/ tutorial | J65nko | News | 0 | 29th August 2011 02:00 AM |
Tutorial for installing Gnome 2.28.2 on OpenBSD 4.7 | jcdenton | OpenBSD Packages and Ports | 7 | 26th April 2011 05:24 AM |
openBSD webserver tutorial | werwer | OpenBSD Packages and Ports | 2 | 29th May 2010 04:20 PM |
good vi(1) tutorial | ocicat | General software and network | 4 | 8th April 2010 04:12 AM |
Java online tutorial | 18Googol2 | Programming | 5 | 28th August 2008 03:07 AM |