Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


LEMP/LNMP
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

LEMP/LNMP

Hello everyone. I have a NAT IPv4 VPS laying around from LES and I would like to put it to use... Specifically, I'd like to install Nginx/LightHTTPD, PHP and MySQL/MariaDB. I have tried multiple tutorials online and none have worked. I am usually able to follow the guides normally or use centminmod to install LEMP stack but am unable to do so in this situation as I have only 192MB of RAM and 2GB of storage. I am looking for someone to do this for me on CentOS 6 and I'd be more than happy to send you some money via PayPal for your help... Let me know :)

«1

Comments

  • hostnoobhostnoob Member
    edited January 2016

    apt-get install lighttpd php5-cgi php5-mysql mysql-server && lighty-enable-mod fastcgi-php && cd /etc/mysql/ && mv my.cnf my.cnf.bk && cp /usr/share/doc/mysql-server-5.5/examples/my-small.cnf my.cnf && /etc/init.d/lighttpd restart && /etc/init.d/mysql restart

    Thanked by 1LowEndAddiction
  • @hostnoob said:
    apt-get install lighttpd php5-cgi php5-mysql mysql-server; lighty-enable-mod fastcgi-php; CD /etc/mysql/; mv my.cnf my.cnf.bk; mv /usr/share/doc/mysql-server-5.5/examples/my-small.cnf my.cnf; /etc/init.d/lighttpd restart; /etc/init.d/mysql restart

    Wouldn't I have to do any custom configuration?

  • @LowEndAddiction said:
    Wouldn't I have to do any custom configuration?

    You mean specifically for LES? No idea, I think you can just use cloudflare for IPv6 -> IPv4 or you can edit /etc/lighttpd/lighttpd.conf to change the port to one of the ones assigned to you

  • hostnoobhostnoob Member
    edited January 2016

    Actually I just saw you're on centos. That command is for Debian only, sorry

  • miTgiBmiTgiB Member
    edited January 2016

    https://hostigation.com/blog/create-lnmp-server-in-128mb/

    This has nothing with what you will need to deal with LES, but it will install without sketchy scripts

  • LowEndAddiction said: send you some money via PayPal for your help

    specify the help you need, more important, the money :P

    Thanked by 1LowEndAddiction
  • @colingpt said:
    specify the help you need, more important, the money :P

    .

    NAT IPv4 VPS laying around from LES and I would like to put it to use...

    .

    If he's being stingy enough to actually try using a 128mb LES vps.... i really really doubt he'll send enough to even buy a beer.

    Thanked by 1colingpt
  • @Jonchun said:
    If he's being stingy enough to actually try using a 128mb LES vps.... i really really doubt he'll send enough to even buy a beer.

    Not everyone uses LES to save money.

    Thanked by 1LowEndAddiction
  • @Junkless said:
    Not everyone uses LES to save money.

    What else would you use it for?

  • I don't know, testing, learning and all? Trying to save money is not always equal to being stingy.

    Thanked by 1LowEndAddiction
  • @Junkless said:
    I don't know, testing, learning and all? Trying to save money is not always equal to being stingy.

    So a guy testing and learning stuff is asking someone to set it up for him? Seems legit.

    Thanked by 1rm_
  • @Jonchun said:

    If your thinking I'm poor because I use LES your wrong... I simply do not like your attitude and find it offensive. I currently own around 10 VPS from OVH, Ramnode, Host1Plus, and a dedi from Kimsufi. You have no right to judge me and think I am stingy with my money. If you are going to be useless and start a flamewar I'd rather have you leave. All I did was ask a question. People like you make LET like LowEndFlamewar.

  • edited January 2016

    LowEndAddiction said: I am usually able to follow the guides normally or use centminmod to install LEMP stack but am unable to do so in this situation as I have only 192MB of RAM and 2GB of storage.

    Try documenting what the issue was in your post, and then people can help you solve that particular issue. Did you have an error message? Was it yum failing in a low memory environment?

    Thanked by 1LowEndAddiction
  • emperoremperor Member
    edited January 2016

    reinstall it to debian and https://github.com/Xeoncross/lowendscript.

    I host static website on my 64mb LES with that script.

    Fot centos : https://freevps.us/thread-1434.html

    I havent test it yet on LES but it should work.

    Use your host reverse proxy, or cloudfare 6to4

    Thanked by 1LowEndAddiction
  • jvnadrjvnadr Member
    edited January 2016

    Normally installing LEMP stack in a LES, is an easy task. In Debian/Ubuntu is almost an "one click task", but it is easy also in Centos. Although, I wouldn't use Centos in a 128MB box, because with the default installation, it needs more resources. Is there any particular reason to use Centos?
    Also, what errors did you receive when trying to install a LEMP stack, and what tutorial did you follow?

    Thanked by 1LowEndAddiction
  • LowEndAddiction said: Nginx/LightHTTPD, PHP and MySQL/MariaDB

    Centmin Mod may have some hacks/tweaks

    Thanked by 1LowEndAddiction
  • @jvnadr said:
    Normally installing LEMP stack in a LES, is an easy task. In Debian/Ubuntu is almost an "one click task", but it is easy also in Centos. Although, I wouldn't use Centos in a 128MB box, because with the default installation, it needs more resources. Is there any particular reason to use Centos?
    Also, what errors did you receive when trying to install a LEMP stack, and what tutorial did you follow?

    I am just used to CentOS, it's more of a personal preference. Although Debian and CentOS aren't much different I should just invest my time in learning Debian. I am going to try @emperor tutorial and I might not need help after this.

  • @LowEndAddiction said:
    snip

    Technically I have every right to judge you. Just like you have every right to insist I'm being rude. I just found it hilarious that you mentioned payment for someone to configure a $2/year server.

  • @emperor said:
    reinstall it to debian and https://github.com/Xeoncross/lowendscript.

    I host static website on my 64mb LES with that script.

    Fot centos : https://freevps.us/thread-1434.html

    I havent test it yet on LES but it should work.

    Use your host reverse proxy, or cloudfare 6to4

    The CentOS script worked successfully! I have a couple questions now... How would I create/view existing MySQL users? I usually use a panel like VestaCP. I am creating a forum and I need my username and password for the database and I couldn't help but notice that I didn't see a field to create a username.

  • miTgiBmiTgiB Member
    edited January 2016

    mysql mysql
    >show tables user;

    Thanked by 1LowEndAddiction
  • You can install vestacp with some hacks, to listen to a port assigned to you and not the 8083 default. As of handling via terminal, just google a little. There are several tutorials to do it. When installed mysql, you gave a root password there. You can use it to enter to mysql and do all the tasks from there.

    Thanked by 1LowEndAddiction
  • I'm guessing I do mysql mysql (password)? When I do that a bunch of lines come up, which command do I use to create a user and a password as I am hosting multiple sites. I have created the vhosts already.

  • hostnoob said: you can just use cloudflare for IPv6 -> IPv4 or you can edit /etc/lighttpd/lighttpd.conf to change the port to one of the ones assigned to you

    Is cloudflare able to redirect to a non-standard port?

    Thanked by 1LowEndAddiction
  • @info_hash said:

    I am using the reverse proxy provided by them in the SolusVM panel. So it's running on port 80.

    Thanked by 1info_hash
  • Installation done.
    
    to create a vhost, run
    
    setup-vhost example.com
    
    do not include the www. subdomain.
    
    run /usr/bin/mysql_secure_installation to set mysql password
    

    Theese are the last lines you see when installation is finished. Now run that to set up root mysql password and after that enter mysql and do your thing.

    Thanked by 1LowEndAddiction
  • @emperor said:
    Installation done.

    to create a vhost, run

    setup-vhost example.com

    do not include the www. subdomain.

    run /usr/bin/mysql_secure_installation to set mysql password

    Theese are the last lines you see when installation is finished. Now run that to set up root mysql password and after that enter mysql and do your thing.

    So the MySQL username is "mysql"? I need to create multiple sites, therefore I need multiple users and when I do the MySQL secure installation it only asks me for a password.

  • Anyone?

  • info_hashinfo_hash Member
    edited January 2016

    LowEndAddiction said: I am using the reverse proxy provided by them in the SolusVM panel. So it's running on port 80.

    Didn't know they offered that. neat!

    Thanked by 1LowEndAddiction
  • info_hash said: Is cloudflare able to redirect to a non-standard port?

    No. Cloudflare does redirection from ipv4 to ipv6 box only to port 80.

Sign In or Register to comment.