IssueLEMP Stack Lite Ubuntu 32 v2: PHP-FPM (Source)
-
Hi all.
I running this stack script in my linode:
http://vpsbible.com/vps-setup-guides/stackscripts/lemp-stack-lite-ubuntu-32bit-php-fpm/
but after server reboot I cannot connect via SSH anymore. I entered the user and port information as suggested and it doesn't work.
My linode runs Ubuntu 10.04 LTS
When trying to log on with the new user after entering the pwd it says access denied. And I checked tens of times the pwd is correct.
Thanks in advance for your help!
Posted 1 year ago # -
Hey Martin,
Login with your Linode SSH credentials.
It's under "Lish via SSH"
I'm betting the user did not get added correctly. Here's what I did.
1. Did a "passwd username" - to see if it was created. If not exists then it was created in group (don't know why).
2. Do a "delgroup username" to delete the group.
3. Manually add the user: "adduser username"...follow instructions prompts.
4. Reboot or do a "sudo /etc/init.d/ssh restart
5. Logout/login with new username
Note: Use whatever parameters you did during installation. Port: 1245, username, etc..
Hope that helps.
- Anthony
Posted 1 year ago # -
Thanks Anthony. I'll try that and let you know.
Regards.Martin
Posted 1 year ago # -
Did it work?
Posted 12 months ago # -
Hi,
I am having the same issue. Used the stack script above about 3 months ago without an issue so am not sure if its been updated.
Rebuilt the server a few times to check I was mis typing etc however I cant connect onto the SSH with the root (should be disabled anyway) or the new user/password.
Is there an error with the user part:
#inc_scriptUserAdd
# Add a user, its group, create user /home directory and provide root privileges
useradd -s /bin/bash -m -d /home/$USER --user-group $USER
touch pass.txt
chmod 600 pass.txt
echo $PASSWORD > pass.txt
aptitude install -y makepasswd
ph=$(makepasswd --clearfrom=pass.txt --crypt-md5 |awk '{print $2}')
usermod -p $ph $USER
cp /etc/sudoers /etc/sudoers.tmp
chmod 0640 /etc/sudoers.tmp
echo "$USER ALL=(ALL) ALL" >> /etc/sudoers.tmp
chmod 0440 /etc/sudoers.tmp
mv /etc/sudoers.tmp /etc/sudoers
rm pass.txtRunning on ubuntu 10.0.4 LTS.
Thanks for help
Posted 11 months ago # -
Fix: Reduce the password length down...had 14chars taken it down to below 12 and it was fine
Posted 11 months ago # -
hello... i ran the script as well same version of ubuntu... however i am not using linode. i am using hosing fuze. about all their panel allows is change root password, reboot, shut down, restart and resistall a new linux installation.
Posted 11 months ago # -
btw: here is a view of putty... port 22.. and two the ip... http://screencast.com/t/mjMfteuway
Error:
Putty Fatal Error
Network Error: Connection RefusedPosted 11 months ago # -
wiped disk and reinstalled from scratch... changing a couple settings and changing the port and such...
this is some of what came up on my screen
'
n -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I svent/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
-o objs/src/http/modules/ngx_http_upstream_ip_hash_module.o
src/http/modules/ngx_http_upstream_ip_hash_module.c
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-funn -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I svent/modules -I src/os/unix -I objs \
-o objs/ngx_modules.o \
objs/ngx_modules.c
gcc -o objs/nginx \
objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
objs/src/core/ngx_array.o \
objs/src/core/ngx_list.o \
objs/src/core/ngx_hash.o \
objs/src/core/ngx_buf.o \
objs/src/core/ngx_queue.o \
objs/src/core/ngx_output_chain.o \
objs/src/core/ngx_string.o \
objs/src/core/ngx_parse.o \
objs/src/core/ngx_inet.o \
objs/src/core/ngx_file.o \
objs/src/core/ngx_crc32.o \
objs/src/core/ngx_murmurhash.o \
objs/src/core/ngx_md5.o \
objs/src/core/ngx_rbtree.o \
objs/src/core/ngx_radix_tree.o \
objs/src/core/ngx_slab.o \
objs/src/core/ngx_times.o \
objs/src/core/ngx_shmtx.o \
objs/src/core/ngx_connection.o \
objs/src/core/ngx_cycle.o \
objs/src/core/ngx_spinlock.o \
objs/src/core/ngx_cpuinfo.o \
objs/src/core/ngx_conf_file.o \
objs/src/core/ngx_resolver.o \
objs/src/core/ngx_open_file_cache.o \
objs/src/core/ngx_crypt.o \
objs/src/event/ngx_event.o \
objs/src/event/ngx_event_timer.o \
objs/src/event/ngx_event_posted.o \
objs/src/event/ngx_event_busy_lock.o \
objs/src/event/ngx_event_accept.o \
objs/src/event/ngx_event_connect.o \
objs/src/event/ngx_event_pipe.o \
objs/src/os/unix/ngx_time.o \
objs/src/os/unix/ngx_errno.o \
objs/src/os/unix/ngx_alloc.o \
objs/src/os/unix/ngx_files.o \
objs/src/os/unix/ngx_socket.o \
objs/src/os/unix/ngx_recv.o \
objs/src/os/unix/ngx_readv_chain.o \
objs/src/os/unix/ngx_udp_recv.o \
objs/src/os/unix/ngx_send.o \
objs/src/os/unix/ngx_writev_chain.o \
objs/src/os/unix/ngx_channel.o \
objs/src/os/unix/ngx_shmem.o \
objs/src/os/unix/ngx_process.o \
objs/src/os/unix/ngx_daemon.o \
objs/src/os/unix/ngx_setproctitle.o \
objs/src/os/unix/ngx_posix_init.o \
objs/src/os/unix/ngx_user.o \
objs/src/os/unix/ngx_process_cycle.o \
objs/src/os/unix/ngx_linux_init.o \
objs/src/event/modules/ngx_epoll_module.o \
objs/src/os/unix/ngx_linux_sendfile_chain.o \
objs/src/core/ngx_regex.o \
objs/src/http/ngx_http.o \
objs/src/http/ngx_http_core_module.o \
objs/src/http/ngx_http_special_response.o \
objs/src/http/ngx_http_request.o \
objs/src/http/ngx_http_parse.o \
objs/src/http/ngx_http_header_filter_module.o \
objs/src/http/ngx_http_write_filter_module.o \
objs/src/http/ngx_http_copy_filter_module.o \
objs/src/http/modules/ngx_http_log_module.o \
objs/src/http/ngx_http_request_body.o \
objs/src/http/ngx_http_variables.o \
objs/src/http/ngx_http_script.o \
objs/src/http/ngx_http_upstream.o \
objs/src/http/ngx_http_upstream_round_robin.o \
objs/src/http/ngx_http_parse_time.o \
objs/src/http/modules/ngx_http_static_module.o \
objs/src/http/modules/ngx_http_index_module.o \
objs/src/http/modules/ngx_http_chunked_filter_module.o \
objs/src/http/modules/ngx_http_range_filter_module.o \
objs/src/http/modules/ngx_http_headers_filter_module.o \
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
objs/src/http/ngx_http_busy_lock.o \
objs/src/http/ngx_http_file_cache.o \
objs/src/http/modules/ngx_http_gzip_filter_module.o \
objs/src/http/ngx_http_postpone_filter_module.o \
objs/src/http/modules/ngx_http_ssi_filter_module.o \
objs/src/http/modules/ngx_http_charset_filter_module.o \
objs/src/http/modules/ngx_http_userid_filter_module.o \
objs/src/http/modules/ngx_http_autoindex_module.o \
objs/src/http/modules/ngx_http_auth_basic_module.o \
objs/src/http/modules/ngx_http_access_module.o \
objs/src/http/modules/ngx_http_limit_zone_module.o \
objs/src/http/modules/ngx_http_limit_req_module.o \
objs/src/http/modules/ngx_http_geo_module.o \
objs/src/http/modules/ngx_http_map_module.o \
objs/src/http/modules/ngx_http_split_clients_module.o \
objs/src/http/modules/ngx_http_referer_module.o \
objs/src/http/modules/ngx_http_rewrite_module.o \
objs/src/http/modules/ngx_http_proxy_module.o \
objs/src/http/modules/ngx_http_fastcgi_module.o \
objs/src/http/modules/ngx_http_uwsgi_module.o \
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/ngx_modules.o \
-lpthread -lcrypt -lpcre -lcrypto -lcrypto -lz
make[1]: Leaving directory `/usr/local/src/nginx-1.0.4'
make -f objs/Makefile manpage
make[1]: Entering directory `/usr/local/src/nginx-1.0.4'
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
< man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/usr/local/src/nginx-1.0.4'
make -f objs/Makefile install
make[1]: Entering directory `/usr/local/src/nginx-1.0.4'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local' || mkdir -p '/usr/local'
test ! -f '/usr/local/sbin' || mv '/usr/local/sbin' /usr/local/sbin.old'
cp objs/nginx '/usr/local/sbin'
test -d '/usr/local/nginx/conf' || mkdir -p '/usr/local/nginnf'
cp conf/koi-win '/usr/local/nginx/conf'
cp conf/koi-utf '/usr/local/nginx/conf'
cp conf/win-utf '/usr/local/nginx/conf'
test -f '/usr/local/nginx/conf/mime.types' || cp conf/mime.typeusr/local/nginx/conf'
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
test -f '/usr/local/nginx/conf/fastcgi_params' || cp conf/fastcgi_ps '/usr/local/nginx/conf'
cp conf/fastcgi_params '/usr/local/nginx/conf/fastcgi_params.defaul
test -f '/usr/local/nginx/conf/fastcgi.conf' || cp conf/fastcgi.c'/usr/local/nginx/conf'
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/nginx/conf/uwsgi_params' || cp conf/uwsgi_par'/usr/local/nginx/conf'
cp conf/uwsgi_params '/usr/local/nginx/conf/uwsgi_params.default'
test -f '/usr/local/nginx/conf/scgi_params' || cp conf/scgi_para/usr/local/nginx/conf'
cp conf/scgi_params '/usr/local/nginx/conf/scgi_params.default'
test -f '/usr/local/nginx/conf/nginx.conf' || cp conf/nginx.conusr/local/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/ngings'
test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/nginx/l
test -d '/usr/local/nginx/html' || cp -r html '/usr/local/ng
test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/nginx/l
make[1]: Leaving directory `/usr/local/src/nginx-1.0.4'
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
'Posted 11 months ago # -
btw: I just relized. I can ssl to the console through the hosting panel. So if there is away to get access again to root ssh directly to the machine and to fix any issues i could do that with out starting over.
Is there any way to debug what is wrong or working?
Posted 11 months ago # -
tried to start nginx... root@testing /: nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()i have 7 ip addresses available to me and plenty of domains. i would assume there is an issues with bind. i have no idea how to use bind. would anyone be able to sugest commands for bind or a direction i should be taking?
Posted 11 months ago # -
not sure if no reply is because I started this someone elses thread. i will assume that is the case. either way i ended up paying someone on fiverr.com to help me out a bit. one problem i ahve with vpsbible is they really seem to be optimized for linode which i don't have.
Posted 11 months ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
