You are not logged in.
Pages: 1
Hello,
I've installed a LAMP server (Archlinux, Apache, Mariadb, Php) with 2 wordpress (multi-site > Virtual host). My problem is when I tried to connect to the 2 websites, I've got an error message about the connection were refused.
ex: http://www.universal-genesis.net
http://vps429820.ovh.net
netstat -laputn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 226/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 368/sshd
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 228/systemd-resolve
tcp 0 336 51.254.117.51:22 174.118.153.232:63581 ESTABLISHED 2147/sshd: root@pts
tcp 0 0 51.254.117.51:22 174.118.153.232:50568 ESTABLISHED 2037/sshd: root@not
tcp6 0 0 :::22 :::* LISTEN 368/sshd
tcp6 0 0 :::3306 :::* LISTEN 285/mysqld
tcp6 0 0 :::5355 :::* LISTEN 228/systemd-resolve
udp 0 0 127.0.0.53:53 0.0.0.0:* 228/systemd-resolve
udp 0 0 51.254.117.51:68 0.0.0.0:* 209/systemd-network
udp 0 0 0.0.0.0:5355 0.0.0.0:* 228/systemd-resolve
udp6 0 0 fe80::f816:3eff:fea:546 :::* 209/systemd-network
udp6 0 0 :::5355 :::* 228/systemd-resolve
I don't know the command to verify the Apache status (systemctl status Apache> cmd not found; service httpd status> cmd not found)
Offline
I don't know the command to verify the Apache status (systemctl status Apache> cmd not found; service httpd status> cmd not found)
systemctl status httpd.service
Offline
nmap doesn't report ports 80 or 443 to be open on your server. So either htppd.service is not (properly) running, or traffic is being blocked by a firewall.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
@slithery thx ! it was what I needed
Edit: here the status infos. I will go to check the problem in the fttpd.conf
systemctl status httpd.service
● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-07-20 18:19:39 CEST; 16min ago
Process: 2408 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 2408 (code=exited, status=1/FAILURE)
Jul 20 18:19:39 vps429820.ovh.net systemd[1]: Started Apache Web Server.
Jul 20 18:19:39 vps429820.ovh.net httpd[2408]: [Thu Jul 20 18:19:39.374206 2017] [so:warn] [pid 2408] AH01574: module php7_module is already loaded, skipping
Jul 20 18:19:39 vps429820.ovh.net httpd[2408]: httpd: Syntax error on line 541 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/co
Jul 20 18:19:39 vps429820.ovh.net systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Jul 20 18:19:39 vps429820.ovh.net systemd[1]: httpd.service: Unit entered failed state.
Jul 20 18:19:39 vps429820.ovh.net systemd[1]: httpd.service: Failed with result 'exit-code'.
[root@vps429820 ~]# nano /etc/httpd/conf/httpd.conf
[root@vps429820 ~]# systemctl restart httpd.service
[root@vps429820 ~]# systemctl restart apache
Failed to restart apache.service: Unit apache.service not found.
[root@vps429820 ~]# systemctl restart Apache
Failed to restart Apache.service: Unit Apache.service not found.
Last edited by Redgard (2017-07-20 16:46:03)
Offline
systemctl status httpd.service
● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-07-20 18:40:06 CEST; 35s ago
Main PID: 2423 (httpd)
Tasks: 7 (limit: 4915)
CGroup: /system.slice/httpd.service
├─2423 /usr/bin/httpd -k start -DFOREGROUND
├─2424 /usr/bin/httpd -k start -DFOREGROUND
├─2425 /usr/bin/httpd -k start -DFOREGROUND
├─2426 /usr/bin/httpd -k start -DFOREGROUND
├─2427 /usr/bin/httpd -k start -DFOREGROUND
├─2428 /usr/bin/httpd -k start -DFOREGROUND
└─2433 /usr/bin/httpd -k start -DFOREGROUND
Jul 20 18:40:06 vps429820.ovh.net systemd[1]: Started Apache Web Server.
Jul 20 18:40:06 vps429820.ovh.net httpd[2423]: [Thu Jul 20 18:40:06.313821 2017] [so:warn] [pid 2423] AH01574: module php7_module is already loaded, skipping
So I can find the problem (httpd.conf - syntax error) but now I've got an other problem on the two website...
See the problem here:
http://www.universal-genesis.net
http://vps429820.ovh.net
Last edited by Redgard (2017-07-20 16:44:16)
Offline
Did you follow all of the instructions in the wiki to install wordpress properly?
Offline
Some steps but not all of it for the simple reason, it didn't cover the virtual host and don't grant the right that wordpress need to proper install themes and plugins.
here the different tutorials that i used:
https://wiki.archlinux.org/index.php/Wordpress
https://www.howtoforge.com/tutorial/arc … s-install/
https://www.digitalocean.com/community/ … arch-linux
https://www.digitalocean.com/community/ … arch-linux
https://codex.wordpress.org/Changing_File_Permissions
After the install I moved the two websites in the same folder, because it was a mess.
WP - agency > /srv/http/WPagence
WP - unigen> /srv/http/unigen/WPunigen
each wordpress has its own configuration files
httpd.conf
Include /etc/httpd/conf/site/wpagence.conf
Include /etc/httpd/conf/site/wpunigen.conf
wpagence.conf
<VirtualHost *:80>
ServerAdmin frenchybreak@gmail.com
DocumentRoot "/srv/http/WPagence"
ServerName vps429820.ovh.net
ServerAlias vps429820.ovh.net
ErrorLog "/var/log/httpd/WPagence-error_log"
CustomLog "/var/log/httpd/WPagence-access_log" common
<Directory /srv/http/WPagence>
Options +ExecCGI
AllowOverride All
Order deny,allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
wpunigen.conf
<VirtualHost *:80>
ServerAdmin universal.g3nesis@gmail.com
DocumentRoot "/srv/http/unigen/WPunigen"
ServerName universal-genesis.net
ServerAlias www.universal-genesis.net
ErrorLog "/var/log/httpd/WPunigen-error_log"
CustomLog "/var/log/httpd/WPunigen-access_log" common
<Directory /srv/http/unigen/WPunigen>
Options +ExecCGI
AllowOverride All
Order deny,allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
Last edited by Redgard (2017-07-20 17:05:53)
Offline
any idea?
Offline
Please do not bump.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Offline
WPagence-error_log
[Fri Jul 21 02:17:17.574147 2017] [negotiation:error] [pid 2451] [client 66.102.6.13:34572] AH00690: no acceptable variant: /usr/share/httpd/error/HTTP_NOT_FOUND.html.var
[Fri Jul 21 13:46:14.361181 2017] [negotiation:error] [pid 3301] [client 66.102.6.11:45515] AH00690: no acceptable variant: /usr/share/httpd/error/HTTP_NOT_FOUND.html.var
[Fri Jul 21 13:46:14.361746 2017] [negotiation:error] [pid 3276] [client 66.102.6.15:51240] AH00690: no acceptable variant: /usr/share/httpd/error/HTTP_NOT_FOUND.html.var
WPunigen-error_log
[Fri Jul 21 20:12:57.306842 2017] [core:error] [pid 4730] [client 164.132.161.5:44504] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:16:32.190122 2017] [core:error] [pid 3276] [client 51.255.65.78:56519] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:16:32.190252 2017] [core:error] [pid 3276] [client 51.255.65.78:56519] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:20:24.365462 2017] [core:error] [pid 4048] [client 51.255.65.10:58276] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:20:24.365653 2017] [core:error] [pid 4048] [client 51.255.65.10:58276] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:20:35.244513 2017] [core:error] [pid 4730] [client 217.182.132.69:29012] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:20:35.244567 2017] [core:error] [pid 4730] [client 217.182.132.69:29012] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:23:51.892394 2017] [core:error] [pid 2444] [client 137.74.207.116:41940] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:23:51.892481 2017] [core:error] [pid 2444] [client 137.74.207.116:41940] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:29:35.222273 2017] [core:error] [pid 3276] [client 51.255.71.101:27922] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:29:35.222323 2017] [core:error] [pid 3276] [client 51.255.71.101:27922] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:41:00.160659 2017] [core:error] [pid 2444] [client 51.255.65.89:24640] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:41:00.160934 2017] [core:error] [pid 2444] [client 51.255.65.89:24640] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:45:35.460692 2017] [core:error] [pid 3301] [client 66.249.66.15:46886] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:45:35.460775 2017] [core:error] [pid 3301] [client 66.249.66.15:46886] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Jul 21 20:48:02.154133 2017] [core:error] [pid 2440] [client 174.118.153.232:58000] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.universal-genesis.net/
[Fri Jul 21 20:48:02.154176 2017] [core:error] [pid 2440] [client 174.118.153.232:58000] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.universal-genesis.net/
Offline
Hit F12 in your browser and reload the page, you'll see that the site is trying to load content like:
http://vps429820.ovh.net/wordpress/wp-c … ss?ver=4.8 (for http://vps429820.ovh.net/)
http://vps429820.ovh.net/ug/wp-content/ … ss?ver=4.8 (for http://www.universal-genesis.net/)
so in your /srv/http/WPagence you need a wordpress and an ug directory with wordpress installs (or links if I remember how multisite works).
For two sites it ain't worth dealing with multisite, the easiest soultion is using two different wordpress installs: keeping them updated is fairly easy.
edit: also, please consider adding SSL to your sites https://wiki.archlinux.org/index.php/Le … 9s_Encrypt
Last edited by arshesney (2017-07-21 19:39:32)
Offline
also, please consider adding SSL to your sites https://wiki.archlinux.org/index.php/Le … 9s_Encrypt
Thanks for the link. I've been meaning to apply encryption to my personally hosted WordPress server.
Offline
the two websites have their own different wordpress install.
I've just reinstalled wordpress on each diretory. I created a new database for the wordpress "Agence", to have something cleaner. the install went good.
For the wordpress "unigen", I used the previous database and during the install, I received a error message saying that wordpress was already install.
http://vps429820.ovh.net
http://www.universal-genesis.net
the SSL connection (https) is already planned, but it would be great that the website works first.
Last edited by Redgard (2017-07-22 13:53:53)
Offline
Pages: 1