Samurai Legend Posted March 14, 2022 Posted March 14, 2022 Hello, everyone! I hope all is well with you all. I have questions to ask: CentOS or Debian? Why? Why do I need it? I want to run WordPress websites & my game. Quote
Dayo Posted March 15, 2022 Posted March 15, 2022 I always have preferred CentOS but im now trying almalinix (pretty much CentOS) as CentOS is coming near to EOL 1 Quote
Samurai Legend Posted March 16, 2022 Author Posted March 16, 2022 Sounds like I have to do a bit more research before I buy a hosting. @Dayo thank you! Quote
Magictallguy Posted March 16, 2022 Posted March 16, 2022 Currently running AlmaLinux here for multiple purposes including the usual webserver setup. Beautiful OS, familiar CLI, no complaints! Quote
Dayo Posted March 16, 2022 Posted March 16, 2022 1 hour ago, Magictallguy said: Currently running AlmaLinux here for multiple purposes including the usual webserver setup. Beautiful OS, familiar CLI, no complaints! Yeah im liking it so far, im migrating some of our old centos 6*/7 servers over. * Internal IT tools with nothing important on. I.e. ticketing system/internal intranet forum etc ... Quote
Samurai Legend Posted March 23, 2022 Author Posted March 23, 2022 @Dayo @Magictallguy - Thank you guys for your opinions on both. I decided I shall use AlmaLinux. Is there any tutorials on how to secure SSH access, setup a website with free SSL? Basically something that will get me started on the right path! Quote
Dayo Posted March 23, 2022 Posted March 23, 2022 setting up SSH should be pretty easy by running systemctl enable sshd --now that should enable the SSD service and start it for you As for the the basics of setting up a web server the two most common setups are LAMP and LEMP LAMP is more popular but LEMP is more configurable and is useful for things like port forwarding/proxies I would read up on them both and choose acordanly, there are loads of tutorials online for both. As for setting up SSL you can just user certbot, again just google a hot to guide and they will explain how to do it if its LAMP or LEMP Quote
Samurai Legend Posted March 25, 2022 Author Posted March 25, 2022 I have a problem when I try enabling ssh keys. It always asks for the password? Been looking for a solution and I can't seem to find it @Dayo Quote
Dayo Posted March 25, 2022 Posted March 25, 2022 (edited) what are you using to connect to the server, putty? Edited March 25, 2022 by Dayo Quote
Samurai Legend Posted March 25, 2022 Author Posted March 25, 2022 @DayoTerminal on MacOS (Latest) @Dayo- After awhile, I finally got the SSH keys working, added a new user with sudo privileges, root login disabled, password disabled, using a different port. NGINX, PHP, MariaDB added. Connected my site and added SSL. Now I have a problem, when I go on a php page it just downloads and it doesn't read it? Any reason why? Could it be cause I don't have sites-available & sites-enabled folder? Within the nginx folder there's a folder called conf.d with the conf file of my site. Okay now, I have the php page working but the directory on /etc/nginx/conf.d/website.conf -> Doesn't display the correct directory? It directs to the default directory although I change it Quote
Shades Posted March 29, 2022 Posted March 29, 2022 I am using AlmaLinux, LEMP. I have installed WordPress, and when I change the permalinks to post-name from ID. When, I try updating the page it throws an error: Updating failed. The response is not a valid JSON response. I've been searching for a fix but there's nothing working for me. Have anyone have an idea of what might the problem be? Quote
Dayo Posted March 29, 2022 Posted March 29, 2022 have you included the wordpress nginx configuration file This should look something like this: /etc/nginx/sites-available/wordpress server { . . . location / { #try_files $uri $uri/ =404; try_files $uri $uri/ /index.php$is_args$args; } . . . } source: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-20-04 Quote
Samurai Legend Posted March 29, 2022 Author Posted March 29, 2022 I'm trying to set up my cross for my game. This what is on my crontab -e * * * * * /var/www/samuraiconflict/public_html/crons/minute.php?code=fdjk I always get this error - sudo service cron status Redirecting to /bin/systemctl status cron.service Unit cron.service could not be found. Quote
Dayo Posted April 6, 2022 Posted April 6, 2022 (edited) Yeah as @Magictallguy said you want to run sudo service crond status you also want to have the cron be something like * * * * * php /var/www/samuraiconflict/public_html/crons/minute.php?code=fdjk edit: In fact I'm not sure you can send parameters to the file using teh GET method as its not run via a server, you will have to send the password as an argument but the best way would be to move the cron out from public_html i.e. /var/www/samuraiconflict/crons/minute.php and then you can get rid of the auth check as it can only be accessed by your server Edited April 6, 2022 by Dayo Quote
Magictallguy Posted April 7, 2022 Posted April 7, 2022 On 4/6/2022 at 7:14 PM, Dayo said: In fact I'm not sure you can send parameters to the file using teh GET method as its not run via a server * * * * * php path/to/file code=thecode arg=wutever arg3=.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.