ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    The WordPress on CentOS LEMP Challenge

    Scheduled Pinned Locked Moved IT Discussion
    wordpresslemplinuxrhelnginxcentos
    60 Posts 14 Posters 18.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Martin9700
      last edited by

      Only problem I see, is it's not really a one liner. If I'm reading it right (and I may not be) then a semi-colon is a command separator? That means it's really a dozens of lines script that you've just forced into a single line.

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        Sure. It's a script then. If you save it as a script then you can run it as a one liner. Still just one copy/paste operation though.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Using semi colons to put together commands on one line qualifies via bashoneliners.com

          I've always heard the term used to mean that. It is one line, but not one command. Multiple commands on one line I've always seen called a one liner.

          1 Reply Last reply Reply Quote 0
          • M
            Martin9700
            last edited by

            Another difference between bash and PowerShell! In the PowerShell community you'd be disqualified 🙂 We simply define a one liner as a single stream. It's really semantics as all the OS's involved can copy/paste multiple lines without trouble. Have to admit, it makes your one-liner a bitch (can I say that here?) to read!!

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              It's not meant to be readable or even useful. It was just meant to prove a point 🙂

              I think PS is a lot more streamable. UNIX is all text processing. No way to make it all one stream when we need to use discrete operations like RPM.

              1 Reply Last reply Reply Quote 1
              • JaredBuschJ
                JaredBusch @scottalanmiller
                last edited by

                @scottalanmiller said:

                If you don't use nginx the whole thing gets way easier. It's only Nginx that makes it hard. Should be mostly just installing the necessary packages.

                I like the idea of a one liner I can save though, so I am editing yours for Apache. I am stuck on the sed replacements for the local directory and such. It is my fault is not knowing Apache well enough.
                I have a new Hyper-V VM running CentOS 7 Minimal. I am now needing to go manually dig though this and change things in the Apache conf files instead.

                sed -i -e s’/index index.html index.htm/index index.php index.html/’ /etc/nginx/conf.d/default.conf;
                sed -i -e s’//usr/share/nginx/html//opt/wordpress/’ /etc/nginx/conf.d/default.conf;
                sed -i -e 0,/#loca/{s’/#loca/loca/’} /etc/nginx/conf.d/default.conf;
                sed -i -e s’/# root html/ root /opt/wordpress/’ /etc/nginx/conf.d/default.conf;
                sed -i -e s’/# fastcgi_pass/ fastcgi_pass/’ /etc/nginx/conf.d/default.conf;
                sed -i -e s’/# fastcgi_index/ fastcgi_index/’ /etc/nginx/conf.d/default.conf;
                sed -i -e s’/# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi/ fastcgi_param SCRIPT_FILENAME /opt/wordpress$fastcgi/’ /etc/nginx/conf.d/default.conf;
                sed -i -e s’/# include fastcgi_params/ include fastcgi_params/’ /etc/nginx/conf.d/default.conf;
                echo ‘}’ >> /etc/nginx/conf.d/default.conf;

                Will probably be late before I can get back to it.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  The Apache setup will be extremely different. Just needs an echo to append the VirtualHost to the httpd.conf file.

                  1 Reply Last reply Reply Quote 0
                  • Bill KindleB
                    Bill Kindle
                    last edited by

                    I remember that guy. They've even had problems with it on IIS 8.5 now as well. Couldn't even get something working that was hosted.

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @Bill Kindle
                      last edited by

                      @Bill-Kindle said:

                      I remember that guy. They've even had problems with it on IIS 8.5 now as well. Couldn't even get something working that was hosted.

                      LOL. He never responded to the thread where I clearly got the best answer. I've never more clearly earned a BA and he just ignored that he looked like an idiot.

                      Bill KindleB 1 Reply Last reply Reply Quote 0
                      • Bill KindleB
                        Bill Kindle @scottalanmiller
                        last edited by

                        @scottalanmiller said:

                        @Bill-Kindle said:

                        I remember that guy. They've even had problems with it on IIS 8.5 now as well. Couldn't even get something working that was hosted.

                        LOL. He never responded to the thread where I clearly got the best answer. I've never more clearly earned a BA and he just ignored that he looked like an idiot.

                        Oh and he won't. He hits and runs. I think I lost count on about 5 posts where it was a similar question than the last. When you call him on his BS, he cries sleep deprivation and life as a MSP as being hard.

                        1 Reply Last reply Reply Quote 1
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          People hire that guy as an MSP? Damn. SMBs are just not discriminating at all.

                          Bill KindleB 1 Reply Last reply Reply Quote 2
                          • JaredBuschJ
                            JaredBusch
                            last edited by

                            @scottalanmiller A lot of difference for CentOS7 by the way.

                            yum install mysql installs mariadb automatically instead. I'm fine with that, but annoyed me at first.
                            service NAME start is depreciated in favor of systemctl start NAME
                            iptables is basically completely gone in its old form (you can manually add it with yum install iptables-services apparently). You now have to use firewall-cmd and it is systemctl reload firewalld

                            1 Reply Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch
                              last edited by

                              This is what I have at the moment. need to update the virtual host and then it should function I think. I can see the default apache page now, so i know that the basics are working.

                              yum -y install httpd; chkconfig httpd on;
                              yum -y install mariadb mariadb-server;
                              chkconfig mariadb on;
                              setenforce permissive;
                              #rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm;
                              rpm -Uvh http://mirror.1000mbps.com/fedora-epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm;
                              #rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm;
                              rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm;
                              yum -y -–enablerepo=remi install php-fpm php-mysql;
                              chkconfig php-fpm on;
                              cd /opt;
                              wget https://wordpress.org/latest.tar.gz;
                              tar -xzvf latest.tar.gz;
                              systemctl start mariadb;
                              echo “CREATE DATABASE wp” | mysql;
                              echo “CREATE USER ‘wp’@’localhost’ IDENTIFIED BY ‘password’;” | mysql;
                              echo “GRANT ALL PRIVILEGES ON *.* TO ‘wp’@’localhost’;” | mysql;
                              echo “FLUSH PRIVILEGES;” | mysql;
                              chown -R apache:apache /opt/wordpress/;
                              firewall-cmd --zone=public --add-port=http/tcp;
                              firewall-cmd --zone=public --add-port=http/tcp --permanent;
                              systemctl reload firewalld;
                              systemctl start httpd;
                              systemctl start php-fpm;
                              
                              1 Reply Last reply Reply Quote 0
                              • Bill KindleB
                                Bill Kindle @scottalanmiller
                                last edited by

                                @scottalanmiller said:

                                People hire that guy as an MSP? Damn. SMBs are just not discriminating at all.

                                The way the guy would talk about it, it would seem he was stretched thin to begin with, but possibly having money troubles too which made him work ridiculous hours spinning his wheels instead of hiring it out. OR he over promised and was under delivering.

                                1 Reply Last reply Reply Quote 1
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  I checked some other threads. That guy is a Curtis. I commented on a few. Caught him giving himself BAs to make himself look good and reported him. I can see the mods looking at the threads now.

                                  1 Reply Last reply Reply Quote 1
                                  • ?
                                    A Former User
                                    last edited by

                                    Man this guy. http://community.spiceworks.com/topic/545282-can-you-make-many-machines-behave-as-one-in-windows How is storage spaces or sharing harddrives anything like cluster which requires custom written applications... fail.

                                    StrongBadS 1 Reply Last reply Reply Quote 2
                                    • Reid CooperR
                                      Reid Cooper
                                      last edited by

                                      It is amazing. Every single thread that he starts is something ridiculous. It is like s kid who has no idea how computers work or what they would be used for.

                                      ? 1 Reply Last reply Reply Quote 1
                                      • ?
                                        A Former User @Reid Cooper
                                        last edited by

                                        @Reid-Cooper Well, this has been my experience with about 85% of MSPs, they have no clue what they are doing and take on jobs and try to learn what they are doing. And usually don't very well.

                                        1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller
                                          last edited by

                                          That guy is especially bad. He's not even trying. He is going significantly out of his way to be obtuse and only do completely inappropriate things. You can't be that bad on accident.

                                          As someone who has worked in MSPs for a long time, I have some pity for MSPs as customers often drive them to this. You'd be amazed how little customers tend to care if they MSP is good and often favour the incompetent ones because they charge less and pander to whatever the customer wants to hear. Customers make it more lucrative to be incompetent than to help them.

                                          JaredBuschJ 1 Reply Last reply Reply Quote 2
                                          • JaredBuschJ
                                            JaredBusch @scottalanmiller
                                            last edited by

                                            @scottalanmiller said:

                                            That guy is especially bad. He's not even trying. He is going significantly out of his way to be obtuse and only do completely inappropriate things. You can't be that bad on accident.

                                            As someone who has worked in MSPs for a long time, I have some pity for MSPs as customers often drive them to this. You'd be amazed how little customers tend to care if they MSP is good and often favour the incompetent ones because they charge less and pander to whatever the customer wants to hear. Customers make it more lucrative to be incompetent than to help them.

                                            +1 so much this! Luckily we have a few solid clients that understand what IT really means and see how we are saving them over the long run. We intentionally dump any client that does not see how IT is important to their business.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post