Author Topic: Wordpress for Linux  (Read 1214 times)

0 Members and 1 Guest are viewing this topic.

Offline Millie-may

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Wordpress for Linux
« on: May 14, 2013, 10:41:59 pm »
Hi

I'm trying to sort out a website and need to learn all I can as I'm a newbie to linux. I have looked online for info about installing using Terminal but do not seem to even
pass go... As soon as I type in the command 'sudo apt-get apache2' or 'apt-get wordpress' I get this:

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 
I have no idea what this means...

Also is it possible to use my PC as a server, if so what are the benefits??? or will I need to pay for webhosting???

I hope someone can shed some light on what's up!!!

Thanks

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13735
  • Karma: 340
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wordpress for Linux
« Reply #1 on: May 14, 2013, 10:58:51 pm »
OK, lots of different issues/questions here ..

Quote
E: Could not open lock file /var/lib/dpkg/lock

is usually caused by trying to install something from the command line whilst you have another package manager (or update manager) open .. you can only use one at a time, as the first one opened locks dpkg.

Quote
is it possible to use my PC as a server,

If you mean a webserver .. not really, well at least not without 2 permanent DNS servers pointing at it for name resolution.

Quote
or will I need to pay for webhosting

Yes .. well actually it COULD be done from your home, but it's very hard to do without a static external IP which most ISP's charge extra for.

Best bet is to get a host that will set up wordpess (or at least a compatible database) for you.

Another option would be to rent a Linux VPS (virtual personal/private server) and manually install the LAMP stack and wordpess on that .. this is usually a more expensive option, so it depends on your requirements.

--
« Last Edit: May 14, 2013, 11:02:19 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Millie-may

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Wordpress for Linux
« Reply #2 on: May 14, 2013, 11:18:20 pm »
Thanks Mark,
Quote

    E: Could not open lock file /var/lib/dpkg/lock


is usually caused by trying to install something from the command line whilst you have another package manager (or update manager) open .. you can only use one at a time, as the first one opened locks dpkg.

I am baffled.... Yep not difficult at the moment..! I only have Firefox open at the moment... How do I find out what other package manager or update manager is open in order to close it???





Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13735
  • Karma: 340
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wordpress for Linux
« Reply #3 on: May 14, 2013, 11:41:22 pm »
is update manager downloading updates in the background ?

Are you in Mint or Ubuntu ?

Probably the easiest way to be sure no other package managers or open is to reboot.

if you are 100% sure you haven't opened a package manager after rebooting, and you still get those errors .. run:
Code: [Select]
sudo mv -v /var/lib/apt/lists /var/lib/apt/lists.backup
then
Code: [Select]
sudo mkdir -p /var/lib/apt/lists/partial
then
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get upgrade

if those commands worked without error, you should be good to go ;)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Millie-may

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Wordpress for Linux
« Reply #4 on: May 15, 2013, 12:59:20 am »
Thanks, I rebooted and started ran the commands and this is what I got:-

Configuring ttf-mscorefonts-installer ├─

I managed to OK this and it ran through loads of stuff

and ended with
Processing triggers for update-notifier-common ...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe

it just then seemed to freeze and I had no option but to close the terminal...

Any ideas?


« Last Edit: May 15, 2013, 01:13:03 am by Millie-may »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13735
  • Karma: 340
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wordpress for Linux
« Reply #5 on: May 15, 2013, 01:07:25 am »
Use the tab key6 to select OK, then hit enter
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Millie-may

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Wordpress for Linux
« Reply #6 on: May 15, 2013, 01:19:10 am »
I'm using Mint 14 and re my last post I'm still stuck?

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13735
  • Karma: 340
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wordpress for Linux
« Reply #7 on: May 15, 2013, 01:23:04 am »
When ttf-mscorefonts wants you to select OK, use the "Tab" key to highlight the "OK", then hit the "Enter" key to accept the licence.

[EDIT]

If necessary, close the terminal and reinstall ttf-mscorefonts:
Code: [Select]
sudo apt-get install --reinstall ttf-mscorefonts

Be Aware - ttf-mscorefonts will NOT finish installing unless you accept the licence .. use the "Tab" key to selct "OK" then hit enter.

Sometimes it opens another window, that *might* be behind the terminal .. when it appears to stop/freeze .. try minimising the terminal and see if there's another window asking you to accept the licence.

--
« Last Edit: May 15, 2013, 01:32:03 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Millie-may

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Wordpress for Linux
« Reply #8 on: May 15, 2013, 04:32:54 pm »
Today's another day! and grrr....

Trying to sort out this... I wish I knew what all the code was doing but I don't have time to investigate... I learnt HTML once and that was fun and could see the results in no time!!!

Tried to install:- sudo apt-get install --reinstall ttf-mscorefonts
Now I get  'was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem'
I ran configure a and that seemed ok
 
I then tried the command sudo apt-get install --reinstall ttf-mscorefonts
Results

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ttf-mscorefonts
 
What do I need to do now? I feel like I'm going around in circles and it's probably because I'm clueless :)
 

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13735
  • Karma: 340
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wordpress for Linux
« Reply #9 on: May 15, 2013, 06:31:40 pm »
My mistake .. the package is called ttf-mscorefonts-installer .. so run:
Code: [Select]
sudo apt-get install ttf-mscorefonfts-installer
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Millie-may

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Wordpress for Linux
« Reply #10 on: May 15, 2013, 08:08:18 pm »
 ;D Yey... that's done it... thanks Mark. Now I just need to figure out the rest. I.e wordpress and apache2 or I came across filezilla today and wondered if it did the same as apache2?


Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13735
  • Karma: 340
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wordpress for Linux
« Reply #11 on: May 15, 2013, 08:16:52 pm »
What exactly are you trying to achieve .. apache and filezilla are completely different things .. ones a web server, and the other's an FTP client/server

--
« Last Edit: May 15, 2013, 08:31:44 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1509
  • Karma: 119
  • Gender: Male
    • View Profile
    • Awards
Re: Wordpress for Linux
« Reply #12 on: May 15, 2013, 08:24:33 pm »
Quote
I came across filezilla today and wondered if it did the same as apache2?

As Mark pointed out, those are two different purpose projects.
Apache is for serving up web content whilst Filezilla is for uploading that content onto the web server.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal