PDA

View Full Version : Small bugs in 3.0.1.3


NdK
29th July 2009, 22:51
Hello.

I think I've found some bugs in default setup (and couldn't find them listed anywhere):
- missing "ln -s /usr/share/phpmyadmin /var/www/phpmyadmin"
- extra \ at line 32 of /usr/local/ispconfig/server/conf/bash.bashrc.master (with it ssh users see literal $USER@.. instead of username@...)
- missing /var/www/clients/clientX/webY/.htpasswd_stats -- without it, accessing /stats/ gives a "500 internal server error" after asking for auth

Another thing I did is adding "-c ~/php.ini" to exec line of /usr/local/ispconfig/server/conf/php-fcgi-starter.master (the file in PHPRC *should* get used if user doesn't put a php.ini in his home). Maybe it should be configurable on an host-by-host or client-by client basis, together with number of childs to spawn for each fastcgi user.

Hope it can help others.

till
3rd August 2009, 10:11
- missing "ln -s /usr/share/phpmyadmin /var/www/phpmyadmin"

Which Linux distribution?

- extra \ at line 32 of /usr/local/ispconfig/server/conf/bash.bashrc.master (with it ssh users see literal $USER@.. instead of username@...)

http://bugtracker.ispconfig.org/index.php?do=details&task_id=826&project=3&type[0]=1&sev[0]=&pri[0]=&due[0]=&cat[0]=&status[0]=open&percent[0]=&reported[0]=

- missing /var/www/clients/clientX/webY/.htpasswd_stats -- without it, accessing /stats/ gives a "500 internal server error" after asking for auth

It gets created as soon as you enter a password for the statistics.

Another thing I did is adding "-c ~/php.ini" to exec line of /usr/local/ispconfig/server/conf/php-fcgi-starter.master (the file in PHPRC *should* get used if user doesn't put a php.ini in his home). Maybe it should be configurable on an host-by-host or client-by client basis, together with number of childs to spawn for each fastcgi user.

Be aware that this is dangerous as it might allow your clients to bypass restrictions by activating functions in php which they may not use or change settings like the open_basedir.

NdK
3rd August 2009, 13:35
Which Linux distribution?
Debian Lenny, installed following "perfect server" howto.

It gets created as soon as you enter a password for the statistics.
Uh, ok. It was not clear to me even "where to set" the stats pass. I thought it by default used the same credentials as FTP.
And IMVHO it's "a bad thing" to have a "500 internal server error" if a password is not set. If it had been an "access denied", I'd have looked better in the panel to see where the pass was set.

Be aware that this is dangerous as it might allow your clients to bypass restrictions by activating functions in php which they may not use or change settings like the open_basedir.
I know. Infact I was looking for a way to let the user override just some settings. But couldn't find any... Seems PHP doesn't allow "incremental config" :(
If all else fails, I'll have to give some "templates" and let users choose which is best for their needs... But even this is not (yet) supported.

PS: please don't take me wrong! I *really* appreciate ISPConfig... I just stumbled on some roughness as a complete newbie and tried to help others avoid it.