use Nginx insted of Apache?

Coder.co.il

Verified User
Joined
Jun 2, 2014
Messages
9
Hello guys,

I wnat to use Nginx insted of Apache. there is some easy wey to do this?
The custombuild have this function?
Thanks, Yoav M.
 
You need CustomBuild 2.0 for that, then just do:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set webserver nginx
./build set mod_ruid2 no
./build set php1_mode php-fpm
./build nginx
./build php n

You may use CustomBuild 2.0 plugin to do that too (for that I'd recommend DA 1.45.3 RC1 or greater). Good luck! :)
 
how to reset?

Hello, i want to reset it and get Apache back.
how to do this?
thanks a lot :)
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set webserver apache
./build set mod_ruid2 yes
./build set php1_mode mod_php
./build apache
./build php n
 
If you don't have a directadmin powered server then you won't find instructions here. If you do have directadmin, then follow instructions already posted here in post #2
 
Commands from the guide has nothing to do with SSHd. So if sshd does not start, then the reasons should be searched in logs. Check system logs in Directadmin; and you probably have syntax error in /etc/ssh/sshd_config (you may post it here).
 
error

error

UsePAM yes
PasswordAuthentication yesAllowUsers root
AllowUsers admin

solution

UsePAM yes
PasswordAuthentication yes
AllowUsers root
AllowUsers admin

thanks
 
Back
Top