Wordpress on Mageia

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Wordpress on Mageia

Postby tdmsoares » Jul 6th, '16, 03:20

First of all, I am a newbie in Web development. I decided to try wordpress, I just downloaded on my computer. Reading the manual, it seems I have to setup a mysql database and a PHP service...
Looking in the web I found this website that tells that I can install Wordpress directly in Mageia from Control Center:

http://www.aliancatecnologia.com/conteudo/Faq_quare/things-you-need-to-do-to-install-wordpress/

But I looked in MCC and I didn't found any packages from wordpress...

And the install.php doesn't open in Firefox...

I found something about installing LAMP and MySQL, but Mageia if I'm not wrong uses MariaDB...

I'm very confused right now, should I install Apache (I think it is a must need), but can I install also MySQL? (this program has much more tutorials than MariaDB for a beginner as I am)

Is the task-lamp that I need to install?

Or is there any other way to install wordpress, or a tutorial about this topic using Mageia?

Thanks!
tdmsoares
 
Posts: 19
Joined: May 18th, '16, 06:19
Location: Sao Paulo, Brazil

Re: Wordpress on Mageia

Postby xboxboy » Jul 6th, '16, 06:08

I'll reply quickly, but we'll need more details.

Ok, so yes task-lamp is what you need first up. That will install apache, mariadb and php as needed for the lamp stack (that means that there is a functioning webserver running, and almost any web app you install will work). so either install task-lamp from MCC or from the terminal (you'll need to be root user, then just enter 'urmpi task-lamp').

Once that's done, I can't remember if you need to start apache (it's called httpd in mageia) or if it's done via the install. Easiest way is to just reboot if it's a computer that doesn't need 100% uptime.

Once you've rebooted you should be able to go to the browser and enter 'localhost' as the website address and you should see the 'it works' test page from apache.

Next you need to work out HOW you want to setup wordpress. You can install from the repos, but honestly it's better if you install wordpress directly, then when updates come through you wont run into problems.

Work out if you want to install manually or via mcc and we can guide from there.

FYI mariadb was forked from mysql, so everything pretty well applies from mysql tutorials.
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Wordpress on Mageia

Postby tdmsoares » Jul 7th, '16, 06:09

Thanks for answering, now searching a lot about this theme I learned a lot and spent a lot of time too :)
In fact, as a beginner in WordPress, I misjudged a wordpress.org and wordpress.com websites... Not knowing the wordpress.org needs LAMP to run, sent me in some kind of confusion...

Ok, so yes task-lamp is what you need first up. That will install apache, mariadb and php as needed for the lamp stack (that means that there is a functioning webserver running, and almost any web app you install will work). so either install task-lamp from MCC or from the terminal (you'll need to be root user, then just enter 'urmpi task-lamp').


I did this, and now I have my apache server working! Now I remembered one day I read something about XAMP (but it's for windows). I found strange the name LAMP, but now I know this name stands to Linux, Apache, [...]. More strange for me was the package task-lamp, but anyway it's working!

Once that's done, I can't remember if you need to start apache (it's called httpd in mageia) or if it's done via the install. Easiest way is to just reboot if it's a computer that doesn't need 100% uptime.

Once you've rebooted you should be able to go to the browser and enter 'localhost' as the website address and you should see the 'it works' test page from apache.


I end up rebooting my system before test Apache. I was struggling later to restart the service, trying
Code: Select all
httpd restart
, but I saw only a error message... Now I know the code is
Code: Select all
# service httpd restart


Next you need to work out HOW you want to setup wordpress. You can install from the repos, but honestly it's better if you install wordpress directly, then when updates come through you wont run into problems


I had to install wordpress downloading from wordpress.org. I didin't find the package in the Mageia Repos...

FYI mariadb was forked from mysql, so everything pretty well applies from mysql tutorials.


Yes! Learning more about mariadb, it seems it has no difference! Even calling the program I type
Code: Select all
$ mysql
and mariaDB starts...

Only one more question: is it recommended to keep my wordpress locally in my computer, or keep in a Virtual Machine? (I still have no host)
tdmsoares
 
Posts: 19
Joined: May 18th, '16, 06:19
Location: Sao Paulo, Brazil

Re: Wordpress on Mageia

Postby xboxboy » Jul 7th, '16, 11:15

Well done! Good job.

It's really a personal preference, and depends on the usage. That's the trouble/beauty of linux, there's always more than one way of doing things :)

For myself I have developed the website locally, I then have two scripts that I call after every time I modify my website. The first backs up the wordpress files/folders in /var/www/......, and it also performs a mariadb dump (that effectively backs up the website, for a CMS like wordpress you need to back up the website files AND the database).

The second script then copies the backups to an external drive. Once this is done all I need to do is upload the wordpress files and the database to my web host and it's live on the internet. I chose to develop locally after serious hacking issues.

But now after having my machine in for warranty and having to do a clean install, I realise I should have had a VM for development so I could just take a snapshot, then reinstall when/if I need to.

It really depends on how you want to do it: Just remember to backup the wordpress files AND the DB and you'll be fine.
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Wordpress on Mageia

Postby petedan10 » Jul 7th, '16, 13:58

You can go to bitnami and apachefriends and download the stack you need (not only wordpress but pretty much any popular script). Follow the easy directions and you are done.

Concerning the VM I wonder what would be ideal as a guest. If you wish a graphical environment, I believe Mageia is well supported and less resource hungry than other alternatives as mentioned. If you wish a minimal text only installation, I wonder if this can be done with Mageia.
petedan10
 
Posts: 69
Joined: Jun 27th, '15, 10:23

Re: Wordpress on Mageia

Postby xboxboy » Jul 7th, '16, 14:13

xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Wordpress on Mageia

Postby petedan10 » Jul 7th, '16, 16:30

Thanks, I hadn't thought about that.
petedan10
 
Posts: 69
Joined: Jun 27th, '15, 10:23

Re: Wordpress on Mageia

Postby tdmsoares » Jul 11th, '16, 01:24

xboxboy wrote:Well done! Good job.

It's really a personal preference, and depends on the usage. That's the trouble/beauty of linux, there's always more than one way of doing things :)

For myself I have developed the website locally, I then have two scripts that I call after every time I modify my website. The first backs up the wordpress files/folders in /var/www/......, and it also performs a mariadb dump (that effectively backs up the website, for a CMS like wordpress you need to back up the website files AND the database).

The second script then copies the backups to an external drive. Once this is done all I need to do is upload the wordpress files and the database to my web host and it's live on the internet. I chose to develop locally after serious hacking issues.

But now after having my machine in for warranty and having to do a clean install, I realise I should have had a VM for development so I could just take a snapshot, then reinstall when/if I need to.

It really depends on how you want to do it: Just remember to backup the wordpress files AND the DB and you'll be fine.


I liked the idea to use scripts for backing up wordpress and mariadb: running them in a certain period of time and we'll never worry about losing times of hard working...
Usually, I'm focused in a project and I end up only working in that project but so many times I forget to look at the backup part... Maybe doing the scripts and running with cron it's a good idea to only focus in the job and not trust only the luck...
Just for curiosity's sake: you mentioned that you backed up your data to an external drive and now you have you PC fixing and if you have had a VM, you'd be fine now. IMHO if you don't have another computer, even if you had a VM your job would be stopped, and if you have the data in a external data, you can restore your data if no problems. What world be the advantage to have a VM in this case?

petedan10 wrote:You can go to bitnami and apachefriends and download the stack you need (not only wordpress but pretty much any popular script). Follow the easy directions and you are done.

Concerning the VM I wonder what would be ideal as a guest. If you wish a graphical environment, I believe Mageia is well supported and less resource hungry than other alternatives as mentioned. If you wish a minimal text only installation, I wonder if this can be done with Mageia.


What is the difference of bitnami/apache friends related to lamp?
I searched in internet and I found a lot of pages talking about bitnami to mac... Both of them I didn't find in the repos...
tdmsoares
 
Posts: 19
Joined: May 18th, '16, 06:19
Location: Sao Paulo, Brazil

Re: Wordpress on Mageia

Postby petedan10 » Jul 11th, '16, 05:01

If you want to install some script like wordpress, you can download the easy installer from https://bitnami.com/stacks where almost any major script is available, it works well with minimal configuration with everything in just one package. If you already have the basic servers, you can download additional modules from https://www.apachefriends.org/add-ons.html

The difference is that everything gets installed at once and ready to go. I don't know how easy would be to do some advanced custom configuration and you don't go through the repos with that route, but if you use them in a VM it may not matter much.
petedan10
 
Posts: 69
Joined: Jun 27th, '15, 10:23

Re: Wordpress on Mageia

Postby xboxboy » Jul 11th, '16, 06:04

The beauty of running it in a VM is that a snapshot captures all the little configurations made: To the webserver, to the hostnames etc etc. So having multiple websites means having to mess around a little bit with all that in a fresh install, vs. a vm snapshot.

You're right in that having a backup I can restore where ever I like, but a vm just makes it faster and easier.
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Wordpress on Mageia

Postby tdmsoares » Jul 18th, '16, 00:54

xboxboy wrote:The beauty of running it in a VM is that a snapshot captures all the little configurations made: To the webserver, to the hostnames etc etc. So having multiple websites means having to mess around a little bit with all that in a fresh install, vs. a vm snapshot.

You're right in that having a backup I can restore where ever I like, but a vm just makes it faster and easier.


Yeah, you convinced me: I'll move my server from localhost to a VM and in this case I just have to worry with my VM files... I think it's more practical and easy :idea:

petedan10 wrote:If you want to install some script like wordpress, you can download the easy installer from https://bitnami.com/stacks where almost any major script is available, it works well with minimal configuration with everything in just one package. If you already have the basic servers, you can download additional modules from https://www.apachefriends.org/add-ons.html

The difference is that everything gets installed at once and ready to go. I don't know how easy would be to do some advanced custom configuration and you don't go through the repos with that route, but if you use them in a VM it may not matter much.


Thank you man! I just saved these links in my Bookmarks :D
tdmsoares
 
Posts: 19
Joined: May 18th, '16, 06:19
Location: Sao Paulo, Brazil


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest