Can't create sites after centos 6.3 upgrade

Discussion in 'Installation/Configuration' started by inferno3031, Oct 28, 2012.

  1. inferno3031

    inferno3031 New Member

    Hello everyone,

    as i wrote in the topic title i have an issue with my ispconfig 3 after centos 6.2 > 6.3 upgrade. The only thing that seems not to work is adding new sites and of course ftp users along with it. When i looked closely at what ispconfig is doing while adding a site i saw this in the base_dir, debug logs and ispconfig database entries :

    /var/www/clients/client0/web27/web:/var/www/clients/clijavascript:changeTab(\'dns\',\'admin/server_config_edit.php\')ent0/web27/tmp:/var/www/site-domain.com/web:/srv/www/site-domain.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php

    So obviously the problem is the additional js string in the directory name. I don't know how this string is getting there and i hoped you could help me. For the record i used firefox and chrome for it so i doubt it would be my browsers fault. Can anyone help me pls?
     
  2. till

    till Super Moderator

    Did you made a ispconfig update after you upgraded centos? If not, download the ispconfig tar.gz file, unpack it and run the update.php script which is in the install folder. Choose to reconfigure services when the updater asks you.
     
  3. inferno3031

    inferno3031 New Member

    If i remember it correctly i think i did a small ispconfig update back then. I did it through ispconfig_update.sh. Should i still run the the update.php with reconfiguring the services?
     
  4. till

    till Super Moderator

    Yes, please do the manual update again.
     
  5. inferno3031

    inferno3031 New Member

    Ok so i did the manual update of the ispconfig with reconfiguring services. Unfortunately i still get the same result :

    (from the ispconfig syslog)
    2012-10-29 08:20 xxx.com Debug Creating symlink: ln -s /var/log/ispconfig/httpd/domain.com /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web29/log

    Do you have any other ideas? Maybe theres something wrong with my ispconfig files? Or my php? This js added in fields is so werid.
     
    Last edited: Oct 29, 2012
  6. till

    till Super Moderator

    This was my guess, but the update shuld have replaced all fies. Or do you use a custom ispconfig theme which has not been replaced by the update?

    What happens when you set the correct open_basedir path in the open basedir field of the website and click on save, is the path then correct or did the javascript code added again?
     
  7. inferno3031

    inferno3031 New Member

    No i use a standard theme. I even switched language from polish to english back but it didn't help either. When i remove the js from the basedir in site options it doesn't appear there again (like the websites i created before the update have their basedirs all ok and working). But when i change it it doesn't create the new directory Like when i change this :

    /var/www/clients/clijavascript:changeTab(\'dns\',\'admin/server_config_edit.php\')ent0/web33/web:/var/www/clients/clijavascript:changeTab(\'dns\',\'admin/server_config_edit.php\')ent0/web33/tmp:/var/www/avc.pl/web:/srv/www/avc.pl/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php

    to this

    /var/www/clients/client0/web33/web:/var/www/clients/client0/web33/tmp:/var/www/avc.pl/web:/srv/www/avc.pl/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php

    I have no web33 in my client0 folder. I also tried creating a site from client account also without any improvement.
     
    Last edited: Oct 29, 2012
  8. till

    till Super Moderator

  9. inferno3031

    inferno3031 New Member

    Thanks for your help so far. Is this what you wanted? :

    Code:
    2012-10-29 09:57 my-host.pl Debug Calling function 'restartHttpd' from module 'web_module'.  
    2012-10-29 09:57 my-host.pl Debug Processed datalog_id 1348  
    2012-10-29 09:57 my-host.pl Debug Calling function 'restartHttpd' from module 'web_module'.  
    2012-10-29 09:57 my-host.pl Warning Apache did not restart after the configuration change for website test-domain.pl Reverting the configuration. Saved non-working config as /etc/httpd/conf/sites-available/test-domain.pl.vhost.err Delete  
    2012-10-29 09:57 my-host.pl Debug Apache online status after restart is:   
    2012-10-29 09:57 my-host.pl Debug Calling function 'restartHttpd' from module 'web_module'.  
    2012-10-29 09:57 my-host.pl Debug Apache status is: 1  
    2012-10-29 09:57 my-host.pl Debug Creating symlink: /etc/httpd/conf/sites-enabled/100-test-domain.pl.vhost->/etc/httpd/conf/sites-available/test-domain.pl.vhost  
    2012-10-29 09:57 my-host.pl Debug Writing the vhost file: /etc/httpd/conf/sites-available/test-domain.pl.vhost  
    2012-10-29 09:57 my-host.pl Debug Creating fastcgi starter script: /var/www/php-fcgi-scripts/web35/.php-fcgi-starter  
    2012-10-29 09:57 my-host.pl Debug Creating fastcgi starter script directory: /var/www/php-fcgi-scripts/web35 
    
    2012-10-29 09:57 my-host.pl Debug exec: chown web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/log/error.log  
    2012-10-29 09:57 my-host.pl Debug exec: chown -R web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/web  
    2012-10-29 09:57 my-host.pl Debug exec: chown web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/tmp  
    2012-10-29 09:57 my-host.pl Debug exec: chown web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/ssl  
    2012-10-29 09:57 my-host.pl Debug exec: chown web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/log  
    2012-10-29 09:57 my-host.pl Debug exec: chown web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/cgi-bin  
    2012-10-29 09:57 my-host.pl Debug exec: chown web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35  
    2012-10-29 09:57 my-host.pl Debug exec: usermod --groups sshusers web35  
    2012-10-29 09:57 my-host.pl Debug exec: chmod 755 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/log  
    2012-10-29 09:57 my-host.pl Debug exec: chmod 777 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/tmp  
    2012-10-29 09:57 my-host.pl Debug exec: chmod 710 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/web  
    2012-10-29 09:57 my-host.pl Debug exec: chmod 751 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/*  
    2012-10-29 09:57 my-host.pl Debug exec: chmod 751 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35  
    2012-10-29 09:57 my-host.pl Debug exec: chown web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/web  
    2012-10-29 09:57 my-host.pl Debug exec: chown -R web35:client0 /var/www/clients/clijavascript:changeTab('dns','admin/server_config_edit.php')ent0/web35/web 
    2012-10-29 09:57 my-host.pl Debug Adding the user: web35  
    2012-10-29 09:57 my-host.pl Debug Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.  
    2012-10-29 09:57 my-host.pl Debug Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.  
    2012-10-29 09:57 my-host.pl Debug Processed datalog_id 1347 
    
     
  10. till

    till Super Moderator

    Thanks for posting the debug output.

    Which exact ispconfig version do you use, 3.0.4.6?
     
  11. inferno3031

    inferno3031 New Member

    Yes exactly 3.0.4.6.
     
  12. till

    till Super Moderator

    It might be that a wrong folder layout has been set on the server. Take a look at the settings in ISPConfig under System > server config > web, these settings are correct:

    website basedir: /var/www
    website path: /var/www/clients/client[client_id]/web[website_id]
    website symlinks: /var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domain]/
     
  13. inferno3031

    inferno3031 New Member

    Holy ... cow. I had this js string in my "website path". It's so obvious and simple now. I have no idea how it got there and i feel so stupid right now because i could swear i did check that ^^. Thank you so much for your help :)
     

Share This Page