Wordpress and LAMP

10 views
Skip to first unread message

grimason

unread,
Jul 15, 2019, 4:43:41 AM7/15/19
to AuckLUG
Hi,
I have Linux Mint Mate Sylvia 64bit installed on a Asus Essentio Series Desk top.
I am attempting to install Wordpress under LAMP (Linux, Appache2, Mysql, Php)
I seam to have come to a grinding halt as from what I understand having read a guide in setting this up wp-site.confg is required, snag is I have tried creating this file based on what was given in the guide and found that I am unable to edit the file or paste a copy of the example into it without the first 5 letters getting cut off VirtualHost and thus it is not as below.
Is there some other way to get around this issue.
The guide states the following;
Create a new Apache configuration named wp-site.conf
sudo vi /etc/apache2/sites-available/wp-site.conf

<VirtualHost *:80>
ServerAdmin
DocumentRoot /var/www/html/wordpress/
ServerName Localhost
ServerAlias

<Directory /var/www/html/wordpress/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>

Errorlog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


I would like to be able to get this up and running so I can see if an existing website of mine will convert over or not.


Pieter De Wit

unread,
Jul 15, 2019, 6:00:15 AM7/15/19
to auc...@googlegroups.com
Move the file into sites-enabled ?

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "AuckLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aucklug+u...@googlegroups.com.
To post to this group, send email to auc...@googlegroups.com.
Visit this group at https://groups.google.com/group/aucklug.
To view this discussion on the web, visit https://groups.google.com/d/msgid/aucklug/d972eaa6-f179-4d26-95df-4b8c18f72e26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Graeme Gellatly

unread,
Jul 15, 2019, 6:22:27 AM7/15/19
to auc...@googlegroups.com
Hi,

Well it seems it is a VIm question masquerading as Apache config

press i before pasting to enable vi insert mode, or use nano/any other text editor if you aren't used to vi which it would seem you aren't. 

Also generally on Debian derived servers (I am not 100% sure for desktops, but personally do it anyway) if using vi you probably want vim-nox installed. 

Andrew Punnett

unread,
Jul 15, 2019, 4:24:39 PM7/15/19
to auc...@googlegroups.com
Hi,

It sounds like you’re having difficulties using the vi editor. I’d recommend that you use a different editor, such as nano or pico.

If you want to continue to use vi, then you need to press “i” just before you paste the contents of the file. Once you have pasted the contents you can type “:w<Enter>” to save the file.

Vi is a great editor once you get used to it, but it’s famously cruel to new users. Emacs sucks.

Cheers,

Andrew

On 15/07/2019, at 20:43, grimason <grim...@vodafone.co.nz> wrote:

Martin Kealey

unread,
Jul 18, 2019, 7:44:55 AM7/18/19
to auc...@googlegroups.com
Or use gvim, which opens its own edit window.

That window is mostly like xterm, but it also understands mouse-paste, and has a drop-down menu with paste, which if you're keen has a keyboard equivalent "*P ← (that starts with a literal double quote mark.)

Or start vim and use :gui <enter> to get to gvim.

Reply all
Reply to author
Forward
0 new messages