Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th April 2012, 19:42
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default Problem with adding clients and website

Hi,

When I create one client, I can see that he has been created but nothing is created in /etc/passwd.
It's the same for the sites. everything is in dbispconfig > web_domain database, but nothing is created on the server in the /var/www/clients folder...

I search in the ispconfig logfile but nothing interesting here.

When I execute /usr/local/ispconfig/server/server.sh nothing appears.

I just find one interesting error in /var/log/apache2/error.log :

script '/usr/local/ispconfig/interface/web/dashboard/client_list.php' not found or unable to stat, referer: http:/site:8080/index.php

Is anybody got an idea?

Thanks in advance!!
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2012, 20:52
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

In fact, I have a client_list.php in the subfolder /usr/local/ispconfig/interface/web/client that I copy in the /usr/local/ispconfig/interface/web

There are no changes, I don't have the error message anymore but the client or the website don't be add in /etc/passwd
Reply With Quote
  #3  
Old 5th April 2012, 08:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

The client_list.php file is not related in any way to accounts in /etc/passwd. Clients in ispconfig are a virtual construct to organize records in mysql, they have nothing to do with your system configuration and when you add a client, no config files get and shall be written. So if your only problem is that nothing changes in /etc/passwd when you add a client, then your server is working properly.

A user is added to /etc/passwd when you add a website or when you add a ssh user burt not when you add a client.

Quote:
script '/usr/local/ispconfig/interface/web/dashboard/client_list.php' not found or unable to stat, referer: http:/site:8080/index.php
There was never a file with that name in that folder in ispconfig. Your system code must be customized somehow.

Quote:
In fact, I have a client_list.php in the subfolder /usr/local/ispconfig/interface/web/client that I copy in the /usr/local/ispconfig/interface/web
The file client_list.php must be in the folder /usr/local/ispconfig/interface/web/client, copying it to any other folder makes no sense.

If you like to know why your server process cant write changes, then please follow the debugging instructions from ISPconfig FAQ:

http://www.faqforge.com/linux/debugg...-of-a-failure/

Before you do that, undo all changes that you made like copying ispconfig files to other locations etc. as such changes will make ispconfig to fail.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 5th April 2012, 13:20
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Hello,

Thanks for your reply but also when I add a website nothing new appear in the file /etc/passwd.

I have already seen the topic about the debugging mode and run the command /usr/local/ispconfig/server/server.sh but nothing happen.

Furthermore, I don't have the server.sh cron job, I have to had it or it normally add with the update of ispconfig.

Thanks
Reply With Quote
  #5  
Old 5th April 2012, 13:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

Quote:
I have already seen the topic about the debugging mode and run the command /usr/local/ispconfig/server/server.sh but nothing happen.
Did you follow all instructions incl. to enable debug mode first for the affected node?

Quote:
Furthermore, I don't have the server.sh cron job, I have to had it or it normally add with the update of ispconfig.
Then ispconfig is not fully installed on your server or someone must have deleted entries from root crontab as ispconfig can not configure your server without it. Please post the output of:

crontab -l
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 5th April 2012, 13:41
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

In fact, I was in warning mode so I change it to debug mode.

Here is my output of crontab -L :
* * * * * /mnt/muh/y2kupdate >/dev/null 2>&1

I'm sorry I don't know well IspConfig.

To launch the command /usr/local/ispconfig/server/server.sh what I have to save if there is a bug? Can I automatically backup my Ispconfig or I need to save my etc folder or any others?

Thanks Till
Reply With Quote
  #7  
Old 5th April 2012, 14:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

Al ispconfig cronjobs are missing, maybe they got deleted as you adeed the "* * * * * /mnt/muh/y2kupdate >/dev/null 2>&1" cronjob.

Quote:
To launch the command /usr/local/ispconfig/server/server.sh what I have to save if there is a bug?
Post the exact output that you get on the screen when you run this command as root.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 5th April 2012, 14:22
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Hello,

Here is the output :

/usr/local/ispconfig/server/server.sh
05.04.2012-12:17 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
05.04.2012-12:17 - DEBUG - Found 2 changes, starting update process.
05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
05.04.2012-12:17 - DEBUG - Changed Network settings
05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
05.04.2012-12:17 - DEBUG - Processed datalog_id 756
05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
05.04.2012-12:17 - DEBUG - Changed Network settings
05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
05.04.2012-12:17 - DEBUG - Processed datalog_id 757
05.04.2012-12:17 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
05.04.2012-12:17 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.

I do it a second time :

