Working with EE and Shell

Status
Not open for further replies.

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121
Definitely a newbie question. As this was Jail related I wasn't sure where to post. Admin please move if required.

I am trying to install wordpress in a jail. I have a great guide. The issue I am having is when I paste the code from the guide into EE I get ONE LONG line of code. Should I try and install another editor (Nano) ?
FreeNAS022.jpg

gets pasted as;
one long line with added special characters...ughh
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Are you using a proper ssh client or the web console?

Are you sure it isn't the guide's formatting that is messed up? Sometimes those plugins people use on their websites to display code can render that same code useless when trying to copy it.
 

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121
Are you using a proper ssh client or the web console?

Are you sure it isn't the guide's formatting that is messed up? Sometimes those plugins people use on their websites to display code can render that same code useless when trying to copy it.

I am using the shell from the jail web console. Any idea's what to try...I am half way through the guide.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Use a real shell/ssh client. I am astonished at how many people continue to use that crap web console.
 

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121
Use a real shell/ssh client. I am astonished at how many people continue to use that crap web console.
Ok..Lesson learned
Logged in with Putty to root , jls shows my jails. I can't find the command to change to that jail (6)
 

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121
'jexec <idofjail> tcsh'
Ok, I figured out and used csh. Is that Ok ?

Still getting odd charters
Copy this
user www;
### Change the number of workers to the same number of cores your server has
worker_processes 8;

pid /var/run/nginx.pid;

events {
worker_connections 512;
}

http {
include mime.types;
default_type application/octet-stream;
log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” ‘
‘”$http_user_agent” “$http_x_forwarded_for”‘;


Looks like
user www;
### Change the number of workers to the same number of cores your server has
worker_processes 8;

pid /var/run/nginx.pid;

events {
worker_connections 512;
}

http {
include mime.types;
default_type application/octet-stream;
log_format main ▒~@~X$remote_addr ▒~@~S $remote_user [$time_local] ▒~@~\$request▒~@~] ▒~@~X

▒~@~X▒~@~]$http_user_agent▒~@~] ▒~@~\$http_x_forwarded_for▒~@~]▒~@~X;

EE settings are;
FreeNAS023.jpg

Is it time to start drinking yet ??
Jeff
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
What it solved for me was getting all the details in place, repeatably. While WordPress is indeed 'merely a php application', in practice I found it much easier to get running properly with all supporting PHP and Apache modules in Linux than in FreeBSD. This is certainly in large part due to my significantly greater comfort level with Linux. My Google-fu also works much better with Linux than with FreeBSD when I get stuck. Perhaps the OP is also more familiar with Linux.
 

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121
so it is one line that is messing up? just type it in
Nope...all through the script . It paste find into notepad...it changes the ' and " into odd charters (~@~X)
 

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121
What it solved for me was getting all the details in place, repeatably. While WordPress is indeed 'merely a php application', in practice I found it much easier to get running properly with all supporting PHP and Apache modules in Linux than in FreeBSD. This is certainly in large part due to my significantly greater comfort level with Linux. My Google-fu also works much better with Linux than with FreeBSD when I get stuck. Perhaps the OP is also more familiar with Linux.
Hey Robert...Newbie to it all
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
Are you new to setting up WordPress too? If so, and if it's for LAN-only, and if you decide to go with a Linux VM, you can try my guide.
 

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121
Try nano then. I've only used ee a few times for basic editing. I use nano for everything else.
How do I install Nano, google has it changed in 9.X ...I will keep searching and try and get Nano installed. I think SSH with putty and Nano will hopefully cure my issues and be a good format to use moving forward.
Pirateghost...do you have a tip jar? I really appreciate the effort
 

Jeff Lamer

Contributor
Joined
Nov 17, 2015
Messages
121

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
How do I install Nano, google has it changed in 9.X ...I will keep searching and try and get Nano installed. I think SSH with putty and Nano will hopefully cure my issues and be a good format to use moving forward.
Pirateghost...do you have a tip jar? I really appreciate the effort
pkg install nano
 
Status
Not open for further replies.
Top