System Admin - Apache CentOS 7 Cpanel to CWP7 Conversion -Need perl script to run under server wide directory with suexec recompiled/configured

Închis Postat la acum 2 ani S-au achitat serviciile după ce au fost prestate
Închis S-au achitat serviciile după ce au fost prestate

PROJECT REQUIREMENTS

To reconfigure / recompile of necessary Apach 2.4 to work in the CWP7 control panel environment to behave the same as our current production server in Cpanel.

Must be able to have Server wide scripts work from a Server Wide Directory, while maintaining the User writing permission the same as the Cpanel Server.

Cpanel uses EasyApache4 to compile the apache with the correct modules through a user interface. CWP7 running on Centos does not have this ability.

I imagine it will be possible to create a matching configuration of the build to have the behaviors perform the same way.

1. Current apache has ability to list files with the ~account usage

ie;

[login to view URL]~felixhob/felixhobbyshop/images/

[login to view URL]~netstore/musicstore/images/

This has been accomplished by adding the cpanel configuration to:

## as a test for configuration matching CPanel by Adam 7/17

## This works exactly the same now as Cpanel

# Required cPanel security policy: disable userdir when mod_ruid2 or mpm_itk or mod_passenger are loaded

<IfModule userdir_module>

UserDir public_html

<IfModule ruid2_module>

UserDir disabled

</IfModule>

<IfModule mpm_itk.c>

UserDir disabled

</IfModule>

<IfModule mod_passenger.c>

UserDir disabled

</IfModule>

</IfModule>

And

2. Be able to run a system wide script under there Virtual Host User Id in a Hidden Server Wide Directory.

See working Cpanel script output from call to [login to view URL]

[login to view URL]

Currently on the new CWP server with suexec the perl script breaks:

[login to view URL]

/usr/local/apache/netstores/dwos-bin

from

/usr/local/cpanel/cgi-sys/netstores/data

ie: ls -tal

drwxr-xr-x 7 pos2net pos2net 4096 Jul 15 01:30 maudeboutique

drwxr-xr-x 8 felixhob felixhob 4096 Jul 15 01:29 felixhobbyshop

drwxr-xr-x 7 netstest netstest 4096 Jul 15 01:29 GrandBazar

notice each data directory has its unique user id ownership.

The current scripts run under a renamed script bin

/usr/local/cpanel/cgi-sys/netstores/dwos-bin

-r-xr-xr-x 1 root wheel 10337 Jul 13 08:00 [login to view URL]

so under directory that is hidden from users

/var/www/NetStores

Where each subdirectory is the entire Perl Application running System wide

and the 2 scripting directorys

/usr/local/cpanel/cgi-sys/netstores/dwos-bin

/usr/local/cpanel/cgi-sys/netstores/dwos-bin_test

Can be run under diferrent virtual hosts ids.

Currently under Cpanel Apache they user is root group wheel

3. Will not destroy CWP7 create new account, Add Server DNS/Apache configuration system.

Also if the apache needs to recompiled complete directions for me to administer in future. Could be new Virtual Host template structure

Problem

Server Wide Script Locations not Working

They can only work in a scripting directory under their own user id due to suexec configuration and suexec binary.

We have been using apache2 on Centos and cpanel for over 10 years.

On cpanel Centos Servers, there are system wide scripts located in

/usr/local/cpanel/cgi-sys/

We are able to place a directory of scripts and data in those directories, and run them system wide on any virtual host in the server using apache2.

Inside the cgi-sys directory are cgi scripts for cpanel that do redirections.

We are able to put our script aliases in those directories, and call them with a script alias in httpd.conf. ie: ScriptAlias /dwos-bin/ /usr/local/cpanel/cgi-sys/netstores/dwos-bin

Linux Apache CentOs Perl Shell Script

ID Proiect: #30895398

Detalii despre proiect

4 propuneri Proiect la distanță Activ acum 2 ani

4 freelanceri plasează o ofertă medie de 74$ pentru proiect

tanujchugh

Hi How are you! I am system admin. I will check the issue of the server and resolve the issues of server end as per your requirement. I have expertise in the relevant field of server management. I have 14 years of e Mai multe

$40 USD în 1 zi
(326 recenzii)
6.9
guillermorvw

Hello there, I can fix your apache module behaviour and put working your perl scripts very quick and totally painless. Please check my reviews about my past tasks on the site to verify the quality of the jobs done. : Mai multe

$55 USD în 3 zile
(17 recenzii)
4.0