RESOLVED: OpenVPN ALS installation broke server

intellected
Posts: 15
Joined: Thu Feb 27, 2014 2:41 am

Re: OpenVPN ALS installation broke server

Postby intellected » Fri Feb 28, 2014 4:46 pm

Code: Select all

[root@intellected-server ~]# service httpd status Redirecting to /bin/systemctl status httpd.service httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: active (running) since Sat 2014-03-01 00:16:05 CET; 29min ago Main PID: 507 (httpd) Status: "Total requests: 14; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: name=systemd:/system/httpd.service ├─ 507 /usr/sbin/httpd -DFOREGROUND ├─ 818 PassengerWatchdog ├─ 821 PassengerHelperAgent ├─ 823 Passenger spawn server ├─ 826 PassengerLoggingAgent ├─ 833 /usr/sbin/httpd -DFOREGROUND ├─ 834 /usr/sbin/httpd -DFOREGROUND ├─ 835 /usr/sbin/httpd -DFOREGROUND ├─ 836 /usr/sbin/httpd -DFOREGROUND ├─ 837 /usr/sbin/httpd -DFOREGROUND ├─1019 /usr/sbin/httpd -DFOREGROUND └─1105 /usr/sbin/httpd -DFOREGROUND Mar 01 00:16:01 intellected-server.lan httpd[507]: AH00112: Warning: DocumentRoot [/var/hda/platform/html/public] does not exist Mar 01 00:16:03 intellected-server.lan httpd[507]: AH00112: Warning: DocumentRoot [/var/hda/calendar/html] does not exist Mar 01 00:16:05 intellected-server.lan systemd[1]: Started The Apache HTTP Server.

Code: Select all

[root@intellected-server ~]# ls /var/hda/web-apps/ adito dokuwiki jinzora phpmyadmin rnews wb ajaxplorer egw linfo phpmybackup tiki webcalendar blog gallery2 monitorix phpsysinfo tinytodo budget glpi owncloud rcmail vnstat

Code: Select all

[root@intellected-server ~]# ls /etc/httpd/conf.d/ 01-platform.conf 1008-vnstat.conf 1018-rcmail.conf 03-calendar.conf 1009-dokuwiki.conf 1019-owncloud.conf 1000-jinzora.conf 1010-budget.conf 1020-wb.conf 1001-ajaxplorer.conf 1011-webcalendar.conf autoindex.conf 1002-blog.conf 1012-rnews.conf passenger.conf 1003-phpsysinfo.conf 1013-glpi.conf php.conf 1004-gallery2.conf 1014-tiki.conf README 1005-phpmyadmin.conf 1015-linfo.conf ssl.conf 1006-phpmybackup.conf 1016-monitorix.conf userdir.conf 1007-egw.conf 1017-tinytodo.conf welcome.conf

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN ALS installation broke server

Postby bigfoot65 » Fri Feb 28, 2014 4:58 pm

These two messages are your clue as to the issue:
Mar 01 00:16:01 intellected-server.lan httpd[507]: AH00112: Warning: DocumentRoot [/var/hda/platform/html/public] does not exist
Mar 01 00:16:03 intellected-server.lan httpd[507]: AH00112: Warning: DocumentRoot [/var/hda/calendar/html] does not exist
Check to see these exist. It appears they may not which means you must have removed them by accident.

The second one is typically empty, the the first one has files that are needed for the dashboard to work.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

intellected
Posts: 15
Joined: Thu Feb 27, 2014 2:41 am

Re: OpenVPN ALS installation broke server

Postby intellected » Sat Mar 01, 2014 6:30 am

Yes I figured that out too and these are the results:

Code: Select all

[root@intellected-server ~]# ls /var/hda/platform/html/public/ ls: cannot access /var/hda/platform/html/public/: No such file or directory [root@intellected-server ~]# ls /var/hda/platform/html/ log tmp [root@intellected-server ~]#
But how to fix, where do I get the public folder content?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN ALS installation broke server

Postby bigfoot65 » Sat Mar 01, 2014 7:31 am

The link below is a copy of the directory from my test machine. Please let me know once you have retrieved it so I can remove the link.
LINK REMOVED
You may have to reboot after extracting the files.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

intellected
Posts: 15
Joined: Thu Feb 27, 2014 2:41 am

Re: OpenVPN ALS installation broke server

Postby intellected » Sat Mar 01, 2014 12:31 pm

Ok, Ive done that and when I go to \hda or the ip I get a page saying:
Application error

Rails application failed to start properly
And

Code: Select all

