HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   HELP! New ISPConfig Upgrade Messed up server! (http://www.howtoforge.com/forums/showthread.php?t=54736)

midcarolina 2nd November 2011 17:53

HELP! New ISPConfig Upgrade Messed up server!
 
I was alerted to the new update of ISPConfig 3.0.4 and updated it. Now I cannot access the CPanel. All browers show "not found" still using port :8080
Luckily the sites are running, and I was able to access phpMyAdmin from the URL. Tried to do a DB repair to no avail. Still can't access CPanel.

Also, amavisd is just GONE! The mail server was working brilliantly until the update. Now Linux does not even recognize amavisd as a service.

Need help quick. Unhappy customers very soon. Thanks.

till 2nd November 2011 18:05

1) The amavis service can not have been removed by the update as there is no code to install or uninstall Linux system packages in the ispconfig updater. Please post the output of:

ls /etc/init.d/amavis*

2) When the websites are reachable, then apache is working and the controlpenal must be reachble too. Maybe you made a typo during update and it listens now to a different port. Please post the file

/etc/apache2/sites-available/ispconfig.vhost

midcarolina 2nd November 2011 18:15

For the first command line, I get a response simply to


/etc/init.d/amavisd (with no action) So I run this with "start". The outcome is:

Starting amavisd: drop_priv: No such username:

The second outcome is not available anyway, because I have never used apache2 for any commands so it is not recognized. Only httpd is recognized, so I simply followed the path in the root SSH file path like so:

/etc/httpd/conf/sites-available

Where usually my webserver is listed last, but is no longer there. What are the best ways to fix / repair amavisd and repair the webserver under "sites-available"?

Thanks Till

till 2nd November 2011 18:18

1) Which Linux distribution do you use?
2) Is the whole /etc/httpd/conf/sites-available folder missing or just the file for the ispconfig vhost?

midcarolina 2nd November 2011 18:20

Linux distro is Fedora 14 64 bit and nothing is missing. The actual file ispconfig.vhost is there.

till 2nd November 2011 18:28

Quote:

nothing is missing. The actual file ispconfig.vhost is there.
Ok, so please post the content of that file then.

Regarding amavis, please post the output of:

grep amavis /etc/passwd

midcarolina 2nd November 2011 18:30

This is the out come:


amavis:x:492:489::/var/spool/amavisd:/sbin/nologin

till 2nd November 2011 18:38

Please try this:

cp -pf /etc/amavisd/amavisd.conf /etc/amavisd/amavisd.conf.bak
cp -pf /etc/amavisd/amavisd.conf~ /etc/amavisd/amavisd.conf
/etc/init.d/amavisd start

and dont forget to post the requested ispconfig.vhost file.

midcarolina 2nd November 2011 18:45

I receive the same returned error. I am asked if I want to replace the conf file, so I continue on, then run /etc/init.d/amavisd start - outcome:

Starting amavisd: drop_priv: No such username:

ispconfig.vhost is there, the file is empty (the stated size is 0 and opening it in a code editor, it is empty...nothing)

till 2nd November 2011 18:54

Check in the /etc/amavisd/amavisd.conf file which user and group are set in the file for amavisd and then check if the user and group exist in /etc/passwd and /etc/group

- How did you install the update?
- Did you receive any errors during update on the shell?
- Is your hardisk full? Check with:

df -h


Regarding the empty ispconfig.vhost file, please find the content below:

Code:

######################################################
# This virtual host contains the configuration
# for the ISPConfig controlpanel
######################################################

NameVirtualHost *:8080

<VirtualHost _default_:8080>
  ServerAdmin webmaster@localhost
 
  <IfModule mod_fcgid.c>
    DocumentRoot /var/www/ispconfig/
    SuexecUserGroup ispconfig ispconfig
    <Directory /var/www/ispconfig/>
      Options Indexes FollowSymLinks MultiViews +ExecCGI
      AllowOverride AuthConfig Indexes Limit Options FileInfo
      AddHandler fcgid-script .php
      FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
      Order allow,deny
      Allow from all
    </Directory>
  </IfModule>
 
  <IfModule mod_php5.c>
    DocumentRoot /usr/local/ispconfig/interface/web/
    AddType application/x-httpd-php .php
    <Directory /usr/local/ispconfig/interface/web>
      Options FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all
          php_value magic_quotes_gpc        0
    </Directory>
  </IfModule>
 
  # ErrorLog /var/log/apache2/error.log
  # CustomLog /var/log/apache2/access.log combined
  ServerSignature Off
 
  <IfModule mod_security2.c>
    SecRuleEngine Off
  </IfModule>

  # SSL Configuration
  {ssl_comment}SSLEngine On
  {ssl_comment}SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
  {ssl_comment}SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key

</VirtualHost>

<Directory /var/www/php-cgi-scripts>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<Directory /var/www/php-fcgi-scripts>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>



All times are GMT +2. The time now is 06:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.