Install debian
login and become root
Install apache2 unzip and the Build essentials package
apt-get install apache2 build-essentials unzip
Create a user for the coldfusion enviroment
adduser coldfusion
Change the ownership of the /var/www to the coldfusion user
chown coldfusion /var/www
Get you coldfusion.bin file overto the machine (i used SCP but you can use wget or whatever)
there is a compatibilty issue but you can solve it like this :
Rename the coldfusion-7.0*-lin.bin to coldfusion-70*-lin.bak
and execute the following command
cat coldfusion-702-lin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD
Run the newly made installer (be sure to do this as root)
./coldfusion-70*-lin.bin
1. Choose Server Configuration
2. Add web server Configuration
1. Apache
1. What directory contains your Apache configuration file:
/etc/apache2
2. Where is the Apache program binary file?:
/usr/sbin/apache2
3. Where is the control file that you use to start and stop the Apache web server?:
/etc/init.d/apache2
3. Choose ColdFusion MX Administrator Location:
/var/www
4. Enter the name of the runtime user:
Enter the name of the user that you created and set to own /var/www
Then we need to install and download the hotfix
You can download it here but the instructions are not entirely correct
You need to indeed unzip the file in /opt/coldfusion7.0*/runtime/lib but the command is not suited for a debian enviroment.
It should be
java -Dtrace.ci=1 -jar wsconfig.jar -server coldfusion -ws apache -dir /etc/apache2 -bin /usr/sbin/apache2 -script /usr/sbin/apache2ctl -coldfusion -v
edit /opt/coldfusionmx7/bin/connectors/apache_connector.sh and change the wsconfig
nano /opt/coldfusionmx7/bin/connectors/apache_connector.sh
to:
../../runtime/bin/wsconfig \
-server coldfusion \
-ws apache \
-dir /etc/apache2 \
-bin /usr/sbin/apache2 \
-script /etc/init.d/apache2 \
-coldfusion
exit $#
now you'll need to start coldfusion
/opt/coldfusion/bin/coldfusion start
There will be an error about the connector - do not worry about it we can fix it by running the appache connector
cd /opt/coldfusionmx7/bin/connectors/
sudo ./apache_connector.sh
Browser to: http://your-machine/cfide/administrator/index.cfm
There you go, done and over with
Geen opmerkingen:
Een reactie posten