Search results

  1. M

    LSWS Rails App MySQL Connection Errors

    RailsRunner.rb in 4.0.10 should be compatible with all version of Rails.
  2. M

    Isolating Cpanel User into their own vhost

    It is on our to-do list. :)
  3. M

    LSWS Rails App MySQL Connection Errors

    Try adding the following code to lsws/fcgi-bin/RailsRunner.rb ActiveRecord::Base.connection_handler.clear_active_connections! if defined?(ActiveRecord::Base.connection_handler) just below ActiveRecord::Base.clear_active_connections! if defined?(ActiveRecord::Base) around...
  4. M

    Need some tips for tuning the web server

    looks like your server is under attack or not something causes the traffic surge. Is it back down now? If it is attack, you should implement some anti-DDoS configuration. http://www.litespeedtech.com/how-tos.html#qa_dos
  5. M

    Isolating Cpanel User into their own vhost

    You can configure a vhost natively in LSWS with the same domain as cPanel's vhost configuration, the vhost configured natively has higher priority. You need to create the listener and add the binding in LSWS as well.
  6. M

    Litespeed LDAP vs. mod_auth_ldap in Apache

    no sample here, please check the fastcgi web site, it is standard. Basically you need to define a FCGI authorizer external app in LSWS.
  7. M

    LSWS Rails App MySQL Connection Errors

    If you can get the MySQL adapter object, you can try calling "disconnect!" http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/MysqlAdapter.html#M001996 at the end of your App initialization routine.
  8. M

    LSWS Rails App MySQL Connection Errors

    The MySQL connection is because in your App initilization code accessing DB. It is due to internal change in Rails, used to be able to close MySQL connection, but cannot with your version of Rails. Restart does not matter.
  9. M

    PHP build manually through SSH not working

    command should be.
  10. M

    Litespeed LDAP vs. mod_auth_ldap in Apache

    You can write a FCGI authorizer using LDAP in perl.
  11. M

    LSWS Rails App MySQL Connection Errors

    I think this is the connection to MySQL, should be closed.
  12. M

    Latest 4.0.10 enterprise - PHP doesn't run on temporary URLs

    I have been investigating some issues on your server.
  13. M

    LSWS Rails App MySQL Connection Errors

    Mysql connection was not closed before ruby process forked, so if one process close the connection, the other processes will get the error. To verify this, you can "lsof -p <pid_of_ruby_process>", check the mysql unix socket, all of them must be referencing to the same one, and the parent ruby...
  14. M

    Need some tips for tuning the web server

    Another note on W3 Total Cache, looks like everything is still served by PHP, just cached by memcache or something. it is slower than WP super cache, if you do not need to keep everything dynamic or any specific need for features in W3 Total Cache, WP super cache is a better choice for busy blog...
  15. M

    Need some tips for tuning the web server

    Max idle time and connection keepalive timeout should not be set. Initial request timeout should be around 60. What you see probably is normal as LSWS uses minimum number of persistent PHP processes to serve all requests, CPU utilization may looks like for indivudal process, but the overall...
  16. M

    Problem with cPanel error log and LiteSpeed

    I do not know, not likely cPanel does that. But it is in user's home directory owned by that user, so they should have no problem accessing those files.
  17. M

    Problem with cPanel error log and LiteSpeed

    For log rotation, you can set the rotation point higher, and rotate it with your cron job, just "mv ..." will work, then create the log file with correct permission. If you know how to customize cPanel's vhost template, you can add a php_value error_log .... directive to the vhost template.
  18. M

    Port 80 neither litespeed nor apache load.

    You should upgrade to 4.0.10, or upgrade your WHM plugin cd /usr/src wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh sh ./lsws_whm_plugin_install.sh rm -f lsws_whm_plugin_install.sh
  19. M

    Help?!? LSWS no longer recognizing any of my folders as present?

    It is not recommended and the risk is on your own, but if you really want, you can change files/directories owned by lsadm back to the old user account. restart LSWS. Or, you can run the installer of the older release, do a manual upgrade, you can back to the older release. you will stuck with...
  20. M

    LSWS 4.0.x and AJP app

    I think there is somehting that LSWS does not like in the AJP packet sent by flup-ajp, so web server side closed the connection. If it can be reproduced with certain URL, you can grep 503 error in access log see if it only happen to certain URL. You can use tcpdump to capture the data exchanged...
Top