service httpd status Redirecting to /bin/systemctl status httpd.service httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: active (running) since Sat 2014-03-01 20:33:34 CET; 2min 33s ago Main PID: 502 (httpd) Status: "Total requests: 1; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: name=systemd:/system/httpd.service ├─502 /usr/sbin/httpd -DFOREGROUND ├─808 PassengerWatchdog ├─811 PassengerHelperAgent ├─813 Passenger spawn server ├─816 PassengerLoggingAgent ├─823 /usr/sbin/httpd -DFOREGROUND ├─824 /usr/sbin/httpd -DFOREGROUND ├─825 /usr/sbin/httpd -DFOREGROUND ├─826 /usr/sbin/httpd -DFOREGROUND └─827 /usr/sbin/httpd -DFOREGROUND Mar 01 20:33:32 intellected-server.lan httpd[502]: AH00112: Warning: DocumentRoot [/var/hda/calendar/html] does not exist Mar 01 20:33:34 intellected-server.lan systemd[1]: Started The Apache HTTP Server.
Last edited by intellected on Sat Mar 01, 2014 12:37 pm, edited 1 time in total.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN ALS installation broke server

Postby bigfoot65 » Sat Mar 01, 2014 12:34 pm

Ensure the files are owned and permissions set as noted below:
-rw-r--r-- 1 apache apache 1195 Mar 3 2013 404.html
-rw-r--r-- 1 apache apache 734 Mar 3 2013 422.html
-rw-r--r-- 1 apache apache 85201 Aug 8 2013 500.html
-rw-r--r-- 1 apache apache 1150 Mar 3 2013 favicon.ico
-rw-r--r-- 1 apache apache 200 Mar 3 2013 robots.txt
-rw-r--r-- 1 apache apache 554 Mar 3 2013 search.xml
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN ALS installation broke server

Postby bigfoot65 » Sat Mar 01, 2014 12:36 pm

The directory permissions should be:
drwxr-xr-x. 2 apache apache 4096 Nov 8 20:03 public
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN ALS installation broke server

Postby bigfoot65 » Sat Mar 01, 2014 12:38 pm

This is the permissions for /var/hda/calendar/html:
drwxr-xr-x. 2 apache apache 4096 Dec 31 14:23 html
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

intellected
Posts: 15
Joined: Thu Feb 27, 2014 2:41 am

Re: OpenVPN ALS installation broke server

Postby intellected » Sat Mar 01, 2014 12:58 pm

I still get the same error page.

See perms.

Code: Select all

[root@intellected-server html]# ls -l total 12 drwxr-xr-x. 2 apache apache 4096 Feb 27 13:47 log drwxr-xr-x 2 root root 4096 Mar 1 20:30 public drwxr-xr-x. 3 apache apache 4096 Feb 27 13:47 tmp [root@intellected-server html]# cd public [root@intellected-server public]# ls -l total 104 -rw-r--r-- 1 root root 1195 Mar 1 20:30 404.html -rw-r--r-- 1 root root 734 Mar 1 20:30 422.html -rw-r--r-- 1 root root 85201 Mar 1 20:30 500.html -rw-r--r-- 1 root root 1150 Mar 1 20:30 favicon.ico -rw-r--r-- 1 root root 200 Mar 1 20:30 robots.txt -rw-r--r-- 1 root root 554 Mar 1 20:30 search.xml
Oh wait I see different owners...


Changed it:

Code: Select all

[root@intellected-server public]# ls -l total 104 -rw-r--r-- 1 apache apache 1195 Mar 1 20:30 404.html -rw-r--r-- 1 apache apache 734 Mar 1 20:30 422.html -rw-r--r-- 1 apache apache 85201 Mar 1 20:30 500.html -rw-r--r-- 1 apache apache 1150 Mar 1 20:30 favicon.ico -rw-r--r-- 1 apache apache 200 Mar 1 20:30 robots.txt -rw-r--r-- 1 apache apache 554 Mar 1 20:30 search.xml [root@intellected-server public]# cd ../. [root@intellected-server html]# ls -l total 12 drwxr-xr-x. 2 apache apache 4096 Feb 27 13:47 log drwxr-xr-x 2 apache apache 4096 Mar 1 20:30 public drwxr-xr-x. 3 apache apache 4096 Feb 27 13:47 tmp
But I am still getiting the error page.
Last edited by intellected on Sat Mar 01, 2014 1:02 pm, edited 1 time in total.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: OpenVPN ALS installation broke server

Postby bigfoot65 » Sat Mar 01, 2014 1:00 pm

Yes make them apache.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 26 guests