lunes, 4 de julio de 2011

primero comandos de apache

[root@srvccrj ~]# cp /usr/local/apache2/bin/apachect /etc/init.d

cp: no se puede efectuar `stat' sobre «/usr/local/apache2/bin/apachect»: No existe el fichero o el directorio

[root@srvccrj ~]# cp /usr/local/apache2/bin/apachectl /etc/init.d/

cp: ¿sobreescribir «/etc/init.d/apachectl»? (s/n) s

[root@srvccrj ~]#

[root@srvccrj ~]# vi /etc/init.d/apachectl

[root@srvccrj ~]# /sbin/chkconfig --add apachectl





apache a punto compilad
 ########
<code>
tar –xzf postgresql-8.4.8.tar.gz –C /usr/local/<br />
<br />
LDFLAGS=-lstdc++ ./configure \<br />
--prefix=/usr/local/pgsql \<br />
--with-perl \<br />
--with-python \<br />
--with-krb5 \<br />
--with-openssl<br />
<br />
/usr/sbin/adduser postgres<br />
mkdir /usr/local/pgsql/data <br />
chown postgres /usr/local/pgsql/data/ <br />
su - postgres<br />
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data/<br />
<br />
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data/ -l /usr/local/pgsql/data/logfile start<br />
<br />
/usr/local/pgsql/bin/createdb test<br />
<br />
/usr/local/pgsql/bin/psql test<br />
<br />
[root@srvccrj postgresql-8.4.8]# chmod 700 /etc/init.d/postgresql <br />
[root@srvccrj postgresql-8.4.8]# /sbin/chkconfig --add postgresql <br />
[root@srvccrj postgresql-8.4.8]# <br />
<br />
Instañlacion de PHP con unixODBC y FreeTDS<br />
<br />
yum install freetds <br />
<br />
yum install freetds-devel <br />
<br />
Instalar PHP<br />
<br />
tar -xjf php-5.2.17.tar.bz2 -C /usr/local/<br />
<br />
cd /usr/local/php-5.2.17<br />
<br />
/usr/local/apache2/bin/apachectl restart<br />
<br />
Instalacion de postgist<br />
<br />
tar -xzf proj-4.7.0.tar.gz -C /usr/local<br />
<br />
tar -xjf geos-3.3.0.tar.bz2 -C /usr/local<br />
<br />
/usr/local/pgsql/bin/createlang plpgsql test<br />
<br />
/usr/local/pgsql/bin/psql -d test –f /usr/local/pgsql/share/lwpostgis.sql
</code>

No hay comentarios:

Publicar un comentario

Visualizador de windows predefinido para abrir imagenes

 abrir regedit Equipo\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations nuevas entrada valor de todas...