LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   LAMPP, Wordpress & Website (https://www.linuxquestions.org/questions/centos-111/lampp-wordpress-and-website-4175525788/)

Ztcoracat 11-18-2014 12:42 PM

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-

szboardstretcher 11-18-2014 12:55 PM

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

Ztcoracat 11-18-2014 01:10 PM

Quote:

Originally Posted by szboardstretcher (Post 5271509)
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?

szboardstretcher 11-18-2014 01:12 PM

There are certainly plenty of alternatives. I have not however, ever heard anything good about Godaddy hosting. In fact, quite the opposite.

Ztcoracat 11-18-2014 02:19 PM

Quote:

Originally Posted by szboardstretcher (Post 5271519)
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!

frankbell 11-18-2014 07:51 PM

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.

Ztcoracat 11-18-2014 08:03 PM

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?

jefro 11-18-2014 08:28 PM

https://www.digitalocean.com/communi...ql-on-centos-7

Ztcoracat 11-18-2014 08:46 PM

Quote:

Originally Posted by jefro (Post 5271689)

Thanks! jefro-

That link setteled it for me because mariadb is installed--
Code:

Installed:
  mariadb.x86_64 1:5.5.40-1.el7_0


Ztcoracat 11-18-2014 10:02 PM

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


Ztcoracat 11-18-2014 10:06 PM

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?

Ztcoracat 11-19-2014 01:56 PM

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!

Ztcoracat 11-19-2014 02:00 PM

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

jefro 11-19-2014 03:06 PM

Sounds like you are well on your way. :)

Ztcoracat 11-19-2014 03:11 PM

Quote:

Originally Posted by jefro (Post 5272086)
Sounds like you are well on your way. :)

Yup, sure am!

Off to find a domain and build my website:-


All times are GMT -5. The time now is 05:45 AM.