LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-18-2014, 12:42 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
LAMPP, Wordpress & Website


Hi:

Before I install LAMPP & Wordpress I have a few questions that I'm hoping you can answer.

After reading the documentation about LAMPP and Wordpress I found that Wordpress depends on having PHP and MySQL.

Do I need to build my website first and than install LAMPP?

Should I disallow root login remotely?

Some say not to allow root login from the videos I have watched.

Do I need to purchase a pc and configure it into a server or is the site that I'm going to build my website that provides hosting sufficient enough?

When you build a website for a sole proprietorship online business is it necessary to purchase a business account with the ISP that already provides you with service?

I read that some ISP will block you from running your own website if it gets a lot of hits.

I'd like to make my CentOS machine a production machine but don't know exactly where to start first.

Thanks in advance-
 
Old 11-18-2014, 12:55 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
LAMPP means Linux, Apache, Mysql, PHP, and PHPMyadmin if im not mistaken. Those are all requirements for Wordpress.

So you would need to install and configure the LAMP stack first.

You should always disallow root remotely, via SSH and Mysql. You should also enable the firewall, and install and configure Denyhosts.

You probably shouldn't bother trying to host with your own server anymore. You can get a DigitalOcean droplet for 5$,. including a Wordpress specific one with everything configured and ready to go.

Check it out, its a great beginner spot:

https://www.digitalocean.com/communi...h-digitalocean
 
Old 11-18-2014, 01:10 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by szboardstretcher View Post
LAMPP means Linux, Apache, Mysql, PHP, and PHPMyadmin if im not mistaken. Those are all requirements for Wordpress.

So you would need to install and configure the LAMP stack first.

You should always disallow root remotely, via SSH and Mysql. You should also enable the firewall, and install and configure Denyhosts.

You probably shouldn't bother trying to host with your own server anymore. You can get a DigitalOcean droplet for 5$,. including a Wordpress specific one with everything configured and ready to go.

Check it out, its a great beginner spot:

https://www.digitalocean.com/communi...h-digitalocean
I'll install LAMP when I have time this evening and let you know how it goes.

Thanks for the link. I found instruction for how to install Wordpress on CentOS 7.

Aside from Digital Ocean have you heard about Go Daddy being a good place to host a website?
 
Old 11-18-2014, 01:12 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
There are certainly plenty of alternatives. I have not however, ever heard anything good about Godaddy hosting. In fact, quite the opposite.
 
Old 11-18-2014, 02:19 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by szboardstretcher View Post
There are certainly plenty of alternatives. I have not however, ever heard anything good about Godaddy hosting. In fact, quite the opposite.
I look at other alternatives; thanks!
 
Old 11-18-2014, 07:51 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,358
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Quote:
I have not however, ever heard anything good about Godaddy hosting
I must speak: szboardstretcher, I use GoDaddy, and have had nothing but satisfactory service. They have served my little website for going on to over four years now. GoDaddy was recommended to me by another GoDaddy user whose opinion has proved trustworthy.

The couple of times I have needed to call tech support, the reps have been prompt, knowledgeable, courteous, and competent.

I can also speak highly of A Small Orange, which hosts a site I maintain, but A Small Orange is not a domain registrar.

Last edited by frankbell; 11-18-2014 at 07:54 PM.
 
1 members found this post helpful.
Old 11-18-2014, 08:03 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Installing mysql is not working for me the package is not available--

Code:
[root@localhost]# yum install mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: distro.ibiblio.org
 * epel: mirror.clarkson.edu
 * extras: mirror.cisp.com
 * nux-dextop: mirror.li.nux.ro
 * rpmforge: repoforge.mirror.constant.com
 * updates: bay.uchicago.edu

****No package mysql-server available.

[root@localhost bluecat]# mysql_secure_installation
bash: mysql_secure_installation: command not found...
I don't want to move on to the next yum cmd w/o finding out why mysql is not available.
Any clue why this is happening?
 
Old 11-18-2014, 08:28 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
https://www.digitalocean.com/communi...ql-on-centos-7
 
1 members found this post helpful.
Old 11-18-2014, 08:46 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by jefro View Post
Thanks! jefro-

That link setteled it for me because mariadb is installed--
Code:
Installed:
  mariadb.x86_64 1:5.5.40-1.el7_0
 
Old 11-18-2014, 10:02 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
PHP and http are installed-

Code:
yum install php
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: distro.ibiblio.org
 * epel: mirror.clarkson.edu
 * extras: mirror.cisp.com
 * nux-dextop: mirror.li.nux.ro
 * rpmforge: repoforge.mirror.constant.com
 * updates: bay.uchicago.edu
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.4.16-23.el7_0.3 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-23.el7_0.3 for package: php-5.4.16-23.el7_0.3.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.4.16-23.el7_0.3 for package: php-5.4.16-23.el7_0.3.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.16-23.el7_0.3 will be installed
---> Package php-common.x86_64 0:5.4.16-23.el7_0.3 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-23.el7_0.3.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch          Version                   Repository      Size
================================================================================
Installing:
 php               x86_64        5.4.16-23.el7_0.3         updates        1.3 M
Installing for dependencies:
 libzip            x86_64        0.10.1-8.el7              base            48 k
 php-cli           x86_64        5.4.16-23.el7_0.3         updates        2.7 M
 php-common        x86_64        5.4.16-23.el7_0.3         updates        561 k

