Skip to content

Commit 7fa7cb2

Browse files
authored
Flip sections
1 parent 35c0447 commit 7fa7cb2

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,6 @@ The tutorial is still working, keep in mind that this tutorial is for Firebird 2
1212
- Autoconf, you can install it via Homebrew (brew install autoconf)
1313
- Because we needs Firebird libs. for compiling interbase, we have to download Firebird Server Package (http://www.firebirdsql.org/en/downloads), download the LIPO package (important!)
1414

15-
## Let's compile! (MAMP 3.4.0 ... PHP 5.6.10)
16-
17-
<ol>
18-
<li>Check which PHP version your MAMP server use, for example version 3.4.0 use PHP 5.6.10 by default</li>
19-
<li>Download PHP source code from https://secure.php.net/downloads.php</li>
20-
<li>Unzip downloaded sources, rename it to "php" and move it to your MAMP include folder /Applications/MAMP/bin/php/php5.6.10/</li>
21-
<li>Enter to interbase extension folder
22-
cd /Applications/MAMP/bin/php/php5.6.10/include/php/ext/interbase/</li>
23-
<li>Run phpize
24-
/Applications/MAMP/bin/php/php5.6.10/bin/phpize</li>
25-
<li>Run configure ./configure</li>
26-
<li>Create symbolic link to Firebird ibase.h and iberror.h in our include/php folder so
27-
ln -s /Library/Frameworks/Firebird.framework/Headers/*.h /Applications/MAMP/bin/php/php5.6.10/include/
28-
these two header files are required</li>
29-
<li>Run make</li>
30-
<li>Run sudo make install</li>
31-
</ol>
32-
33-
You should get your interbase.so ! Wooah
34-
3515

3616
## Let's compile! (MAMP 4.1.1 ... PHP 7.1.1)
3717

@@ -55,6 +35,26 @@ You should get your interbase.so ! Wooah
5535
You should get your interbase.so (/Applications/MAMP/bin/php/php7.1.1/include/php/ext/interbase/modules/interbase.so) ! Wooah
5636

5737

38+
## Let's compile! (MAMP 3.4.0 ... PHP 5.6.10)
39+
40+
<ol>
41+
<li>Check which PHP version your MAMP server use, for example version 3.4.0 use PHP 5.6.10 by default</li>
42+
<li>Download PHP source code from https://secure.php.net/downloads.php</li>
43+
<li>Unzip downloaded sources, rename it to "php" and move it to your MAMP include folder /Applications/MAMP/bin/php/php5.6.10/</li>
44+
<li>Enter to interbase extension folder
45+
cd /Applications/MAMP/bin/php/php5.6.10/include/php/ext/interbase/</li>
46+
<li>Run phpize
47+
/Applications/MAMP/bin/php/php5.6.10/bin/phpize</li>
48+
<li>Run configure ./configure</li>
49+
<li>Create symbolic link to Firebird ibase.h and iberror.h in our include/php folder so
50+
ln -s /Library/Frameworks/Firebird.framework/Headers/*.h /Applications/MAMP/bin/php/php5.6.10/include/
51+
these two header files are required</li>
52+
<li>Run make</li>
53+
<li>Run sudo make install</li>
54+
</ol>
55+
56+
You should get your interbase.so ! Wooah
57+
5858
## ATTENTION FOR MAMP USERS (Mac OS)
5959

6060
Be sure that you are not running PHP in CGI mode (you will propably get 500 error code during connection to database) !

0 commit comments

Comments
 (0)