https://bugs.webkit.org/show_bug.cgi?id=137276
Reviewed by Benjamin Poulain.
Add the instruction to copy php.ini to enable the Postgres extension in PHP.
Also use perf.webkit.org as the directory name instead of WebKitPerfMonitor.
Finally, init-database.sql is no longer located inside database directory.
* Install.md:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174139
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-09-30 Ryosuke Niwa <rniwa@webkit.org>
+
+ Update Install.md for Mavericks and fix typos
+ https://bugs.webkit.org/show_bug.cgi?id=137276
+
+ Reviewed by Benjamin Poulain.
+
+ Add the instruction to copy php.ini to enable the Postgres extension in PHP.
+
+ Also use perf.webkit.org as the directory name instead of WebKitPerfMonitor.
+
+ Finally, init-database.sql is no longer located inside database directory.
+
+ * Install.md:
+
2014-08-11 Ryosuke Niwa <rniwa@webkit.org>
Report run id's in api/runs.php for the new dashboard UI
2014-08-11 Ryosuke Niwa <rniwa@webkit.org>
Report run id's in api/runs.php for the new dashboard UI
# Checking Out the Code and Installing Required Applications
The instructions assume you're using Mac OS X (Mavericks for Server.app case and Mountain Lion without Server.app) as the
# Checking Out the Code and Installing Required Applications
The instructions assume you're using Mac OS X (Mavericks for Server.app case and Mountain Lion without Server.app) as the
-host server, and assume that we're installing this application at `/Volumes/Data/WebKitPerfMonitor`.
+host server, and assume that we're installing this application at `/Volumes/Data/perf.webkit.org`.
You can choose between using Server.app or install the required tools separately
1. Install Server.app (if you don't want to use Server.app, install PostgreSQL: http://www.postgresql.org/download/macosx/)
2. Install node.
3. Install Xcode with command line tools (only needed for svn)
You can choose between using Server.app or install the required tools separately
1. Install Server.app (if you don't want to use Server.app, install PostgreSQL: http://www.postgresql.org/download/macosx/)
2. Install node.
3. Install Xcode with command line tools (only needed for svn)
-4. `svn co https://svn.webkit.org/repository/webkit/trunk/Websites/perf.webkit.org /Volumes/Data/WebKitPerfMonitor`
-5. Inside `/Volumes/Data/WebKitPerfMonitor`, run `npm install pg`.
+4. `svn co https://svn.webkit.org/repository/webkit/trunk/Websites/perf.webkit.org /Volumes/Data/perf.webkit.org`
+5. Inside `/Volumes/Data/perf.webkit.org`, run `npm install pg`.
## Instructions if you're using Server.app
- Enable PHP web applications
## Instructions if you're using Server.app
- Enable PHP web applications
- - Go to Server Website / Store Site Files In, change it to /Volumes/Data/WebKitPerfMonitor/public/`
+ - Go to Server Website / Store Site Files In, change it to /Volumes/Data/perf.webkit.org/public/`
- Go to Server Website / Edit advanced settings, enable Allow overrides using .htaccess files
## Instructions if you're not using Server.app
- Edit /private/etc/apache2/httpd.conf
- Go to Server Website / Edit advanced settings, enable Allow overrides using .htaccess files
## Instructions if you're not using Server.app
- Edit /private/etc/apache2/httpd.conf
- 1. Change DocumentRoot to `/Volumes/Data/WebKitPerfMonitor/public/`
+ 1. Change DocumentRoot to `/Volumes/Data/perf.webkit.org/public/`
2. Uncomment `"LoadModule php5_module libexec/apache2/libphp5.so"`
3. Modify the directives for the document root and / to allow overriding `"All"`
4. Delete directives on CGI-Executables
2. Uncomment `"LoadModule php5_module libexec/apache2/libphp5.so"`
3. Modify the directives for the document root and / to allow overriding `"All"`
4. Delete directives on CGI-Executables
+ - In Mavericks and later, copy php.ini to load pdo_pgsql.so pgsql.so.
+ `sudo cp /Applications/Server.app/Contents/ServerRoot/php.ini /etc/`
+
+
## Common directives for the related apache config file
httpd config file is located at:
## Common directives for the related apache config file
httpd config file is located at:
AddOutputFilterByType DEFLATE text/html text/xml text/plain application/json application/xml application/xhtml+xml
</IfModule>
AddOutputFilterByType DEFLATE text/html text/xml text/plain application/json application/xml application/xhtml+xml
</IfModule>
- 3. Add the following directives to enable zlib compression and MultiViews on WebKitPerfMonitor/public:
+ 3. Add the following directives to enable zlib compression and MultiViews on perf.webkit.org/public:
Options Indexes MultiViews
php_flag zlib.output_compression on
Options Indexes MultiViews
php_flag zlib.output_compression on
-1. Create database: `/Applications/Server.app/Contents/ServerRoot/usr/bin/initdb /Volumes/Data/WebKitPerfMonitor/PostgresSQL`
+1. Create database: `/Applications/Server.app/Contents/ServerRoot/usr/bin/initdb /Volumes/Data/perf.webkit.org/PostgresSQL`
- `/Applications/Server.app/Contents/ServerRoot/usr/bin/pg_ctl -D /Volumes/Data/WebKitPerfMonitor/PostgresSQL
- -l logfile -o "-k /Volumes/Data/WebKitPerfMonitor/PostgresSQL" start`
+ `/Applications/Server.app/Contents/ServerRoot/usr/bin/pg_ctl -D /Volumes/Data/perf.webkit.org/PostgresSQL
+ -l logfile -o "-k /Volumes/Data/perf.webkit.org/PostgresSQL" start`
## Creating a Database and a User
## Creating a Database and a User
## Initializing the Database
Run `database/init-database.sql` in psql as `webkit-perf-db-user`:
## Initializing the Database
Run `database/init-database.sql` in psql as `webkit-perf-db-user`:
-`psql webkit-perf-db -h localhost --username webkit-perf-db-user -f database/init-database.sql`
+`psql webkit-perf-db -h localhost --username webkit-perf-db-user -f init-database.sql`
## Making a Backup of the Database
## Making a Backup of the Database