Transaction Summary
================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 4.7 M
Installed size: 17 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): libzip-0.10.1-8.el7.x86_64.rpm                      |  48 kB   00:00     
(2/4): php-common-5.4.16-23.el7_0.3.x86_64.rpm             | 561 kB   00:05     
(3/4): php-5.4.16-23.el7_0.3.x86_64.rpm                    | 1.3 MB   00:08     
(4/4): php-cli-5.4.16-23.el7_0.3.x86_64.rpm                | 2.7 MB   00:13     
--------------------------------------------------------------------------------
Total                                              357 kB/s | 4.7 MB  00:13     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libzip-0.10.1-8.el7.x86_64                                   1/4 
  Installing : php-common-5.4.16-23.el7_0.3.x86_64                          2/4 
  Installing : php-cli-5.4.16-23.el7_0.3.x86_64                             3/4 
  Installing : php-5.4.16-23.el7_0.3.x86_64                                 4/4 
  Verifying  : php-cli-5.4.16-23.el7_0.3.x86_64                             1/4 
  Verifying  : php-common-5.4.16-23.el7_0.3.x86_64                          2/4 
  Verifying  : libzip-0.10.1-8.el7.x86_64                                   3/4 
  Verifying  : php-5.4.16-23.el7_0.3.x86_64                                 4/4 

Installed:
  php.x86_64 0:5.4.16-23.el7_0.3                                                

Dependency Installed:
  libzip.x86_64 0:0.10.1-8.el7             php-cli.x86_64 0:5.4.16-23.el7_0.3   
  php-common.x86_64 0:5.4.16-23.el7_0.3
 
Old 11-18-2014, 10:06 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Code:
[root@localhost]# yum install httpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: distro.ibiblio.org
 * epel: mirror.clarkson.edu
 * extras: mirror.cisp.com
 * nux-dextop: mirror.li.nux.ro
 * rpmforge: repoforge.mirror.constant.com
 * updates: bay.uchicago.edu
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-18.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.6-18.el7.centos for package: httpd-2.4.6-18.el7.centos.x86_64
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.4.6-18.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch         Version                     Repository     Size
================================================================================
Installing:
 httpd             x86_64       2.4.6-18.el7.centos         updates       2.7 M
Installing for dependencies:
 httpd-tools       x86_64       2.4.6-18.el7.centos         updates        77 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 2.8 M
Installed size: 9.5 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): httpd-tools-2.4.6-18.el7.centos.x86_64.rpm          |  77 kB   00:00     
(2/2): httpd-2.4.6-18.el7.centos.x86_64.rpm                | 2.7 MB   00:10     
--------------------------------------------------------------------------------
Total                                              277 kB/s | 2.8 MB  00:10     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : httpd-tools-2.4.6-18.el7.centos.x86_64                       1/2 
  Installing : httpd-2.4.6-18.el7.centos.x86_64                             2/2 
  Verifying  : httpd-tools-2.4.6-18.el7.centos.x86_64                       1/2 
  Verifying  : httpd-2.4.6-18.el7.centos.x86_64                             2/2 

Installed:
  httpd.x86_64 0:2.4.6-18.el7.centos                                            

Dependency Installed:
  httpd-tools.x86_64 0:2.4.6-18.el7.centos   

****
[root@localhost]# service httpd start
Redirecting to /bin/systemctl start  httpd.service
[root@localhost bluecat]# chkconfig --levels 3 httpd on service httpd start
Note: Forwarding request to 'systemctl enable httpd.service'.
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
[root@localhost]#
I'm not sure if service httpd start is the right cmd and I have to find out if php is working correctly.

To start mysql I would use the 'chkconfig --levels 3' cmd but CentOS 7 uses MariaDB instead of MySQL so I don't know if that changes how I start the server or not?

Is there a way to test if php is working?

Last edited by Ztcoracat; 11-18-2014 at 10:19 PM.
 
Old 11-19-2014, 01:56 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
After digging around I found the cmd to check and see if php is working--

Code:
[@localhost ~]$ service httpd status
Redirecting to /bin/systemctl status  httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: active (running) since Wed 2014-11-19 13:14:40 EST; 1h 38min ago
 Main PID: 1242 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─1242 /usr/sbin/httpd -DFOREGROUND
           ├─1534 /usr/sbin/httpd -DFOREGROUND
           ├─1535 /usr/sbin/httpd -DFOREGROUND
           ├─1536 /usr/sbin/httpd -DFOREGROUND
           ├─1537 /usr/sbin/httpd -DFOREGROUND
           └─1538 /usr/sbin/httpd -DFOREGROUND
Thanks everyone!
 
Old 11-19-2014, 02:00 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I also found the extra modules that might come in handy.

-php-mbstring
-php-gd (for graphics)
-php-odbc
-php-pear
-php-xml
and php-xmlrpc
 
Old 11-19-2014, 03:06 PM   #14
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Sounds like you are well on your way.
 
Old 11-19-2014, 03:11 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by jefro View Post
Sounds like you are well on your way.
Yup, sure am!

Off to find a domain and build my website:-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my WordPress website not shown Horus1 Linux - Server 6 06-28-2014 03:13 PM
LXer: Wordpress website targeted by hackers LXer Syndicated Linux News 0 04-15-2013 09:20 AM
[SOLVED] Apache2Triad & LAMPP fedix Linux - Software 2 10-25-2009 03:55 AM
[SOLVED] How to install LAMPP so it shows up in /opt/lampp anon091 Linux - Newbie 3 09-24-2009 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration