Instalacion de CentOS con Apache, MySQL, y PHP

por | 18 septiembre, 2005

 Instalacion de CentOS con Apache, MySQL, y PHP

Viendo en mi proveedor de hosting note que en el panel de control tenian CentOS como sistema operativo de webhosting y me dio curiosidad. Invesigue el sitio www.centos.org y me di cuenta que es un clon de Redhat AS v4 solamente que con una licencia GNU
instalación
Elegimos la instalación de texto,

En Selección del idioma elegimos español, teclado es.

En qué tipo de sistema desea instalar
elegimos Server.

More…

onamos automaticamente el disco

El gestor de arranque elegimos GRUB

Elegimos Servidor Web con F2 todas las opciones

Servidor de correo
Servidor de DNS
Bases de datos MYSQL todas las opciones
Herramientas de desarrollo

OK

Hay dos caminos uno facil con webmin o el dificil

vamos primero por el camino largo configurar todo el
servidor manualmente

Por defecto el servidor apache y mysql vienen desactivados del runlevel 3 hay que activarlos

hay una herramienta para activar los servicios en modo texto

20.4. ntsysv

The ntsysv utility provides a simple interface for activating or deactivating services. You can use ntsysv to turn an xinetd-managed service on or off. You can also use ntsysv to configure runlevels. By default, only the current runlevel is configured. To configure a different runlevel, specify one or more runlevels with the –level option. For example, the command ntsysv –level 345 configures runlevels 3, 4, and 5.

The ntsysv interface works like the text mode installation program. Use the up and down arrows to navigate up and down the list. The space bar selects/unselects services and is also used to “press” the Ok and Cancel buttons. To move between the list of services and the Ok and Cancel buttons, use the [Tab] key. A * signifies that a service is set to on. Pressing the [F1] key displays a short description of the selected service.

Warning Warning

Services managed by xinetd are immediately affected by ntsysv. For all other services, changes do not take effect immediately. You must stop or start the individual service with the command service daemon stop. In the previous example, replace daemon with the name of the service you want to stop; for example, httpd. Replace stop with start or restart to start or restart the service.

Hay otra herramienta que es:
20.5. chkconfig

The chkconfig command can also be used to activate and deactivate services. The chkconfig –list command displays a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6. At the end of the list is a section for the services managed by xinetd.

If the chkconfig –list command is used to query a service managed by xinetd, it displays whether the xinetd service is enabled (on) or disabled (off). For example, the command chkconfig –list finger returns the following output:

finger on

As shown, finger is enabled as an xinetd service. If xinetd is running, finger is enabled.

If you use chkconfig –list to query a service in /etc/rc.d, service’s settings for each runlevel are displayed. For example, the command chkconfig –list httpd returns the following output:

httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

chkconfig can also be used to configure a service to be started (or not) in a specific runlevel. For example, to turn nscd off in runlevels 3, 4, and 5, use the following command:

chkconfig –level 345 nscd off

Warning Warning

Services managed by xinetd are immediately affected by chkconfig. For example, if xinetd is running, finger is disabled, and the command chkconfig finger on is executed, finger is immediately enabled without having to restart xinetd manually. Changes for other services do not take effect immediately after using chkconfig. You must stop or start the individual service with the command service daemon stop. In the previous example, replace daemon with the name of the service you want to stop; for example, httpd. Replace stop with start or restart to start or restart the service.

Pero vamos a utilizar en modo manual sin estas herramientas…

Esto no tiene nada que ver pero para cambiar el lenguage en redhat es con esta herramienta
system-config-language

Para instalarlo hay que agregar un lenguage

Using Yum

To use yum, open a terminal, become root, and then you can use the following commands:

* To see a list of available software:

yum list available
* To install some software, you type:

yum install packagename
* To update some software, you type:

yum update packagename

If you leave out “packagename” yum will update all your software.
* To see what updates are available, you can do:

yum check-update
* To search for a package, you can do:

yum search word

Para activar el httpd y mysqld en consola utilice

chkconfig –level 3 httpd on
chkconfig –level 3 mysqld on

Definitivamente el día de hoy ya estoy cansado asi que voy a reiniciar el servidor y voy a instlar webmin un administrador de unix que me va a facilitar el trabajo

www.webmin.com

