Page 3 of 7 FirstFirst 123456 ... LastLast
Results 81 to 120 of 266
  1. #81
    Join Date
    Oct 2008
    Posts
    533
    Looks like you enabled Varnish so its not really fair to compare against nginx in terms of raw webserver performance.

    As for wordpress, auto-update via the admin panel works just fine, unless you are referring to something else?

    I've been preparing a different version of the script to have virtualhosts under /home/user rather than /srv/www. Turns out some people prefer it that way, especially those coming from cPanel/Directadmin.
    Also in the works is a script installer for commonly used scripts.
    Now I just need to get a site up to host em


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  2. #82
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    If you need a VPS to host them on, I can help you out with that. It still is faster.

    The updating didn't work for me. I guess that you are setting owner and group to www-data:www-data.

  3. #83
    Join Date
    Oct 2008
    Posts
    533
    Yep, they have to be www-data:www-data. If you prefer username:username permissions then I can PM you the link to the new scripts.

    Some nice folks have already given me a OpenVZ box to test the scripts on, so I'm good for the time being. Just procrastinating on setting up the site


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  4. #84
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    Alright, I have a few buyvm vps that I would be willing to donate to the cause.

    Can you send me the pm for the username scripts? Maybe I am wrong, but I thought that it was better to run them that way?

  5. #85
    Join Date
    Oct 2008
    Posts
    533
    Its safer but less convenient to have the webserver serving sites as a seperate user (e.g www-data). That way, any vulnerabilities won't give access to a user's home directory.

    Though with the new scripts, you can dedicate one user to serving webpages to achieve the similar security model.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  6. #86
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    I guess I thought making the directory owned by www-data:www-data was not safe. If it is not a big deal, I will just run them that way for now.

    I will check out the other ones you sent as well.

  7. #87
    Quote Originally Posted by Scientist View Post
    Yep, they have to be www-data:www-data. If you prefer username:username permissions then I can PM you the link to the new scripts.

    Some nice folks have already given me a OpenVZ box to test the scripts on, so I'm good for the time being. Just procrastinating on setting up the site
    That's actually one problem I ran in.

    When I had Varnish enabled, it somehow broke the www-data thing. Apache didn't have any write permissions to /srv/www/*

    When I disabled Varnish, everything worked again...

    Do you have any idea how to fix this? I'm going to look into Varnish' config next but I'm scared it'll too complicated.

  8. #88
    Thanks.

    ..

  9. #89
    Join Date
    Oct 2008
    Posts
    533
    Quote Originally Posted by mixture View Post
    That's actually one problem I ran in.

    When I had Varnish enabled, it somehow broke the www-data thing. Apache didn't have any write permissions to /srv/www/*

    When I disabled Varnish, everything worked again...

    Do you have any idea how to fix this? I'm going to look into Varnish' config next but I'm scared it'll too complicated.
    Without having a look it'll be hard to figure out whats going on, but I'm guessing you are using IP:80 in your virtualhost blocks instead of *:80 ?


    Quote Originally Posted by yugongtian View Post
    Thanks.

    ..
    No prob!
    Last edited by Scientist; 03-10-2011 at 01:29 PM.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  10. #90
    Another nice feature would be to add mail server option such as Postfix with Dovecot IMAP/POP3 + Sasl Authentication. It would make a complete server for VPS.

  11. #91
    Join Date
    Oct 2008
    Posts
    533
    I actually ran that for a while, but it was way too much work (and RAM) for something we take for granted everyday. I'd say leave your domain server as it is, and run a dedicated mail server with something like iredmail or zimbra.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  12. #92
    I'd like to have 2-3 emails ([email protected], [email protected]) on my VPS server with POP3/IMAP and SMTP and be able to forward them to my gmail or hotmail account. What would you recommend such as iredmail, zimbra or postfix with sasl and dovcot?

  13. #93
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    Why not use google apps? It's free.

  14. #94
    Quote Originally Posted by dclardy View Post
    Why not use google apps? It's free.
    What do you mean? I must be able to have my domain name at the end of email.

  15. #95
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305

  16. #96
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305

  17. #97
    Quote Originally Posted by dclardy View Post
    That is awesome. It looks like it should have all the features like POP3/IMAP and no overhead on my server. Thank you.

  18. #98
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    Yeah it is a pretty cool service that they are just giving away. Plus, it allows you to get a smaller VPS or something so you can cut back on cost.

  19. #99
    Join Date
    Oct 2008
    Posts
    533
    Yep, Google Apps is what I use as well. I might try out Zoho mail later on because Google Apps doesn't handle multiple domains very well unless you upgrade to the paid version.

    I cleaned up the scripts a little bit to simplify the installation process. The wordpress installer much much more intuitive as well. Its now hosted on its own site, courtesy of rockstarvps. Check out http://tuxlite.com for the updated scripts


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  20. #100

    can't import database through phpmyadmin?

    I can log in to phpmyadmin and create new database, but can't import database through phpmyadmin, and can only import database by SSH access to mysql. How to solve this?

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

  21. #101
    Join Date
    Oct 2008
    Posts
    533
    Your problem is that your database upload is taking too long. Increase the

    IPCCommTimeout 60 in /etc/apache2/mods-available/fcgid.conf to
    IPCCommTimeout 300

    Edit: Then restart apache
    /etc/init.d/apache2ctl restart

    Quote Originally Posted by zch0071 View Post
    I can log in to phpmyadmin and create new database, but can't import database through phpmyadmin, and can only import database by SSH access to mysql. How to solve this?
    Last edited by Scientist; 03-14-2011 at 10:28 AM.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  22. #102
    Quote Originally Posted by Scientist View Post
    Your problem is that your database upload is taking too long. Increase the

    IPCCommTimeout 60 in /etc/apache2/mods-available/fcgid.conf to
    IPCCommTimeout 300

    Edit: Then restart apache
    /etc/init.d/apache2ctl restart
    I have done according to what said, but still can't solve the problem.

  23. #103
    Join Date
    Oct 2008
    Posts
    533
    Quote Originally Posted by zch0071 View Post
    I have done according to what said, but still can't solve the problem.
    What is the file size of your database?
    You probably need to increase upload_max_filesize in /etc/php5/cgi/php.ini if it is a very large file.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  24. #104
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    @Scientist,

    I am attempting to use your current script to build an auto-installer for ispConfig. Do you know of a way to update /etc/fstab to include usrquota,grpquota section? It just need to be added to the mount point /

  25. #105
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    Another thing that I noticed. It doesn't appear that the skip-innodb is being properly added.


    Code:
    sed -i '/myisam_sort_buffer_size/ a\skip-innodb' /etc/mysql/my.cnf
    I can not find it added to /etc/mysql/my.cnf anywhere.

  26. #106
    Join Date
    Oct 2008
    Posts
    533
    I just fixed that one earlier, but haven't uploaded the new copy yet because I'm finishing up an auto installer for nginx. The skip-innodb line needs to be out of the IF loop.

    For your fstab question. I suppose the way I'll do it is by first grepping the / mount point line, append the usrquota and replace the line with sed.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  27. #107
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    Since, I have no experience with bash. I am just going to skip that for now I guess. I will try to figure it out.


    Thanks.

  28. #108
    Join Date
    Oct 2008
    Posts
    533
    Might be best to leave out automating that though. Different systems will have different (and unpredictable) /etc/fstab entries so it may cause the fstab to break.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  29. #109
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    Yeah. I guess that I will have to get them to do those steps manually or something.

  30. #110
    Join Date
    Oct 2008
    Posts
    533
    Quote Originally Posted by dclardy View Post
    Yeah. I guess that I will have to get them to do those steps manually or something.
    Yep, that should be the safest way.

    Btw, I just uploaded the Nginx version of my scripts. After spending some time on their wiki, it turns out that the configuration isn't too alien after all.
    http://tuxlite.com/lnmp.tar.gz
    Instructions are on the site if anyone is interested in testing it.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  31. #111
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    I will take a look at it. Does this one include varnish as well?

  32. #112
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    If not, how do you set it up to serve files based on vhost. I installed it on NginX, but I couldn't get it to serve the different files. I should look into it some more.

  33. #113
    Join Date
    Oct 2008
    Posts
    533
    Yep Varnish will work as usual if you use the domain script that comes with it. Bear in mind I've only tested it on Debian squeeze so no clue if it'll work at all for lenny.

    The Nginx vhost blocks needs some manual configuration depending on how your site runs, so maybe try something simple like wordpress first. The wordpress script should sort you out.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  34. #114
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    Alright. I will use your script to see how you configured varnish for NginX. I have it up and running serving my site, but I wanted to try varnish in front of it. It just wouldn't serve domain.com. It only served the default site no matter what domain I typed in.

    I run about 6 on one box.

  35. #115
    Join Date
    Oct 2008
    Posts
    533
    Ah, you probably need to disable the default site first or make sure the ports are set correctly on it. Otherwise Varnish won't be able to listen on port 80.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  36. #116
    Join Date
    Mar 2010
    Location
    Dallas
    Posts
    305
    That was what was weird. All ports were changed. NginX was bound to 8080 and varnish to 80. I bet going through your files will let me figure it out.

  37. #117
    Join Date
    Mar 2010
    Posts
    4,487
    Odd... today, trying to connect to the https phpmyadmin directory it says "Unable to connect

    Firefox can't establish a connection to the server at"

    Works fine if I use a different domain that is on the server though.
    Last edited by techjr; 03-15-2011 at 06:57 PM.

  38. #118
    Join Date
    Oct 2008
    Posts
    533
    Odd indeed. It will load unless there is a temporary glitch with the domain's DNS.
    Somewhat related, if you are using multiple domains you may want to have
    NameVirtualHost *:443

    just before Listen 443 in /etc/apache2/ports.conf


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

  39. #119
    Hey Scientist,

    I just noticed that my MySQL stuff is all MyISAM. Did the serversetup.sh set my mysql 5.1.x to default to MyISAM?

    I would like to use InnoDB (the software I'm using suggest that you use InnoDB)...

    if you have the time, could you suggest what do I need to do to achieve that. I guess I need to change my.cnf & change the engine type from MyISAM to InnoDB in existing databases.

    I'm sure I'll find a tutorial or something using google, but I'm just wondering if there's anything special your script did.

    Thanks

  40. #120
    Join Date
    Oct 2008
    Posts
    533
    As far as I know, InnoDB only became the default storage engine in mysql 5.5 so the 5.1 shipped with Deb 6 will default to myisam.

    The mysql documentation says to put default-storage-engine=innodb in your my.cnf. Also make sure that skip-innodb isn't in your my.cnf. The newer versions of my script has that included. However, I'm not familiar with the consequences of a mixed storage engine database. Do backup your db before trying it out.


    Tuxlite.com Complete LAMP and LNMP script for Debian and Ubuntu.

Page 3 of 7 FirstFirst 123456 ... LastLast

Similar Threads

  1. CentOS or Ubuntu or Debian
    By Host4Geeks in forum Hosting Software and Control Panels
    Replies: 26
    Last Post: 08-24-2010, 04:50 AM
  2. Seems Debian BETTER than CentOS for LNMP VPS?
    By 21andy in forum VPS Hosting
    Replies: 8
    Last Post: 02-24-2010, 03:20 AM
  3. Debian Server - Professional LAMP Setup, Optimization + Hardening Needed
    By Netarch in forum Systems Management Requests
    Replies: 5
    Last Post: 07-16-2008, 11:49 AM
  4. Any decent guides for chrooting apache2 in ubuntu lamp installation?
    By Georgecooldude in forum Hosting Security and Technology
    Replies: 2
    Last Post: 05-12-2008, 06:42 PM
  5. Hassle Free CentOS/Ubuntu LAMP install disc?
    By RobinWrit in forum Colocation and Data Centers
    Replies: 2
    Last Post: 03-05-2008, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •