% # This transcript shows this guide's command line steps being carried out. % # http://www.robroygregg.com/articles/wp0/FreeBSD_MySQL_Apache_Wordpress.html % % ssh root@wp0 Password for root@wp0: Last login: Sat Feb 14 11:20:08 2015 from brobagel.kr0.net FreeBSD 10.1-RELEASE-p5 (GENERIC) #0: Tue Jan 27 08:55:07 UTC 2015 root@wp0:~ # exec zsh wp0:~# pkg install apache24 mod_php5 mysql56-server wordpress Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 45 packages will be affected (of 0 checked): New packages to be INSTALLED: apache24: 2.4.12 mod_php5: 5.4.37,1 mysql56-server: 5.6.23 wordpress: 4.1,1 expat: 2.1.0_2 perl5: 5.18.4_11 pcre: 8.35_2 apr: 1.5.1.1.5.4 gdbm: 1.11_2 gettext-runtime: 0.19.4 db5: 5.3.28_2 libxml2: 2.9.2_2 php5: 5.4.37 mysql56-client: 5.6.23 php5-xml: 5.4.37 php5-hash: 5.4.37 php5-gd: 5.4.37 libXpm: 3.5.11_2 xproto: 7.0.26 libXext: 1.3.3,1 xextproto: 7.3.0 libXau: 1.0.8_2 libX11: 1.6.2_2,1 libxcb: 1.11 libXdmcp: 1.1.1_2 libpthread-stubs: 0.3_6 kbproto: 1.0.6 libXt: 1.1.4_2,1 libSM: 1.2.2_2,1 libICE: 1.0.9,1 freetype2: 2.5.5 png: 1.6.16 jpeg: 8_6 t1lib: 5.1.2_4,1 libXaw: 1.0.12_2,2 printproto: 1.0.5 libXp: 1.0.2_2,1 libXmu: 1.1.2_2,1 php5-curl: 5.4.37 curl: 7.40.0 ca_root_nss: 3.17.4_1 php5-tokenizer: 5.4.37 php5-mysql: 5.4.37 php5-zlib: 5.4.37 php5-zip: 5.4.37 The process will require 331 MiB more space. 57 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching apache24-2.4.12.txz: 100% 4 MiB 1.9MB/s 00:02 Fetching mod_php5-5.4.37,1.txz: 100% 1 MiB 1.0MB/s 00:01 Fetching mysql56-server-5.6.23.txz: 100% 8 MiB 2.2MB/s 00:04 Fetching wordpress-4.1,1.txz: 100% 5 MiB 2.4MB/s 00:02 Fetching expat-2.1.0_2.txz: 100% 97 KiB 99.4kB/s 00:01 Fetching perl5-5.18.4_11.txz: 100% 13 MiB 2.3MB/s 00:06 Fetching pcre-8.35_2.txz: 100% 1 MiB 1.1MB/s 00:01 Fetching apr-1.5.1.1.5.4.txz: 100% 396 KiB 405.5kB/s 00:01 Fetching gdbm-1.11_2.txz: 100% 141 KiB 144.8kB/s 00:01 Fetching gettext-runtime-0.19.4.txz: 100% 144 KiB 147.1kB/s 00:01 Fetching db5-5.3.28_2.txz: 100% 12 MiB 2.5MB/s 00:05 Fetching libxml2-2.9.2_2.txz: 100% 756 KiB 774.5kB/s 00:01 Fetching php5-5.4.37.txz: 100% 2 MiB 1.9MB/s 00:01 Fetching mysql56-client-5.6.23.txz: 100% 2 MiB 2.1MB/s 00:01 Fetching php5-xml-5.4.37.txz: 100% 21 KiB 21.3kB/s 00:01 Fetching php5-hash-5.4.37.txz: 100% 116 KiB 118.8kB/s 00:01 Fetching php5-gd-5.4.37.txz: 100% 118 KiB 120.4kB/s 00:01 Fetching libXpm-3.5.11_2.txz: 100% 65 KiB 66.2kB/s 00:01 Fetching xproto-7.0.26.txz: 100% 58 KiB 59.7kB/s 00:01 Fetching libXext-1.3.3,1.txz: 100% 90 KiB 92.2kB/s 00:01 Fetching xextproto-7.3.0.txz: 100% 21 KiB 22.0kB/s 00:01 Fetching libXau-1.0.8_2.txz: 100% 11 KiB 11.5kB/s 00:01 Fetching libX11-1.6.2_2,1.txz: 100% 2 MiB 1.7MB/s 00:01 Fetching libxcb-1.11.txz: 100% 975 KiB 998.5kB/s 00:01 Fetching libXdmcp-1.1.1_2.txz: 100% 14 KiB 14.4kB/s 00:01 Fetching libpthread-stubs-0.3_6.txz: 100% 3 KiB 2.8kB/s 00:01 Fetching kbproto-1.0.6.txz: 100% 122 KiB 124.6kB/s 00:01 Fetching libXt-1.1.4_2,1.txz: 100% 445 KiB 456.0kB/s 00:01 Fetching libSM-1.2.2_2,1.txz: 100% 22 KiB 22.4kB/s 00:01 Fetching libICE-1.0.9,1.txz: 100% 86 KiB 88.0kB/s 00:01 Fetching freetype2-2.5.5.txz: 100% 449 KiB 459.9kB/s 00:01 Fetching png-1.6.16.txz: 100% 251 KiB 256.7kB/s 00:01 Fetching jpeg-8_6.txz: 100% 283 KiB 289.4kB/s 00:01 Fetching t1lib-5.1.2_4,1.txz: 100% 739 KiB 756.7kB/s 00:01 Fetching libXaw-1.0.12_2,2.txz: 100% 445 KiB 455.3kB/s 00:01 Fetching printproto-1.0.5.txz: 100% 14 KiB 14.2kB/s 00:01 Fetching libXp-1.0.2_2,1.txz: 100% 83 KiB 85.2kB/s 00:01 Fetching libXmu-1.1.2_2,1.txz: 100% 94 KiB 96.6kB/s 00:01 Fetching php5-curl-5.4.37.txz: 100% 26 KiB 26.6kB/s 00:01 Fetching curl-7.40.0.txz: 100% 1 MiB 1.4MB/s 00:01 Fetching ca_root_nss-3.17.4_1.txz: 100% 321 KiB 328.9kB/s 00:01 Fetching php5-tokenizer-5.4.37.txz: 100% 8 KiB 8.5kB/s 00:01 Fetching php5-mysql-5.4.37.txz: 100% 19 KiB 19.0kB/s 00:01 Fetching php5-zlib-5.4.37.txz: 100% 16 KiB 16.1kB/s 00:01 Fetching php5-zip-5.4.37.txz: 100% 39 KiB 39.5kB/s 00:01 Checking integrity... done (0 conflicting) [1/45] Installing xproto-7.0.26... [1/45] Extracting xproto-7.0.26: 100% [2/45] Installing libxml2-2.9.2_2... [2/45] Extracting libxml2-2.9.2_2: 100% [3/45] Installing libXau-1.0.8_2... [3/45] Extracting libXau-1.0.8_2: 100% [4/45] Installing libXdmcp-1.1.1_2... [4/45] Extracting libXdmcp-1.1.1_2: 100% [5/45] Installing libpthread-stubs-0.3_6... [5/45] Extracting libpthread-stubs-0.3_6: 100% [6/45] Installing libxcb-1.11... [6/45] Extracting libxcb-1.11: 100% [7/45] Installing kbproto-1.0.6... [7/45] Extracting kbproto-1.0.6: 100% [8/45] Installing libICE-1.0.9,1... [8/45] Extracting libICE-1.0.9,1: 100% [9/45] Installing xextproto-7.3.0... [9/45] Extracting xextproto-7.3.0: 100% [10/45] Installing libX11-1.6.2_2,1... [10/45] Extracting libX11-1.6.2_2,1: 100% [11/45] Installing libSM-1.2.2_2,1... [11/45] Extracting libSM-1.2.2_2,1: 100% [12/45] Installing libXext-1.3.3,1... [12/45] Extracting libXext-1.3.3,1: 100% [13/45] Installing libXt-1.1.4_2,1... [13/45] Extracting libXt-1.1.4_2,1: 100% [14/45] Installing printproto-1.0.5... [14/45] Extracting printproto-1.0.5: 100% [15/45] Installing gettext-runtime-0.19.4... [15/45] Extracting gettext-runtime-0.19.4: 100% [16/45] Installing libXpm-3.5.11_2... [16/45] Extracting libXpm-3.5.11_2: 100% [17/45] Installing libXp-1.0.2_2,1... [17/45] Extracting libXp-1.0.2_2,1: 100% [18/45] Installing libXmu-1.1.2_2,1... [18/45] Extracting libXmu-1.1.2_2,1: 100% [19/45] Installing expat-2.1.0_2... [19/45] Extracting expat-2.1.0_2: 100% [20/45] Installing pcre-8.35_2... [20/45] Extracting pcre-8.35_2: 100% [21/45] Installing gdbm-1.11_2... [21/45] Extracting gdbm-1.11_2: 100% [22/45] Installing db5-5.3.28_2... [22/45] Extracting db5-5.3.28_2: 100% [23/45] Installing libXaw-1.0.12_2,2... [23/45] Extracting libXaw-1.0.12_2,2: 100% [24/45] Installing ca_root_nss-3.17.4_1... [24/45] Extracting ca_root_nss-3.17.4_1: 100% [25/45] Installing perl5-5.18.4_11... [25/45] Extracting perl5-5.18.4_11: 100% [26/45] Installing apr-1.5.1.1.5.4... [26/45] Extracting apr-1.5.1.1.5.4: 100% [27/45] Installing php5-5.4.37... [27/45] Extracting php5-5.4.37: 100% [28/45] Installing freetype2-2.5.5... [28/45] Extracting freetype2-2.5.5: 100% [29/45] Installing png-1.6.16... [29/45] Extracting png-1.6.16: 100% [30/45] Installing jpeg-8_6... [30/45] Extracting jpeg-8_6: 100% [31/45] Installing t1lib-5.1.2_4,1... [31/45] Extracting t1lib-5.1.2_4,1: 100% [32/45] Installing curl-7.40.0... [32/45] Extracting curl-7.40.0: 100% [33/45] Installing apache24-2.4.12... ===> Creating users and/or groups. Using existing group 'www'. Using existing user 'www'. [33/45] Extracting apache24-2.4.12: 100% [34/45] Installing mysql56-client-5.6.23... [34/45] Extracting mysql56-client-5.6.23: 100% [35/45] Installing php5-xml-5.4.37... [35/45] Extracting php5-xml-5.4.37: 100% [36/45] Installing php5-hash-5.4.37... [36/45] Extracting php5-hash-5.4.37: 100% [37/45] Installing php5-gd-5.4.37... [37/45] Extracting php5-gd-5.4.37: 100% [38/45] Installing php5-curl-5.4.37... [38/45] Extracting php5-curl-5.4.37: 100% [39/45] Installing php5-tokenizer-5.4.37... [39/45] Extracting php5-tokenizer-5.4.37: 100% [40/45] Installing php5-mysql-5.4.37... [40/45] Extracting php5-mysql-5.4.37: 100% [41/45] Installing php5-zlib-5.4.37... [41/45] Extracting php5-zlib-5.4.37: 100% [42/45] Installing php5-zip-5.4.37... [42/45] Extracting php5-zip-5.4.37: 100% [43/45] Installing mod_php5-5.4.37,1... [43/45] Extracting mod_php5-5.4.37,1: 100% [activating module `php5' in /usr/local/etc/apache24/httpd.conf] [44/45] Installing mysql56-server-5.6.23... ===> Creating users and/or groups. Creating group 'mysql' with gid '88'. Creating user 'mysql' with uid '88'. [44/45] Extracting mysql56-server-5.6.23: 100% [45/45] Installing wordpress-4.1,1... [45/45] Extracting wordpress-4.1,1: 100% Message for ca_root_nss-3.17.4_1: ********************************* WARNING ********************************* FreeBSD does not, and can not warrant that the certificate authorities whose certificates are included in this package have in any way been audited for trustworthiness or RFC 3647 compliance. Assessment and verification of trust is the complete responsibility of the system administrator. *********************************** NOTE ********************************** This package installs symlinks to support root certificates discovery by default for software that uses OpenSSL. This enables SSL Certificate Verification by client software without manual intervention. If you prefer to do this manually, replace the following symlinks with either an empty file or your site-local certificate bundle. * /etc/ssl/cert.pem * /usr/local/etc/ssl/cert.pem * /usr/local/openssl/cert.pem *************************************************************************** Message for apache24-2.4.12: To run apache www server from startup, add apache24_enable="yes" in your /etc/rc.conf. Extra options can be found in startup script. Your hostname must be resolvable using at least 1 mechanism in /etc/nsswitch.conf typically DNS or /etc/hosts or apache might have issues starting depending on the modules you are using. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - apache24 default build changed from static MPM to modular MPM - more modules are now enabled per default in the port - icons and error pages moved from WWWDIR to DATADIR If build with modular MPM and no MPM is activated in httpd.conf, then mpm_prefork will be activated as default MPM in etc/apache24/modules.d to keep compatibility with existing php/perl/python modules! Please compare the existing httpd.conf with httpd.conf.sample and merge missing modules/instructions into httpd.conf! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Message for mod_php5-5.4.37,1: *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: SetHandler application/x-httpd-php SetHandler application/x-httpd-php-source *************************************************************** Message for mysql56-server-5.6.23: ************************************************************************ Remember to run mysql_upgrade the first time you start the MySQL server after an upgrade from an earlier version. ************************************************************************ Message for wordpress-4.1,1: **** NOTE **** Before the first use of WordPress, copy wp-config-sample.php to wp-config.php in /usr/local/www/wordpress and modify it to fit your MySQL. Maybe you need 'mysqladmin create wordpress' first. If you are upgrading from 1.x or 2.x or 3.x to 4.x, please run http://your.site/wordpress/wp-admin/upgrade.php to upgrade to WordPress 4.x wp0:~# ex /etc/rc.conf /etc/rc.conf: unmodified: line 8 :a mysql_enable="YES" apache24_enable="YES" . :x /etc/rc.conf: 10 lines, 272 characters wp0:~# cd /usr/local wp0:/usr/local# bin/mysql_install_db Installing MySQL system tables...2015-02-15 10:08:21 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2015-02-15 10:08:21 747 [Note] InnoDB: Using atomics to ref count buffer pool pages 2015-02-15 10:08:21 747 [Note] InnoDB: The InnoDB memory heap is disabled 2015-02-15 10:08:21 747 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2015-02-15 10:08:21 747 [Note] InnoDB: Memory barrier is not used 2015-02-15 10:08:21 747 [Note] InnoDB: Compressed tables use zlib 1.2.3 2015-02-15 10:08:21 747 [Note] InnoDB: Using CPU crc32 instructions 2015-02-15 10:08:21 747 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2015-02-15 10:08:21 747 [Note] InnoDB: Completed initialization of buffer pool 2015-02-15 10:08:21 747 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created! 2015-02-15 10:08:21 747 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB 2015-02-15 10:08:21 747 [Note] InnoDB: Database physically writes the file full: wait... 2015-02-15 10:08:21 747 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB 2015-02-15 10:08:22 747 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB 2015-02-15 10:08:22 747 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0 2015-02-15 10:08:22 747 [Warning] InnoDB: New log files created, LSN=45781 2015-02-15 10:08:22 747 [Note] InnoDB: Doublewrite buffer not found: creating new 2015-02-15 10:08:22 747 [Note] InnoDB: Doublewrite buffer created 2015-02-15 10:08:22 747 [Note] InnoDB: 128 rollback segment(s) are active. 2015-02-15 10:08:22 747 [Warning] InnoDB: Creating foreign key constraint system tables. 2015-02-15 10:08:22 747 [Note] InnoDB: Foreign key constraint system tables created 2015-02-15 10:08:22 747 [Note] InnoDB: Creating tablespace and datafile system tables. 2015-02-15 10:08:22 747 [Note] InnoDB: Tablespace and datafile system tables created. 2015-02-15 10:08:22 747 [Note] InnoDB: Waiting for purge to start 2015-02-15 10:08:22 747 [Note] InnoDB: 5.6.23 started; log sequence number 0 2015-02-15 10:08:22 747 [Note] Binlog end 2015-02-15 10:08:22 747 [Note] InnoDB: FTS optimize thread exiting. 2015-02-15 10:08:22 747 [Note] InnoDB: Starting shutdown... 2015-02-15 10:08:23 747 [Note] InnoDB: Shutdown completed; log sequence number 1625977 OK Filling help tables...2015-02-15 10:08:23 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2015-02-15 10:08:23 748 [Note] InnoDB: Using atomics to ref count buffer pool pages 2015-02-15 10:08:23 748 [Note] InnoDB: The InnoDB memory heap is disabled 2015-02-15 10:08:23 748 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2015-02-15 10:08:23 748 [Note] InnoDB: Memory barrier is not used 2015-02-15 10:08:23 748 [Note] InnoDB: Compressed tables use zlib 1.2.3 2015-02-15 10:08:23 748 [Note] InnoDB: Using CPU crc32 instructions 2015-02-15 10:08:23 748 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2015-02-15 10:08:23 748 [Note] InnoDB: Completed initialization of buffer pool 2015-02-15 10:08:23 748 [Note] InnoDB: Highest supported file format is Barracuda. 2015-02-15 10:08:23 748 [Note] InnoDB: 128 rollback segment(s) are active. 2015-02-15 10:08:23 748 [Note] InnoDB: Waiting for purge to start 2015-02-15 10:08:24 748 [Note] InnoDB: 5.6.23 started; log sequence number 1625977 2015-02-15 10:08:24 748 [Note] Binlog end 2015-02-15 10:08:24 748 [Note] InnoDB: FTS optimize thread exiting. 2015-02-15 10:08:24 748 [Note] InnoDB: Starting shutdown... 2015-02-15 10:08:25 748 [Note] InnoDB: Shutdown completed; log sequence number 1625987 OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: ./bin/mysqladmin -u root password 'new-password' ./bin/mysqladmin -u root -h wp0 password 'new-password' Alternatively you can run: ./bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd . ; ./bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd mysql-test ; perl mysql-test-run.pl Please report any problems at http://bugs.mysql.com/ The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com New default config file was created as ./my.cnf and will be used by default by the server when you start it. You may edit this file to change server settings wp0:/usr/local# chmod 700 /var/db/mysql wp0:/usr/local# service mysql-server start Starting mysql. wp0:/usr/local# bin/mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] Y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] Y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] Y ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] Y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] Y ... Success! All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! Cleaning up... wp0:/usr/local# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.6.23 Source distribution Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE WordPressFun; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON WordPressFun.* TO "alf"@"localhost" IDENTIFIED BY "t0pHatt25%"; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> quit Bye wp0:/usr/local# cd www/wordpress wp0:/usr/local/www/wordpress# umask 077 wp0:/usr/local/www/wordpress# cp wp-config-sample.php wp-config.php wp0:/usr/local/www/wordpress# ex wp-config.php wp-config.php: unmodified: line 80 :%s/database_name_here/WordPressFun/ define('DB_NAME', 'WordPressFun'); :%s/username_here/alf/ define('DB_USER', 'alf'); :%s/password_here/t0pHatt25%/ define('DB_PASSWORD', 't0pHatt25%'); :x wp-config.php: 80 lines, 2707 characters wp0:/usr/local/www/wordpress# diff wp-config.php wp-config-sample.php 19c19 < define('DB_NAME', 'WordPressFun'); --- > define('DB_NAME', 'database_name_here'); 22c22 < define('DB_USER', 'alf'); --- > define('DB_USER', 'username_here'); 25c25 < define('DB_PASSWORD', 't0pHatt25%'); --- > define('DB_PASSWORD', 'password_here'); wp0:/usr/local/www/wordpress# chown www:www wp-config.php wp0:/usr/local/www/wordpress# chmod 640 wp-config.php wp0:/usr/local/www/wordpress# cd /usr/local/etc/apache24 wp0:/usr/local/etc/apache24# cp httpd.conf httpd.conf.dist wp0:/usr/local/etc/apache24# ex httpd.conf httpd.conf: unmodified: line 534 :/php5/# 175 LoadModule php5_module libexec/apache24/libphp5.so :176a SetHandler application/x-httpd-php SetHandler application/x-httpd-php-source . :g/.usr.local.www.apache24.data/# 250 DocumentRoot "/usr/local/www/apache24/data" 251 :%s/.usr.local.www.apache24.data/\/usr\/local\/www\/wordpress/ :g/.www.wordpress/# 250 DocumentRoot "/usr/local/www/wordpress" 251 :251a DirectoryIndex index.php . :x httpd.conf: 541 lines, 20909 characters wp0:/usr/local/etc/apache24# diff httpd.conf httpd.conf.dist 177,182d176 < < SetHandler application/x-httpd-php < < < SetHandler application/x-httpd-php-source < 250,252c244,245 < DocumentRoot "/usr/local/www/wordpress" < < DirectoryIndex index.php --- > DocumentRoot "/usr/local/www/apache24/data" > wp0:/usr/local/etc/apache24# service apache24 start Performing sanity check on apache24 configuration: Syntax OK Starting apache24. wp0:/usr/local/etc/apache24#