despues de bajarlo se instala

rpm -U webmin-1.220-1.noarch.rpm

Viendo en mi proveedor de hosting note que en el panel de control tenian CentOS como sistema operativo de webhosting y me dio curiosidad. Invesigue el sitio www.centos.org y me di cuenta que es un clon de Redhat AS v4 solamente que con una licencia GNU
instalación
Elegimos la instalación de texto,

En Selección del idioma elegimos español, teclado es.

En qué tipo de sistema desea instalar
elegimos Server.

More…

onamos automaticamente el disco

El gestor de arranque elegimos GRUB

Elegimos Servidor Web con F2 todas las opciones

Servidor de correo
Servidor de DNS
Bases de datos MYSQL todas las opciones
Herramientas de desarrollo

OK

Hay dos caminos uno facil con webmin o el dificil

vamos primero por el camino largo configurar todo el
servidor manualmente

Por defecto el servidor apache y mysql vienen desactivados del runlevel 3 hay que activarlos

hay una herramienta para activar los servicios en modo texto

20.4. ntsysv

The ntsysv utility provides a simple interface for activating or deactivating services. You can use ntsysv to turn an xinetd-managed service on or off. You can also use ntsysv to configure runlevels. By default, only the current runlevel is configured. To configure a different runlevel, specify one or more runlevels with the –level option. For example, the command ntsysv –level 345 configures runlevels 3, 4, and 5.

The ntsysv interface works like the text mode installation program. Use the up and down arrows to navigate up and down the list. The space bar selects/unselects services and is also used to “press” the Ok and Cancel buttons. To move between the list of services and the Ok and Cancel buttons, use the [Tab] key. A * signifies that a service is set to on. Pressing the [F1] key displays a short description of the selected service.

Warning Warning

Services managed by xinetd are immediately affected by ntsysv. For all other services, changes do not take effect immediately. You must stop or start the individual service with the command service daemon stop. In the previous example, replace daemon with the name of the service you want to stop; for example, httpd. Replace stop with start or restart to start or restart the service.

Hay otra herramienta que es:
20.5. chkconfig

The chkconfig command can also be used to activate and deactivate services. The chkconfig –list command displays a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6. At the end of the list is a section for the services managed by xinetd.

If the chkconfig –list command is used to query a service managed by xinetd, it displays whether the xinetd service is enabled (on) or disabled (off). For example, the command chkconfig –list finger returns the following output:

finger on

As shown, finger is enabled as an xinetd service. If xinetd is running, finger is enabled.

If you use chkconfig –list to query a service in /etc/rc.d, service’s settings for each runlevel are displayed. For example, the command chkconfig –list httpd returns the following output:

httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

chkconfig can also be used to configure a service to be started (or not) in a specific runlevel. For example, to turn nscd off in runlevels 3, 4, and 5, use the following command:

chkconfig –level 345 nscd off

Warning Warning

Services managed by xinetd are immediately affected by chkconfig. For example, if xinetd is running, finger is disabled, and the command chkconfig finger on is executed, finger is immediately enabled without having to restart xinetd manually. Changes for other services do not take effect immediately after using chkconfig. You must stop or start the individual service with the command service daemon stop. In the previous example, replace daemon with the name of the service you want to stop; for example, httpd. Replace stop with start or restart to start or restart the service.

Pero vamos a utilizar en modo manual sin estas herramientas…

Esto no tiene nada que ver pero para cambiar el lenguage en redhat es con esta herramienta
system-config-language

Para instalarlo hay que agregar un lenguage

Using Yum

To use yum, open a terminal, become root, and then you can use the following commands:

* To see a list of available software:

yum list available
* To install some software, you type:

yum install packagename
* To update some software, you type:

yum update packagename

If you leave out “packagename” yum will update all your software.
* To see what updates are available, you can do:

yum check-update
* To search for a package, you can do:

yum search word

Para activar el httpd y mysqld en consola utilice

chkconfig –level 3 httpd on
chkconfig –level 3 mysqld on

Definitivamente el día de hoy ya estoy cansado asi que voy a reiniciar el servidor y voy a instlar webmin un administrador de unix que me va a facilitar el trabajo

www.webmin.com

despues de bajarlo se instala

rpm -U webmin-1.220-1.noarch.rpm