/usr/local/ispconfig/server/server.sh
05.04.2012-12:19 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
05.04.2012-12:19 - DEBUG - No Updated records found, starting only the core.
05.04.2012-12:19 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.
Reply With Quote
  #9  
Old 5th April 2012, 14:54
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

I add a new client and website.

Before execute /usr/local/ispconfig/server/server.sh, nothing appear in /etc/passwd but after running this command the website has been adding!!

And here was the output :

lea:~# /usr/local/ispconfig/server/server.sh
05.04.2012-12:29 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
05.04.2012-12:29 - DEBUG - Found 15 changes, starting update process.
05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
05.04.2012-12:29 - DEBUG - Removed client directory: /var/www/clients/client36
05.04.2012-12:29 - DEBUG - exec: groupdel client36
groupdel: cannot remove user's primary group.
05.04.2012-12:29 - DEBUG - Removed group client36
05.04.2012-12:29 - DEBUG - Processed datalog_id 758
05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
05.04.2012-12:29 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
05.04.2012-12:29 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-qsdqsd.fr.vhost->/etc/apache2/sites-available/qsdqsd.fr.vhost
05.04.2012-12:29 - DEBUG - Removing vhost file: /etc/apache2/sites-available/qsdqsd.fr.vhost
05.04.2012-12:29 - DEBUG - Removing website: /var/www/clients/client36/web55
05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/qsdqsd.fr
05.04.2012-12:29 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/qsdqsd.fr
05.04.2012-12:29 - DEBUG - Processed datalog_id 759
05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
05.04.2012-12:29 - DEBUG - Removed client directory: /var/www/clients/client38
05.04.2012-12:29 - DEBUG - exec: groupdel client38
groupdel: cannot remove user's primary group.
05.04.2012-12:29 - DEBUG - Removed group client38
05.04.2012-12:29 - DEBUG - Processed datalog_id 760
05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
05.04.2012-12:29 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
05.04.2012-12:29 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-fdsfds.fr.vhost->/etc/apache2/sites-available/fdsfds.fr.vhost
05.04.2012-12:29 - DEBUG - Removing vhost file: /etc/apache2/sites-available/fdsfds.fr.vhost
05.04.2012-12:29 - DEBUG - Removing website: /var/www/clients/client38/web56
05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/fdsfds.fr
05.04.2012-12:29 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/fdsfds.fr
05.04.2012-12:29 - DEBUG - Processed datalog_id 761
05.04.2012-12:29 - DEBUG - Processed datalog_id 762
05.04.2012-12:29 - DEBUG - Processed datalog_id 763
05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
05.04.2012-12:29 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
05.04.2012-12:29 - DEBUG - Adding the group: client37
05.04.2012-12:29 - DEBUG - Adding the user: web57
05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/log/ispconfig/httpd/fdsdfsdf.pto /var/www/clients/client37/web57/log
05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client37/web57/ /var/www/fdsdfsdf.pto
05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client37/web57/ /var/www/clients/client0/fdsdfsdf.pto
05.04.2012-12:29 - DEBUG - exec: chown -R web57:client37 /var/www/clients/client37/web57/web
05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/web
05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client37/web57
05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client37/web57/*
05.04.2012-12:29 - DEBUG - exec: chmod 710 /var/www/clients/client37/web57/web
05.04.2012-12:29 - DEBUG - exec: chmod 777 /var/www/clients/client37/web57/tmp
05.04.2012-12:29 - DEBUG - exec: chmod 755 /var/www/clients/client37/web57/log
05.04.2012-12:29 - DEBUG - exec: usermod --groups sshusers web57
05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57
05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/cgi-bin
05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/log
05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/ssl
05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/tmp
05.04.2012-12:29 - DEBUG - exec: chown -R web57:client37 /var/www/clients/client37/web57/web
05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/log/error.log
05.04.2012-12:29 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/fdsdfsdf.pto.vhost
05.04.2012-12:29 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-fdsdfsdf.pto.vhost->/etc/apache2/sites-available/fdsdfsdf.pto.vhost
05.04.2012-12:29 - DEBUG - Apache status is: 1
05.04.2012-12:29 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
05.04.2012-12:29 - DEBUG - Apache online status after restart is: 1
05.04.2012-12:29 - DEBUG - Processed datalog_id 764
05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
05.04.2012-12:29 - DEBUG - Removed client directory: /var/www/clients/client37
05.04.2012-12:29 - DEBUG - exec: groupdel client37
groupdel: cannot remove user's primary group.
05.04.2012-12:29 - DEBUG - Removed group client37
05.04.2012-12:29 - DEBUG - Processed datalog_id 765
05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
05.04.2012-12:29 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
05.04.2012-12:29 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-fdsdfsdf.pto.vhost->/etc/apache2/sites-available/fdsdfsdf.pto.vhost
05.04.2012-12:29 - DEBUG - Removing vhost file: /etc/apache2/sites-available/fdsdfsdf.pto.vhost
05.04.2012-12:29 - DEBUG - Removing website: /var/www/clients/client37/web57
05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/fdsdfsdf.pto
05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/clients/client0/fdsdfsdf.pto
05.04.2012-12:29 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/fdsdfsdf.pto
05.04.2012-12:29 - DEBUG - Processed datalog_id 766
05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
05.04.2012-12:29 - DEBUG - exec: groupdel client39
groupdel: group client39 does not exist
05.04.2012-12:29 - DEBUG - Removed group client39
05.04.2012-12:29 - DEBUG - Processed datalog_id 767
05.04.2012-12:29 - DEBUG - Processed datalog_id 768
05.04.2012-12:29 - DEBUG - Processed datalog_id 769
05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
05.04.2012-12:29 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
05.04.2012-12:29 - DEBUG - Adding the group: client40
05.04.2012-12:29 - DEBUG - Adding the user: web58
05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/log/ispconfig/httpd/site.pro /var/www/clients/client40/web58/log
05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client40/web58/ /var/www/site.pro
05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client40/web58/ /var/www/clients/client40/site.pro
05.04.2012-12:29 - DEBUG - exec: chown -R web58:client40 /var/www/clients/client40/web58/web
05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/web
05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58
05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58/*
05.04.2012-12:29 - DEBUG - exec: chmod 710 /var/www/clients/client40/web58/web
05.04.2012-12:29 - DEBUG - exec: chmod 777 /var/www/clients/client40/web58/tmp
05.04.2012-12:29 - DEBUG - exec: chmod 755 /var/www/clients/client40/web58/log
05.04.2012-12:29 - DEBUG - exec: usermod --groups sshusers web58
05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58
05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/cgi-bin
05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log
05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/ssl
05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/tmp
05.04.2012-12:29 - DEBUG - exec: chown -R web58:client40 /var/www/clients/client40/web58/web
05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log/error.log
05.04.2012-12:29 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/site.pro.vhost
05.04.2012-12:29 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-site.pro.vhost->/etc/apache2/sites-available/site.pro.vhost
05.04.2012-12:29 - DEBUG - Apache status is: 1
05.04.2012-12:29 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
05.04.2012-12:30 - DEBUG - Apache online status after restart is: 1
05.04.2012-12:30 - DEBUG - Processed datalog_id 770
05.04.2012-12:30 - DEBUG - Processed datalog_id 771
05.04.2012-12:30 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
05.04.2012-12:30 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
05.04.2012-12:30 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58
05.04.2012-12:30 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58/*
05.04.2012-12:30 - DEBUG - exec: chmod 710 /var/www/clients/client40/web58/web
05.04.2012-12:30 - DEBUG - exec: chmod 777 /var/www/clients/client40/web58/tmp
05.04.2012-12:30 - DEBUG - exec: chmod 755 /var/www/clients/client40/web58/log
05.04.2012-12:30 - DEBUG - exec: usermod --groups sshusers web58
05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58
05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/cgi-bin
05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log
05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/ssl
05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/tmp
05.04.2012-12:30 - DEBUG - exec: chown -R web58:client40 /var/www/clients/client40/web58/web
05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log/error.log
05.04.2012-12:30 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/site.pro.vhost
05.04.2012-12:30 - DEBUG - Apache status is: 1
05.04.2012-12:30 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
05.04.2012-12:30 - DEBUG - Apache online status after restart is: 1
05.04.2012-12:30 - DEBUG - Processed datalog_id 772
05.04.2012-12:30 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
05.04.2012-12:30 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.
Reply With Quote
  #10  
Old 5th April 2012, 15:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
 
Default

Ok, so everything is fine in your server except that you deleted the cron entries. Edit the root crontab with the command:

crontab -e

and add the following twolines:

Code:
* * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/ispconfig/cron.log
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
let clients change the website DocumentRoot within the default DocumentRoot Justin Albstmeijer Feature Requests 0 17th August 2011 18:57
new website cannot be located prithwis Installation/Configuration 3 23rd October 2010 11:38
Going to server IP shows clients website edge Installation/Configuration 3 5th August 2009 10:04
Problem after installing - website doesn't work nissy Installation/Configuration 4 6th May 2009 23:00
Russian Clients website shows text as -> ??? ��� sierradump General 5 22nd September 2008 13:23


All times are GMT +2. The time now is 21:27.


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