You are not logged in.
Hello all,
I've been trying to set up owncloud over https for way over a day and a half. I kept changing configs (and changing them back again if there was no change) and still i can't manage to set it up. I had Fedora 21 on this pc and it worked but i wanted to change to arch because i know the overall system better and also, because after using Arch Fedora feels too bloated. And i can see that with the boot/poweroff time.
Anyway, I very humbly ask the Arch community if someone can help me. I don't always have on site reach of this pc but I can always reach it over ssh.
Anyway, owncloud and the server itself seems to be working over http, as I can do what I would do normally, but as soon as I use https i get "The connection was interrupted". Apparently, what i found out online searching is that this message should appear when a firewall is online, but i have disabled ufw and flushed iptables rules and still i get this message.
What configs should i show for anyone to help me?
Thanks you
Offline
nginx or apache? What do the web server access or error logs say? How is Owncloud configured - virtual host or subdirectory? Show us the web server configuration for the site.
Offline
** Sorry for not posting before but it was giving me a different error for some reason, same error now tough **
nginx or apache? What do the web server access or error logs say? How is Owncloud configured - virtual host or subdirectory? Show us the web server configuration for the site.
Hi, cris9288
First of all, thank you for taking time to answer me.
Its apache,
You got me there, but I believe its VirtualHost because this is the owncloud.conf(please correct me if I'm wrong for I haven't really used Apache for real for some years now and i might have forgot some knowledge) :
<IfModule mod_alias.c>
Alias /owncloud /usr/share/webapps/owncloud/
</IfModule>
<Directory /usr/share/webapps/owncloud/>
Options FollowSymlinks
AllowOverride all
#Require all granted
php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/owncloud/:/etc/webapps/owncloud"
</Directory>
<VirtualHost /owncloud:443>
ServerAdmin example@example.com
DocumentRoot /usr/share/webapps/owncloud
ServerName 192.168.1.27
ErrorLog /var/log/httpd/owncloud.info-error_log
CustomLog /var/log/httpd/owncloud.info-access_log common
</VirtualHost> Should I post access_log as well? I don't see anything strange there...
I deleter my http error log, so I would get clean results of the actual problem at hand and not of something else.
So /var/log/httpd/error_log is this:
[Tue Feb 17 20:59:26.212938 2015] [lbmethod_heartbeat:notice] [pid 3219] AH02282: No slotmem from mod_heartmonitor
[Tue Feb 17 20:59:26.252354 2015] [mpm_prefork:notice] [pid 3219] AH00163: Apache/2.4.12 (Unix) PHP/5.6.5 configured -- resuming normal operations
[Tue Feb 17 20:59:26.252477 2015] [core:notice] [pid 3219] AH00094: Command line: '/usr/bin/httpd'
[Tue Feb 17 20:59:51.281151 2015] [core:notice] [pid 3219] AH00052: child pid 3220 exit signal Segmentation fault (11)
[Tue Feb 17 20:59:51.281267 2015] [core:notice] [pid 3219] AH00052: child pid 3222 exit signal Segmentation fault (11)
[Tue Feb 17 20:59:51.281282 2015] [core:notice] [pid 3219] AH00052: child pid 3223 exit signal Segmentation fault (11)
The last 4 lines only appear after I try to access owncloud with http. So http works fine, but I would like to use it with https.
It is only after I make sure owncloud works with http that I try to access it over https and I get those error messages on the log and the message "The connection was interrupted" on the browser.
Should I post the actual /etc/httpd/conf/httpd.conf ?
Again thank you.
P.S.: I have tried to write this post with my best English but it isn't my mother tongue so if there is any part unclear please tell me and i will correct it and learn as well ![]()
Offline
** Sorry for not posting before but it was giving me a different error for some reason, same error now tough **
cris9288 wrote:nginx or apache? What do the web server access or error logs say? How is Owncloud configured - virtual host or subdirectory? Show us the web server configuration for the site.
Hi, cris9288
First of all, thank you for taking time to answer me.
Its apache,
You got me there, but I believe its VirtualHost because this is the owncloud.conf(please correct me if I'm wrong for I haven't really used Apache for real for some years now and i might have forgot some knowledge) :
<IfModule mod_alias.c> Alias /owncloud /usr/share/webapps/owncloud/ </IfModule> <Directory /usr/share/webapps/owncloud/> Options FollowSymlinks AllowOverride all #Require all granted php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/owncloud/:/etc/webapps/owncloud" </Directory> <VirtualHost /owncloud:443> ServerAdmin example@example.com DocumentRoot /usr/share/webapps/owncloud ServerName 192.168.1.27 ErrorLog /var/log/httpd/owncloud.info-error_log CustomLog /var/log/httpd/owncloud.info-access_log common </VirtualHost>Should I post access_log as well? I don't see anything strange there...
I deleter my http error log, so I would get clean results of the actual problem at hand and not of something else.So /var/log/httpd/error_log is this:
[Tue Feb 17 20:59:26.212938 2015] [lbmethod_heartbeat:notice] [pid 3219] AH02282: No slotmem from mod_heartmonitor [Tue Feb 17 20:59:26.252354 2015] [mpm_prefork:notice] [pid 3219] AH00163: Apache/2.4.12 (Unix) PHP/5.6.5 configured -- resuming normal operations [Tue Feb 17 20:59:26.252477 2015] [core:notice] [pid 3219] AH00094: Command line: '/usr/bin/httpd' [Tue Feb 17 20:59:51.281151 2015] [core:notice] [pid 3219] AH00052: child pid 3220 exit signal Segmentation fault (11) [Tue Feb 17 20:59:51.281267 2015] [core:notice] [pid 3219] AH00052: child pid 3222 exit signal Segmentation fault (11) [Tue Feb 17 20:59:51.281282 2015] [core:notice] [pid 3219] AH00052: child pid 3223 exit signal Segmentation fault (11)
The last 4 lines only appear after I try to access owncloud with http. So http works fine, but I would like to use it with https.It is only after I make sure owncloud works with http that I try to access it over https and I get those error messages on the log and the message "The connection was interrupted" on the browser.
Should I post the actual /etc/httpd/conf/httpd.conf ?
Again thank you.
P.S.: I have tried to write this post with my best English but it isn't my mother tongue so if there is any part unclear please tell me and i will correct it and learn as well
Hm, I'm trying to understand how everything is configured. Could you post the output of
# apachectl -SThat will list out all of your hosts that apache is running. Also it looks like the https host has an error/access log, I would take a look at that to see if it says anything useful.
Offline
jantonio2992 wrote:** Sorry for not posting before but it was giving me a different error for some reason, same error now tough **
cris9288 wrote:nginx or apache? What do the web server access or error logs say? How is Owncloud configured - virtual host or subdirectory? Show us the web server configuration for the site.
Hi, cris9288
First of all, thank you for taking time to answer me.
Its apache,
You got me there, but I believe its VirtualHost because this is the owncloud.conf(please correct me if I'm wrong for I haven't really used Apache for real for some years now and i might have forgot some knowledge) :
<IfModule mod_alias.c> Alias /owncloud /usr/share/webapps/owncloud/ </IfModule> <Directory /usr/share/webapps/owncloud/> Options FollowSymlinks AllowOverride all #Require all granted php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/owncloud/:/etc/webapps/owncloud" </Directory> <VirtualHost /owncloud:443> ServerAdmin example@example.com DocumentRoot /usr/share/webapps/owncloud ServerName 192.168.1.27 ErrorLog /var/log/httpd/owncloud.info-error_log CustomLog /var/log/httpd/owncloud.info-access_log common </VirtualHost>Should I post access_log as well? I don't see anything strange there...
I deleter my http error log, so I would get clean results of the actual problem at hand and not of something else.So /var/log/httpd/error_log is this:
[Tue Feb 17 20:59:26.212938 2015] [lbmethod_heartbeat:notice] [pid 3219] AH02282: No slotmem from mod_heartmonitor [Tue Feb 17 20:59:26.252354 2015] [mpm_prefork:notice] [pid 3219] AH00163: Apache/2.4.12 (Unix) PHP/5.6.5 configured -- resuming normal operations [Tue Feb 17 20:59:26.252477 2015] [core:notice] [pid 3219] AH00094: Command line: '/usr/bin/httpd' [Tue Feb 17 20:59:51.281151 2015] [core:notice] [pid 3219] AH00052: child pid 3220 exit signal Segmentation fault (11) [Tue Feb 17 20:59:51.281267 2015] [core:notice] [pid 3219] AH00052: child pid 3222 exit signal Segmentation fault (11) [Tue Feb 17 20:59:51.281282 2015] [core:notice] [pid 3219] AH00052: child pid 3223 exit signal Segmentation fault (11)
The last 4 lines only appear after I try to access owncloud with http. So http works fine, but I would like to use it with https.It is only after I make sure owncloud works with http that I try to access it over https and I get those error messages on the log and the message "The connection was interrupted" on the browser.
Should I post the actual /etc/httpd/conf/httpd.conf ?
Again thank you.
P.S.: I have tried to write this post with my best English but it isn't my mother tongue so if there is any part unclear please tell me and i will correct it and learn as well
Hm, I'm trying to understand how everything is configured. Could you post the output of
# apachectl -SThat will list out all of your hosts that apache is running. Also it looks like the https host has an error/access log, I would take a look at that to see if it says anything useful.
Hello again,
Thank you for helping me. If i run #apachectl -S I get:
VirtualHost configuration:
*:443 192.168.1.27 (/etc/httpd/conf/extra/owncloud.conf:12)
ServerRoot: "/etc/httpd"
Main DocumentRoot: "/srv/http"
Main ErrorLog: "/var/log/httpd/error_log"
Mutex proxy-balancer-shm: using_defaults
Mutex proxy: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: "/run/httpd/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="http" id=33
Group: name="http" id=33By "the https host has an error/access log", do you mean the actual folder? Because on the acces logs it just says it got asked for some GET and POST actions but doesn't show me any errors.
What should I do more?
Offline
By "the https host has an error/access log", do you mean the actual folder? Because on the acces logs it just says it got asked for some GET and POST actions but doesn't show me any errors.
What should I do more?
The error/success codes at the end of those GET/POST statements should tell you if something is working or failing. I would definitely get familiar with those. So, how are you trying to access your site? It looks like you have a host listening on port 443, but that is NOT HTTPS because you don't actually have any of the necessary SSL statements listed ( I should've noticed this earlier ). You need to do a proper SSL configuration if you want that to work. And you will want to move your current VirtualHost to port 80, so that your HTTPS host can run on port 443, because that is the default HTTPS port (you could also use custom ports I suppose). Apache should've installed a basic SSL config file under /etc/http/conf/extra somewhere. Also take a look at the output of apachectl -S - your document root and other parameters are not being respected. It doesn't look like you are even successfully running a virtual host. It should say something like
*:443 is a NameVirtualHost
followed by something like
port 443 namevhost example.com (/etc/httpd/conf/extra/httpd-vhosts.conf:18)
alias www.example.com
I think you should spend some time reading the Arch Wiki and apache documentation on the subject.
Last edited by cris9288 (2015-02-18 23:06:29)
Offline
jantonio2992 wrote:By "the https host has an error/access log", do you mean the actual folder? Because on the acces logs it just says it got asked for some GET and POST actions but doesn't show me any errors.
What should I do more?
The error/success codes at the end of those GET/POST statements should tell you if something is working or failing. I would definitely get familiar with those. So, how are you trying to access your site? It looks like you have a host listening on port 443, but that is NOT HTTPS because you don't actually have any of the necessary SSL statements listed ( I should've noticed this earlier ). You need to do a proper SSL configuration if you want that to work. And you will want to move your current VirtualHost to port 80, so that your HTTPS host can run on port 443, because that is the default HTTPS port (you could also use custom ports I suppose). Apache should've installed a basic SSL config file under /etc/http/conf/extra somewhere. Also take a look at the output of apachectl -S - your document root and other parameters are not being respected. It doesn't look like you are even successfully running a virtual host. It should say something like
*:443 is a NameVirtualHost
followed by something like
port 443 namevhost example.com (/etc/httpd/conf/extra/httpd-vhosts.conf:18)
alias www.example.comI think you should spend some time reading the Arch Wiki and apache documentation on the subject.
Again thank you for helping me. I apologise if I took some time to answer but yesterday was a rough day.
First of all (and tough i wont deny i should know better Apache documentation), I'm not entirely foreign to Apache config or its difficulties but there's no denying that these last two Apache setups, in reality owncloud setups, I have followed guides(once for Fedora and another for Arch by DigitalOcean.
(By that I don't mean to sound cocky or anything, i just want to explain that don't I simply dump stuff and go run asking the forums for help.)
Secondly, I has indeed using the config over at /etc/httpd/extra/httpd-ssl.conf, But it was giving me the same error and since over at Fedora I didn't have to do anything with that I simply thought that it wasn't needed, also the solutions people suggested online regarding SSL didn't work with me. I did indeed even create a certificate that was being used but still.
It seems i believe so much in "The Arch way" that I cant run from it and should keep embracing it (tried to move from Arch from both server and main computer but keep getting back. Only secondary machine will probably keep Gnome Fedora because it what Linux Bible uses).
I'll enable gain the ssl config and try again. Worst case scenario I'll try from scratch(because even with docker owncloud didn't work for me before). Will try to keep posting here in case I find the solution or cant get anywhere:)
Thanks a bunch @cris9288
Offline
I'm kind of new to Apache myself. The approach I took in setting it up to host my web sites was to take the default configs and try to modify them until I got the results I was looking for. It's important to start basic and work your way up. In this case, I think it makes sense to go with the out of the box apache set-up where you have a single host listening on port 80 for HTTP. I would first try to get owncloud working with this host, and once you've accomplished that, configure it as a virtual host using the httpd-vhosts.conf file it provides. From there, set up your ssl host, and then you can set up http to https redirect, and so on and so forth. Good luck!
Offline
I'm kind of new to Apache myself. The approach I took in setting it up to host my web sites was to take the default configs and try to modify them until I got the results I was looking for. It's important to start basic and work your way up. In this case, I think it makes sense to go with the out of the box apache set-up where you have a single host listening on port 80 for HTTP. I would first try to get owncloud working with this host, and once you've accomplished that, configure it as a virtual host using the httpd-vhosts.conf file it provides. From there, set up your ssl host, and then you can set up http to https redirect, and so on and so forth. Good luck!
Sometimes I feel "The Arch Way" is the only way
The way you described is precisely the way I did every time till last two
Since I've been giving support to some computer and they have to use Linux, but the people using them are not the type of person to use Arch so I have to install an "easier" distro, and then i try to use the same approach with me, usually because I hope it to "just work". But then i want something and it would be way easier to use/do if I had just used the normal Arch way ![]()
Again thanks. I will try a couple things more and get back here.
Offline