It's very easy to install MT4 (beta 1) in OSX 10.4.
1. Download MT.
2. Deploy MT files
$ mkdir -p ~/Sites/mt4/cgi-bin/
$ mkdir ~/Sites/mt4/static/
$ chmod 777 ~/Sites/mt4/cgi-bin/
$ chmod 777 ~/Sites/mt4/static/
$ tar xvzf mt-xxxxx.tar.gz
4. Configure MySQL
$ mysql mysql
mysql> CREATE DATABASE 'mt4db';
mysql> GRANT ALL PRIVILEGES ON 'mt4user'@'locahost' IDENTIFIED BY 'mt4password';
mysql> FLUSH PRIVILEGES
4. Install CPAN modules
$ sudo perl -MCPAN -eshell
> install DBI
> install DBD::mysql
5. Configure Apache
- Activate it in System Preferences > Share > Share web
- Edit /etc/httpd/users/(my user).cfg
- Add this code using vim:<Directory "/Users/<your OSX user>/Sites/mt4/cgi-bin">
Options ExecCGI
AddHandler cgi-script .pl .cgi
</Directory>
6. Restart Apache
$ sudo apachectl restart
7. Start MT4 install proccess
- Go to http://localhost/~<your OSX user>/mt4/
- There you are!
- Select MySQL as default database
- Type the correct MySQL settings (database, user and password)
- Use sendmail for email
- Create your personal account
- When the install proccess is over, fix the cgi permissions$ chmod 755 ~/Sites/mt4/cgi-bin/
That's all folks!
can you link to the MySQL file, I can't seem to find it.
Posted by: Andrew | August 03, 2007 at 02:05 AM
Sorry, which MySQL file?
Posted by: Víctor R. Ruiz | August 03, 2007 at 02:35 AM
Sorry, I found it right after I posted this.
Posted by: andrew | August 03, 2007 at 02:36 PM
Thanks for this! The available document for MT -- especially MT4 -- is pretty bad.
Um, I think you're missing a step or two. Where do the downloaded MT files go once I run tar on the archive?
Also, how are things different if I want to use SQLite instead of MySQL?
Posted by: Christopher MacMinn | August 03, 2007 at 10:26 PM
Christopher: Yes, the document is a bit short, it's only a quick guide. The tar file can be downloaded everywhere, i.e.:
$ cd ~/Site/
$ tar xvzf ~/Desktop/mt-xxxxx.tar.gz
If SQLite is used, MT automatically creates a ./db/ directory to store the database file, a bit easier than using MySQL. DBD::sqlite must be installed.
Posted by: Víctor R. Ruiz | August 04, 2007 at 02:53 AM
I'm having a lot of errors installing the CPAN modules. What could be causing this?
Posted by: Matthew | September 20, 2007 at 07:49 PM
Matthew: Which errors?
Posted by: rvr | September 20, 2007 at 09:10 PM
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Posted by: Matthew | September 20, 2007 at 10:06 PM
I installed mysql on /usr/local/mysql/ and inside that directory, ./bin/mysql_config is found. Check whether that's your case and add /usr/local/mysql/bin to your PATH variable.
Posted by: rvr | September 21, 2007 at 01:26 AM