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 29th June 2012, 22:19
Platoxia Platoxia is offline
Junior Member
 
Join Date: May 2012
Posts: 9
Thanks: 3
Thanked 1 Time in 1 Post
Default I broke something and can't update ISPConfig 3

I don't really know what is going on here...

I installed ISPConfig 3 following the Perfect Server setup for Ubuntu 12.04 with Apache just for my own use as a way to easily drop in new websites. Everything worked fine but I have made alot of configuration changes manually since then and somehow broke ISPConfig (I wasn't really using it after I setup the first site).

When I try to run
Code:
sudo ispconfig_update.sh
I get the error "unable to retreive version file".

I looked at the code and pinged the server with the version.txt file just fine...I even downloaded the .txt file with wget.

I decided to re-download the installation files to run the update.php that is in it from the tmp directory and when trying the backup from the first step I get the following Warnings:

Code:
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/update.php on line 133
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/update.php on line 134
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/update.php on line 135
Creating backup of "/usr/local/ispconfig" directory...
PHP Notice:  Undefined variable: out in /tmp/ispconfig3_install/install/update.php on line 139
PHP Notice:  Undefined variable: returnvar in /tmp/ispconfig3_install/install/update.php on line 139
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/update.php on line 139
PHP Notice:  Undefined variable: returnvar in /tmp/ispconfig3_install/install/update.php on line 140
Creating backup of "/etc" directory...
PHP Notice:  Undefined variable: out in /tmp/ispconfig3_install/install/update.php on line 143
PHP Notice:  Undefined variable: returnvar in /tmp/ispconfig3_install/install/update.php on line 143
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/update.php on line 143
PHP Notice:  Undefined variable: returnvar in /tmp/ispconfig3_install/install/update.php on line 144
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/update.php on line 146
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/update.php on line 147
PHP Notice:  Undefined variable: arr in /tmp/ispconfig3_install/install/lib/install.lib.php on line 221
PHP Notice:  Undefined variable: ret_val in /tmp/ispconfig3_install/install/lib/install.lib.php on line 221
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/lib/install.lib.php on line 221
PHP Notice:  Undefined variable: ret_val in /tmp/ispconfig3_install/install/lib/install.lib.php on line 228
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/lib/install.lib.php on line 212
PHP Warning:  system() has been disabled for security reasons in /tmp/ispconfig3_install/install/lib/update.lib.php on line 45
PHP Warning:  copy(existing_db.sql): failed to open stream: No such file or directory in /tmp/ispconfig3_install/install/lib/update.lib.php on line 64
PHP Warning:  chmod(): No such file or directory in /tmp/ispconfig3_install/install/lib/update.lib.php on line 65
PHP Warning:  chown(): No such file or directory in /tmp/ispconfig3_install/install/lib/update.lib.php on line 66
PHP Warning:  chgrp(): No such file or directory in /tmp/ispconfig3_install/install/lib/update.lib.php on line 67
Checking ISPConfig database .. PHP Notice:  Undefined variable: result in /tmp/ispconfig3_install/install/lib/update.lib.php on line 93
PHP Warning:  exec() has been disabled for security reasons in /tmp/ispconfig3_install/install/lib/update.lib.php on line 93
PHP Notice:  Undefined variable: result in /tmp/ispconfig3_install/install/lib/update.lib.php on line 94
OK
I have to assume that all of these warnings are not normal and are probably related to having hardeded my php configurations to the following: http://www.dolollysdaylilies.com/phpsecinfo

The upload_tmp_dir and save_path are both commented out because I had inadvertantly completely wiped out my php.ini files with a script (yes, all of them) and had to download the original one from the php site.

Everything else in the php.ini file that I changed from the original (after getting it from the php site) were to secure my php settings according to phpsecinfo.

I've made alot of other manual changes to the way my server works, but the only other major change I can think of is that I successfully setup sftp for my server making key-pair logins the only option following some tutorials including the following:

http://www.howtoforge.com/restrictin...debian-squeeze
http://ubuntuforums.org/showthread.php?t=858475

...along with others.

To be honest, I had alot of trouble getting the key-based only logins to work and only made it work through alot of tutorial reading and trial and error.

I don't really know how the update process for ISPConfig is supposed to work...but I broke it somehow, along with ISPConfig's ability to read most of my log files; it can't even see that fail2ban is installed for example or that iptables is configured at all (they are and work fine, which is why I wanted to update ISPConfig).

I've searched around the net and see that others have had these issues as well going back several years...but I can't seem to sort this out.

I have one site setup with OpenCart and while it is all setup and functioning properly, I havn't developed the website yet.

Should I just reinstall ISPConfig, or is there another way I can send it through it's configuration stage without wiping out the functionality of the OpenCart setup? Should I continue with the update even with the warnings and hope for the best? I'm kind of torn on how to proceed at this point.

If it can be saved I would hate to have to start all over again and frankly, I'm not very comfortable going back the security holes from the original install of ISPConfig 3.

If it comes down to completely re-installing ISPConfig 3 and reconfiguring everything back to defaults, I think I would rather uninstall ISPConfig 3 and have to manually setup my OpenCart site instead.

Any advice on this would be apprecieated.
Reply With Quote
Sponsored Links
  #2  
Old 30th June 2012, 12:14
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

You've disabled the exec() and system() functions in your PHP configuration. You must enable them, otherwise ISPConfig won't work.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th June 2012, 12:57
Platoxia Platoxia is offline
Junior Member
 
Join Date: May 2012
Posts: 9
Thanks: 3
Thanked 1 Time in 1 Post
Default

Thanks Falko, I figured as much...

I only wonder if there are other changes that are getting in the way as well. Specifically, the sftp with key-based logins changes I've made.

I'll do some testing over the weekend.
Reply With Quote
  #4  
Old 2nd July 2012, 10:26
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,002 Times in 3,911 Posts
 
Default

Ubuntu has 3 php.ini files. You can sefaly disable exec and system in the apache2 and cgi php.ini file. Just dont disable it in the cli php.ini file. cli is for shell scripts only and disabling shell functions in shell scripts does not make much sense anyway.
__________________
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


All times are GMT +2. The time now is 22:49.


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