Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 16:33:20

Author Topic: switching from nginx to apache not working  (Read 6369 times)

0 Members and 1 Guest are viewing this topic.

Offline cmdman

  • Senior Member
  • *
  • Posts: 298
  • Karma: +1/-0
    • View Profile
switching from nginx to apache not working
« on: 2014-12-05, 08:10:16 »
hi mr..

iam trying to switching from nginx to apache i tried all still iam geting  apache not started

i even tried to nginxproxy still apache  wont start but nginx start

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: switching from nginx to apache not working
« Reply #1 on: 2014-12-05, 10:09:27 »
To make sure, run 'chkconfig httpd on; sh /script/restart-web -y' after change to apache or nginx-proxy.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 298
  • Karma: +1/-0
    • View Profile
Re: switching from nginx to apache not working
« Reply #2 on: 2014-12-05, 10:19:49 »
[root@server script]# chkconfig httpd on
error reading information on service httpd: No such file or directory
[root@server script]#

i get this error

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: switching from nginx to apache not working
« Reply #3 on: 2014-12-05, 19:11:31 »
Inform here 'sh /script/sysinfo' and 'yum list nginx hiawatha httpd' and 'dir -l /etc/yum.repos.d/'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 298
  • Karma: +1/-0
    • View Profile
Re: switching from nginx to apache not working
« Reply #4 on: 2014-12-05, 23:26:04 »
fyi.

1.
Quote
[root@server ~]# sh /script/sysinfo


A. Kloxo-MR: 6.5.0.f-2014102601

B. OS: CentOS release 6.6 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.40-2.ius.el6.x86_64
   2. PHP: php54-5.4.35-1.ius.el6.x86_64
   3. Httpd: --uninstalled--
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.7.8-1.el6.ngx.x86_64
   6. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.17.mr.el6.x86_64
   7. Dns: bind-9.9.5-1.el6.x86_64

D. Php-type (for Httpd/proxy): mod_php_ruid2

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         13932        674      13257         17         19        219
   -/+ buffers/cache:        435      13497
   Swap:            0          0          0

2.
Quote
[root@server ~]# yum list nginx hiawatha httpd
Loaded plugins: fastestmirror, priorities, protectbase, replace, security
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
Excluding mirror: mirror.de.leaseweb.net
 * base: mirror.23media.de
 * extras: ftp.plusline.de
Excluding mirror: mirror.nl.leaseweb.net
Excluding mirror: mirror.de.leaseweb.net
 * mratwork-epel: mirror.23media.de
 * mratwork-ius-stable: ius.cu.be
 * updates: centos.mirrors.psw.services
0 packages excluded due to repository protections
Installed Packages
hiawatha.x86_64         9.8.0-f.2.mr.el6          @mratwork-release-version-arch
nginx.x86_64            1.7.8-1.el6.ngx           @mratwork-nginx
Available Packages
httpd.x86_64            2.2.29-1.mr.el6           mratwork-release-version-arch
[root@server ~]#

3.
Quote
[root@server ~]# dir -l /etc/yum.repos.d/
total 44
-rw-r--r-- 1 root root 1991 Oct 23 13:41 CentOS-Base.repo
-rw-r--r-- 1 root root  647 Oct 23 13:41 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  289 Oct 23 13:41 CentOS-fasttrack.repo
-rw-r--r-- 1 root root  630 Oct 23 13:41 CentOS-Media.repo
-rw-r--r-- 1 root root 5394 Oct 23 13:41 CentOS-Vault.repo
-rw-r--r-- 1 root root 7006 Nov  7 01:23 mratwork.repo
-rw-r--r-- 1 root root 6234 Sep 27 18:38 mratwork.repo.rpmsave
-rw-r--r-- 1 root root  162 Oct 13 14:52 webmin.repo
[root@server ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: switching from nginx to apache not working
« Reply #5 on: 2014-12-06, 00:34:45 »
Hi, look like your server using nginx only. So, that why running 'chkconfig httpd on' will appear 'error reading information on service httpd: No such file or directory'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 298
  • Karma: +1/-0
    • View Profile
Re: switching from nginx to apache not working
« Reply #6 on: 2014-12-06, 04:46:45 »
yes iam using nginx.. you want me to enable apache and then run chkconfig.., i think this problem started after i deleted of domain from my few domains..
« Last Edit: 2014-12-06, 04:50:44 by cmdman »

Offline cmdman

  • Senior Member
  • *
  • Posts: 298
  • Karma: +1/-0
    • View Profile
Re: switching from nginx to apache not working
« Reply #7 on: 2014-12-06, 04:55:16 »
now i get this error.. after enable of apache

Quote
[root@server script]# chkconfig httpd on
[root@server script]# sh /script/restart-web -y
Stopping httpd:                                            [FAILED]
Starting httpd: Warning: DocumentRoot [/home/admin/mydomain.net/] does not exist
Warning: DocumentRoot [/home/admin/mydomain.net/] does not exist
                                                           [FAILED]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@server script]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: switching from nginx to apache not working
« Reply #8 on: 2014-12-06, 05:23:53 »
Try 'sh /script/fixweb; sh /script/restart-web' to fix your issue.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 298
  • Karma: +1/-0
    • View Profile
Re: switching from nginx to apache not working
« Reply #9 on: 2014-12-06, 06:15:05 »
no luck still same .

Quote
[root@server script]# sh /script/fixweb

- For help, type '/script/fixweb --help'
- No argument supplied. Defaulting to localhost (master) servers

Fixing Web server config
- 'domain1.net' ('admin') at 'localhost'
- 'domain2.com' ('admin') at 'localhost'
- 'defaults' and 'php-fpm' at 'localhost'
- 'domain3.com' ('admin') at 'localhost'
[root@server script]# sh /script/restart-web
Stopping httpd:                                            [FAILED]
Starting httpd: Warning: DocumentRoot [/home/admin/mydomain.net/] does not exist
Warning: DocumentRoot [/home/admin/mydoamin.net/] does not exist
                                                           [FAILED]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
[root@server script]#


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: switching from nginx to apache not working
« Reply #10 on: 2014-12-06, 08:08:46 »
delele file inside '/home/apache/conf/domains' (change 'apache' to 'nginx' for nginx) before fixweb and restart-web.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 298
  • Karma: +1/-0
    • View Profile
Re: switching from nginx to apache not working
« Reply #11 on: 2014-12-06, 10:17:09 »
i tested this tooo same problem so i made trick..i recreated a domain which i deleted so its  started now.. now  bug is once we delete domain from panel the related domains are not deleting from homefolders once i delete manually i get httpd errors ..  please look in to it..

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: switching from nginx to apache not working
« Reply #12 on: 2014-12-06, 19:32:25 »
Like Kloxo official, delete domain not include delete their /home/<user>/<domain> for Kloxo-MR 6.5.0.

It's different with Kloxo-MR 7.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.027 seconds with 18 queries.

web stats analysis