Jump to content
MakeWebGames

Recommended Posts

Posted
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 ... 

Posted

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

Posted

@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

Posted

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?

Posted

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.

Posted (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 by Dayo
Posted
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=..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...