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

    Build WordPress website on a CentOS 6.5 server.

    IT Discussion
    linux php mysql centos wordpress
    10
    118
    40.7k
    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.
    • scottalanmillerS
      scottalanmiller @Joy
      last edited by

      @Joyfano said:

      After working with Linux for few days mostly using command I can say honestly that's its easy to do any task using command. In my case I just need to be more familiar and of course to learn about different command line. I wish I knew this before. 🙂

      Yes, a command line makes for a harder and steeper learning curve because there are not graphical clues leading you from one step to another. But once you learn the commands it actually makes things easier. And if you think using the command line directly is easy, wait until you script for administration - so easy to automate lots of systems at once. So powerful and so easy. Windows admins with their GUIs have an easy time at day one, but by day two they do twice as much work as their command line counterparts.

      1 Reply Last reply Reply Quote 0
      • JoyJ
        Joy
        last edited by

        @scottalanmiller said:

        @Joyfano said:

        After working with Linux for few days mostly using command I can say honestly that's its easy to do any task using command. In my case I just need to be more familiar and of course to learn about different command line. I wish I knew this before. 🙂

        Yes, a command line makes for a harder and steeper learning curve because there are not graphical clues leading you from one step to another. But once you learn the commands it actually makes things easier. And if you think using the command line directly is easy, wait until you script for administration - so easy to automate lots of systems at once. So powerful and so easy. Windows admins with their GUIs have an easy time at day one, but by day two they do twice as much work as their command line counterparts.

        I am counting this as 3 days since I started working with command not totally full time 🙂
        everyday I am learning new command 🙂

        1 Reply Last reply Reply Quote 1
        • JoyJ
          Joy
          last edited by Joy

          After installing everything My site is working I can access it using Lynx ( lynx is on the Server)
          but I cannot access the site using my Desktop.

          1 Reply Last reply Reply Quote 0
          • J
            jasonh
            last edited by

            CentOS comes with a firewall that blocks most traffic by default (everything except SSH and ICMP.) You need to allow HTTP through the firewall. Two ways of doing this:

            1. Run system-config-firewall, go Customize, but a "*" beside "WWW (HTTP)" in the list, then Close, then OK, then Yes

            2. Run these commands from the shell:

            iptables -A INPUT -p tcp --dport 80 -j ACCEPT
            service iptables save

            JoyJ 1 Reply Last reply Reply Quote 2
            • JoyJ
              Joy @jasonh
              last edited by

              @jasonh said:

              CentOS comes with a firewall that blocks most traffic by default (everything except SSH and ICMP.) You need to allow HTTP through the firewall. Two ways of doing this:

              1. Run system-config-firewall, go Customize, but a "*" beside "WWW (HTTP)" in the list, then Close, then OK, then Yes

              2. Run these commands from the shell:

              iptables -A INPUT -p tcp --dport 80 -j ACCEPT
              service iptables save

              Thank You. I did try that,but i cannot access my site .:(

              1 Reply Last reply Reply Quote 0
              • J
                jasonh
                last edited by

                Are you able to ping the server from your desktop?

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

                  @jasonh said:

                  Are you able to ping the server from your desktop?

                  She can see the site up now.

                  This is the URL: http://119.9.77.226/

                  AmbarishrhA 1 Reply Last reply Reply Quote 0
                  • AmbarishrhA
                    Ambarishrh @scottalanmiller
                    last edited by

                    @scottalanmiller said:

                    @jasonh said:

                    Are you able to ping the server from your desktop?

                    She can see the site up now.

                    This is the URL: http://119.9.77.226/

                    shows Error establishing a database connection.

                    DB credentials correct?

                    JoyJ 1 Reply Last reply Reply Quote 0
                    • T
                      technobabble
                      last edited by

                      I have found, incorrectly typing in the database name and database username is the culprit.

                      On my CentOS box with cPanel, database name is techno_name-of-database, database username is techno_admin.

                      1 Reply Last reply Reply Quote 0
                      • JoyJ
                        Joy
                        last edited by

                        Thank you for you replies i will my database again 🙂

                        1 Reply Last reply Reply Quote 0
                        • JoyJ
                          Joy @Ambarishrh
                          last edited by

                          @ambarishrh said:

                          @scottalanmiller said:

                          @jasonh said:

                          Are you able to ping the server from your desktop?

                          She can see the site up now.

                          This is the URL: http://119.9.77.226/

                          shows Error establishing a database connection.

                          DB credentials correct
                          I modified my my settings in "/etc/httpd/conf/httpd.conf" after that i restarted the Apache.and now its unable to start again.it says DAY-4.PNG

                          JoyJ 1 Reply Last reply Reply Quote 0
                          • JoyJ
                            Joy @Joy
                            last edited by

                            @Joyfano said:

                            @ambarishrh said:

                            @scottalanmiller said:

                            @jasonh said:

                            Are you able to ping the server from your desktop?

                            She can see the site up now.

                            This is the URL: http://119.9.77.226/

                            shows Error establishing a database connection.

                            DB credentials correct
                            I modified my my settings in "/etc/httpd/conf/httpd.conf" after that i restarted the Apache.and now its unable to start again.it says DAY-4.PNG

                            I just resolved this error. Will check again if my Apache is able to start

                            1 Reply Last reply Reply Quote 0
                            • JoyJ
                              Joy
                              last edited by

                              I am stuck again cannot access my localhost right now, If i am accessing it using lynx ( running in centos) it says unable to contact localhost.
                              Except modifying the WP-config.php i also modified my VirtualHost.
                              Still working on how to fix my localhost 😞

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

                                @Joyfano said:

                                I am stuck again cannot access my localhost right now, If i am accessing it using lynx ( running in centos) it says unable to contact localhost.
                                Except modifying the WP-config.php i also modified my VirtualHost.
                                Still working on how to fix my localhost 😞

                                Well, since you were able to access the site before you didn't need to touch the VirtualHost settings. So just put that back to the way that it was before.

                                JoyJ 1 Reply Last reply Reply Quote 0
                                • JoyJ
                                  Joy @scottalanmiller
                                  last edited by

                                  @scottalanmiller said:

                                  @Joyfano said:

                                  I am stuck again cannot access my localhost right now, If i am accessing it using lynx ( running in centos) it says unable to contact localhost.
                                  Except modifying the WP-config.php i also modified my VirtualHost.
                                  Still working on how to fix my localhost 😞

                                  Well, since you were able to access the site before you didn't need to touch the VirtualHost settings. So just put that back to the way that it was before.

                                  I now fixed and the syntax and also set the default VirtualHost. I still cannot access my Localhost using my Lynx (running in Centos server).

                                  scottalanmillerS AmbarishrhA 2 Replies Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @Joy
                                    last edited by

                                    @Joyfano said:

                                    @scottalanmiller said:

                                    @Joyfano said:

                                    I am stuck again cannot access my localhost right now, If i am accessing it using lynx ( running in centos) it says unable to contact localhost.
                                    Except modifying the WP-config.php i also modified my VirtualHost.
                                    Still working on how to fix my localhost 😞

                                    Well, since you were able to access the site before you didn't need to touch the VirtualHost settings. So just put that back to the way that it was before.

                                    I now fixed and the syntax and also set the default VirtualHost. I still cannot access my Localhost using my Lynx (running in Centos server).

                                    You returned the file to exactly how it was before you changed it?

                                    1 Reply Last reply Reply Quote 0
                                    • AmbarishrhA
                                      Ambarishrh @Joy
                                      last edited by

                                      @Joyfano Remember the golden rule!

                                      Always take backup of any config file before you make any changes, so in case something goes wrong, you can always rename the backup file to original and check. 🙂

                                      scottalanmillerS JoyJ 2 Replies Last reply Reply Quote 1
                                      • scottalanmillerS
                                        scottalanmiller @Ambarishrh
                                        last edited by

                                        @ambarishrh said:

                                        @Joyfano Remember the golden rule!

                                        Always take backup of any config file before you make any changes, so in case something goes wrong, you can always rename the backup file to original and check. 🙂

                                        Very good advice 🙂

                                        AmbarishrhA 1 Reply Last reply Reply Quote 0
                                        • AmbarishrhA
                                          Ambarishrh @scottalanmiller
                                          last edited by

                                          @scottalanmiller Thanks! I learned this the hard way! 🙂

                                          1 Reply Last reply Reply Quote 0
                                          • JoyJ
                                            Joy @Ambarishrh
                                            last edited by

                                            @ambarishrh said:

                                            @Joyfano Remember the golden rule!

                                            Always take backup of any config file before you make any changes, so in case something goes wrong, you can always rename the backup file to original and check. 🙂

                                            Thank you. i just learned that today. I edited my config file without any back up 😞

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