Here are the instructions for installing web://cp on RedHat 9 as provided by ScottE:


Conventions used here:
It is impled that you hit the enter key after given an instruction to type.
Apostrophes/Parentheses are in place to easily identify what is to be entered and they are to be omitted at the beginning and ending of what is to be typed and also if there is one in the middle of a command, include it.

--IMPORTANT--
If you have previously attempted to installl webcp using the install instructions contained in the source pkg. you will want to be certain to remove/uninstall all things related to previous install before proceeding with this set of instructions, you will need to do the following:

a) Remove webcp RPMS just to be sure.
WARNING: Be very careful here. No spaces between / and directory name with the rm command or you'll be re-installing your distro. I recommend copying and pasting instructions that follow. Follow the conventions discussed previously.
i. type: 'rpm -e webcp'
ii. type: 'rm -rf /usr/src/redhat/RPMS/noarch/webcp*' SEE WARNING above
iii. type: 'rm -rf /usr/src/redhat/SRPMS/webcp*' SEE WARNING above

b) Remove residual directory
i. type: 'rm -rf /home/webcp' SEE WARNING above

c) Remove /var/log/webcp
i. type: 'rm -rf /var/log/webcp' SEE WARNING above

d) Remove the webcp mysql database, (i.e. DROP DATABASE webcp within mysql.)
If it doesn't exist, just ignore this.

e) Remove any users or groups that were created for webcp. i.e. Web://cp creates a number of accounts on install. Usually webcp creates users: webcp and admin, and groups: webcp and g###########, where the # represents numbers following g. Delete these users and groups. If users and groups don't exist, just ignore this.

WEBCP Install Instructions: PHP portion
If you Hope this gets you going:

1.) Make sure you have php installed with the following modules:
PHP Modules
yp
xml
wddx
sysvshm
sysvsem
standard
sockets
shmop
session
pspell
posix
pcre
pcntl
openssl
ncurses
iconv
gmp
gettext
gd
ftp
exif
domxml
dio
dbx
dba
curl
ctype
calendar
bz2
bcmath
zlib
imap
ldap
mysql
odbc
pgsql
snmp

Zend Modules
pcntl

You can check by typing: 'php -m'

If php is installed with modules listed above you can skip to instruction number 6.
Don't cheat here. You'll be sorry you did.

2. If you don't have the correct modules, Download PHP source RPM and Create PHP Binaries
a) I recommend you download php src rpm from RH via command line:
b) type: "wget 'ftp://ftp.redhat.com/pub/redhat/linux/9/en/os/i386/SRPMS/php-4.2.2-17.src.rpm" or search in google for php-4.2.2-17.src.rpm and download it from a mirror if this link doesn't work.
c) Make sure you are root
d) type: 'su -'
e) enter root's password and hit enter
f) type: 'ls' to make sure it is there
g) type: 'rpm -Uvh php-4.2.2-17.src.rpm'


3. Edit php.spec file:
a) type 'cd /usr/src/redhat/SPECS'
b) edit php.spec w/ your favorite editor (I used pico)
c) So type: 'pico php.spec'
d) page down until you get to:
# Build standalone /usr/bin/php
pushd build-cgi
build --enable-force-cgi-redirect
popd

# Build Apache module
pushd build-apache
build --with-apxs2=%{_sbindir}/apxs
popd
e) now change the line-
build --enable-force-cgi-redirect
-to-
build --enable-force-cgi-redirect \
--enable-posix \
--enable-pcntl
f) save your file, in pico, hit the ctrl-x keys simultaneously then type: 'y' to save changes and hit enter.

4. Now build the binary rpm with the php.spec file
a) type: 'rpmbuild -bb php.spec'

It'll take awhile to build the RPM.
Take a break and come back in 20 minutes and see how it's doing.

5. Alright time to install the install the binary.
a) Issue the command 'rpm -Uvh --force /usr/src/redhat/RPMS/i386/php*'
b) Take another little break. You've earned it. When you come back PHP will be installed.

On to bigger and better things like web://cp
WEBCP Install Instructions:

6. Download latest version of the daily web://cp CVS build at
a) http://webcp.can-host.com (link says here followed by a long number in the 3rd paragraph near the top of the page and not the CVS tree)
b) rename the file to webcp-0.5.2.tar.gz

7. Build web://cp rpm
a) navigate to the folder webcp-0.5.2.tar.gz is in
b) type 'rpmbuild -ta webcp-0.5.2.tar.gz'

8. Install web://cp rpm
a) type: 'cd /usr/src/redhat/RPMS/noarch'
b) type: 'rpm -Uvh webcp-0.5.2-1.noarch.rpm' and hit enter.

9. Now open your favorite browser type: 'http://localhost:81' in location bar and hit enter

10. You should now be at the web://cp setup script page
a) You'll have two sections to fill out here, Database Configuration and Server Configuration
b) I recommend leaving the Database Configuration to its defaults including the blank password.
c) In Server Configuration, if your DNS is already configured and resolving correctly and you are ready to allow users access via the internet, you can enter your domain name in the Server Domain Field, otherwise enter your IP address.
d) For admin e-mail enter something like admin@domain.com where domain is your top-level domain
e) Leave the OS alone, and the default language too if you want english.
f) Enter whatever you want in the secret key field. It can be anything.
g) Click the submit form button.

11. At this point, you'll be greeted with another form to fill out.
a) The first section on this page is Account Creation
b) In this section you'll type in your business name for the Reseller Name
c) For the e-mail contact enter something like admin@domain.com
d) Leave everything else in this section to its default.
e) In the next section, labeled Domain Creation you only need to fill in your domain name in the blank field leave everything else to its default.
f) In the 2nd Account Creation section you only need to fill in the password field leave everything else to its default.
g) Click on the submit button.

12. You should now have a working web://cp.
Click on the link of your business name at the top of the page.
Login.
You should be greeted with the green default web://cp.

Enjoy.

An enormous thank you goes to thalaric for helping me get my web://cp operational and inspiring me to write this.
Also, a huge thank you to all the developers and contributors who have made web://cp possible.
I make no claim that this will work for everybody, but my hope is this will allow more people to get web://cp installed without too much hassle and lead to more outstanding development and understanding of this very impressive project.
There are some additional configuration settings I will post later but this should get a good many started.
These install instructions were tested on a Redhat 9 Server w/ Apache 2.0 but should apply to other Redhat OS versions as well.

ScottE