Skip to main content

Home/ dfs201011/ Group items tagged apache2

Rss Feed Group items tagged

Miguel Ángel Sánchez Hernández

Apache2: Public_html PHP Configuration - 5 views

  • Update 2010-11: Configure PHP for User Directories. There have been more than a couple searches leading here that are similar to "configure PHP virtual hosts". There was a change to the default Apache config introduced in Ubuntu 10.4, Lucid Lynx. There is a message in the /etc/apache2/mods-available/php5.conf file that tells you what to do. REMEMBER: Restart apache and clear your browser's cache after the changes are made. A more detailed description is given at the Ubuntu User-Directory-PHP Wiki. Here is my copy with the (totally unprofessional) hack to get my ".file" files processed as PHP. <IfModule mod_php5.c>   AddHandler application/x-httpd-php .php .html .htm .file   <FilesMatch "\.ph(p3?|tml)$">     SetHandler application/x-httpd-php   </FilesMatch>   <FilesMatch "\.phps$">     SetHandler application/x-httpd-php-source   </FilesMatch>   # To re-enable php in user directories comment the following lines   # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it   # prevents .htaccess files from disabling it.     #<IfModule mod_userdir.c>     # <Directory /home/*/public_html>     # php_admin_value engine Off     # </Directory>     #</IfModule> </IfModule>
  • Apache2: Virtual Hosts for Clients in Your Private LAN & PHP Configuration Go to the first page Apache2 public_html & Virtual Directories and read the disclaimer. Thanks. Update 2010-11: Configure PHP for User Directories. There have been more than a couple searches leading here that are similar to "configure PHP virtual hosts". There was a change to the default Apache config introduced in Ubuntu 10.4, Lucid Lynx. There is a message in the /etc/apache2/mods-available/php5.conf file that tells you what to do. REMEMBER: Restart apache and clear your browser's cache after the changes are made. A more detailed description is given at the Ubuntu User-Directory-PHP Wiki. Here is my copy with the (totally unprofessional) hack to get my ".file" files processed as PHP. <IfModule mod_php5.c>   AddHandler application/x-httpd-php .php .html .htm .file   <FilesMatch "\.ph(p3?|tml)$">     SetHandler application/x-httpd-php   </FilesMatch>   <FilesMatch "\.phps$">     SetHandler application/x-httpd-php-source   </FilesMatch>   # To re-enable php in user directories comment the following lines   # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it   # prevents .htaccess files from disabling it.     #<IfModule mod_userdir.c>     # <Directory /home/*/public_html>     # php_admin_value engine Off     # </Directory>     #</IfModule> </IfModule>
ivan chill

Installing WordPress « WordPress Codex - 3 views

  • Step 2: Create the Database and a User
    • ivan chill
       
      2. Creamos a continuación una base de datos
  • Using the MySQL Client
    • ivan chill
       
      Usamos las instrucciones de este enlace para crear la base de datos
  • $ mysql -u adminusername -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5340 to server version: 3.23.54 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE DATABASE databasename; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname" -> IDENTIFIED BY "password"; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.01 sec) mysql> EXIT Bye $
    • ivan chill
       
      1. Conectamos al gestor de base de datos y obtenemos una interfaz de comandos desde la que interactuar con él. 2. Creamos una base de datos con CREATE DATABASE 3. Damos todos los privilegios a un usuario (en la misma instrucción se crea el usuario y se le dan privilegios) sobre la base de datos que creamos en el paso anterior. 3. FLUSH PRIVILEGES hace que se apliquen los cambios. 4. Salimos del gestor
  • ...5 more annotations...
  • Step 3: Set up wp-config.php
    • ivan chill
       
      Configuramos los parametros principales de wordpress
    • ivan chill
       
      Con la instalacción actual nos podemos saltar este paso ya que lo podemos hacer vía web
  • Step 4: Upload the files
    • ivan chill
       
      Si no lo hemos hecho antes copiamos los archivos descomprimidos en una subcarpeta (/var/www) del raiz de apache2
  • Step 5: Run the Install Script
    • ivan chill
       
      Accedemos via web al subdirectorio wp-admin/install.php para que se ejecute el script de instalalción. Aparecerá un formulario en el que especificaremos la base de datos, el usuario con privilegios sobre la misma, su contraseña, el equipo sobre el que se ejecuta el gestor de base de datos. Y el prefijo que se le va a poner a las tablas que se van a crear.
  • Finishing installation
    • ivan chill
       
      Terminamos la instalación configurando parámetros del sitio y el usuario administrador del blog
  • Detailed Instructions Step 1: Download and Extract
  •  
    Instrucciones para instalar wordpress 1. Descargamos y descomprimimos
  •  
    Instrucciones para instalar wordpress
1 - 3 of 3
Showing 20 items per page