Installing nginx on CPanel + ClouldLinux Server RemoteIP module not found at




cp: cannot create regular file `/var/cpanel/apps/nginxcp.conf’: No such file or directory
[root@server]# ./nginxinstaller install
/usr/local/src/publicnginx
Welcome to the Nginx Admin installer……Starting Install
Please Wait …….
Generating vhosts…
Installing WHM interface…
cp: cannot create regular file `/var/cpanel/apps/nginxcp.conf’: No such file or directory
Installing mod_remoteip…
RemoteIP module not found at: /home/cpeasyapache/src/httpd-2.4/modules/metadata
[root@server]#
Solution :
You get the above error because of a missing folder, but it is not easy to find out.
mkdir -p /home/cpeasyapache/src/httpd-2.4/modules/metadata
Note :: In the above command replace “2.4” with the apache version you are using.
Now here is the output when the installation is ran again.

[root@server]# ./nginxinstaller install
/usr/local/src/publicnginx
Welcome to the Nginx Admin installer......Starting Install
Please Wait .......
Generating vhosts...
Installing WHM interface...
Installing mod_remoteip...
Updating cPanel Configuration
Reading Apache Configuration
updating Apache configuration
cp: cannot stat `/var/cpanel/templates/apache2/vhost.default': No such file or directory
cp: cannot stat `/var/cpanel/templates/apache2/ssl_vhost.default': No such file or directory
sed: can't read /var/cpanel/templates/apache2/vhost.local: No such file or directory
sed: can't read /var/cpanel/templates/apache2/ssl_vhost.local: No such file or directory
****************************************************
* Installation Complete *
*run /etc/init.d/httpd restart to start Nginx Admin*
****************************************************

Post a Comment

0 Comments