I am looking the method that Manually Installation of PHP, No Homebrew(Package Installation), Just .tar archive only. I've searched few days on Google, but I still can't find the proper method.
Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
243 Views Asked by ISOs At
2
There are 2 best solutions below
0
Harold
On
This should do the trick to compile it manually: http://php.net/manual/en/install.macosx.compile.php
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in APACHE
- .htaccess redirect 403 error files to 404 error document
- RestApi server code is not workinng
- Convert Apache VirtualHost to nginx Server Block for Dynamic Subdomains
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- Premature end of script on VPS
- Rasterization with Javascript looks different on Apache server
- Vagrant - Ansible error installing Apache
- Can't use subdomain in Chrome using Apache (XAMPP)
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- Redirect keystone app to sub directory using htaccess
- How can I integrate Solr5.1.0 with Nutch1.10
- Disconnect Client connected to cgi application
- Solr ping taking time during full import
- How to redirect an incoming request to specific serverName to different server in apache2?
- What is the correct way to link Django Flatpages?
Related Questions in WEB-SERVICES
- couldn't copy pdb file to another directory while consuming wcf web service
- .net rest service with JSON string and consumed with java client
- How to send Rest GET request that contains "#" value in url parameters?
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- How to use @queryparam when using array in Java
- How to accept cookies when using a webservice - Android?
- zend soap server reading xml attributes
- Web Service Error path property must set before calling the send method
- Error with kSOAP2
- JAX-RS service response is returning double fields without decimal places
- How can I call a ASP.Net webservice using AJAX without calling controller
- Generate clients for multiple WSDL files and place it in different package through Spring Gradle
- File upload in AXIS2 webservice
- How to route by call method in proxy with WSO2?
- fetch data from web service to dataset in Delphi
Related Questions in OSX-YOSEMITE
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- NSString caseInsensitiveCompare confusing ordering
- phpinfo reads php5.5 instead of php5.6
- compiling caffe on Yosemite
- In OS X 10.10, can I implement an NSControl without an NSCell?
- Cannot run MySQL after unzipping from a tar archive
- OSX Yosemite Dock magnification disabled
- How can I customize the behavior of the green 'expand window' button so that it only maximizes (instead of taking over the entire screen)?
- Where is chrome.storage.local stored for Chrome Apps?
- PyGame Installation Mac OS X
- CalledProcessError with buildozer and kivy on OSX Yosemite
- sbt stuck at Getting org.scala-sbt sbt 0.13.8 ... on Mac OS X Yosemite with Java 8 and scala 2.11.6
- Xcode 7 run on Mac OSX 10.10 Yosemite
- Focus border not appearing on html button or select in Google Chrome (Only OSX 10.10.3)
- No pythonw in Python 3.4 OS X 10.10?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Before thinking about installing PHP manually in your OS X, I would like to give you some updates regarding OS X Yosemite.
[1] Yosemite includes Apache 2.4, so you don't need to worry about Apache installation.
[2] Mac OS X runs atop UNIX. So most UNIX software installs easily on Mac OS X. Furthermore, Apache and PHP come packaged with OS X. To create a local web server, all you need to do is enable them and install MySQL.
Now here is step by step process to install PHP and Mysql -
First, open the Terminal app and switch to the root user to avoid permission issues while running these commands.
sudo su -Enable Apache on Mac OS X by this command.
apachectl startNow you can check localhost by accessing http://localhost . If it is working it will show it works!
Before enabling PHP for apache create a backup of the default Apache configuration which will be helpful for comparison against future versions of Mac OS X and then enable PHP for APACHE -
cd /etc/apache2/cp httpd.conf httpd.conf.bakNow edit the Apache configuration. Feel free to use TextEdit if you are not familiar with vi.
vi httpd.confUncomment the following line (remove #):
LoadModule php5_module libexec/apache2/libphp5.soRestart Apache:
apachectl restartYou can verify PHP is enabled by creating a phpinfo() page in your DocumentRoot.The default DocumentRoot for Mac OS X Yosemite is /Library /WebServer/Documents. You can verify this from your Apache configuration.
grep DocumentRoot httpd.confNow create the phpinfo() page in your DocumentRoot:
echo '<?php phpinfo();' > /Library/WebServer/Documents/phpinfo.phpVerify PHP by accessing http://localhost/phpinfo.php
Install Mysql on OS X :
Download the MySQL DMG for Mac OS X
Install MySQL
The README suggests creating aliases for mysql and mysqladmin. However there are other commands that are helpful such as mysqldump. Instead, I updated my path to include /usr/local/mysql/bin.
export PATH=/usr/local/mysql/bin:$PATHNote: You will need to open a new Terminal window or run the command above for your path to update.
I also run mysql_secure_installation. While this isn’t necessary, it’s good practice.
Connect PHP and MySQL
You need to ensure PHP and MySQL can communicate with one another. There are several options to do so. I do the following:
cd /varmkdir mysqlcd mysqlln -s /tmp/mysql.sock mysql.sockAdditional Configuration (optional)
The default configuration for Apache 2.4 on OS X Yosemite seemed pretty lean. For example, common modules like mod_rewrite were disabled. You may consider enabling this now to avoid forgetting they are disabled in the future.
I edited my Apache Configration:
vi /etc/apache2/httpd.confI uncommented the following lines (remove #):
LoadModule deflate_module libexec/apache2/mod_deflate.soLoadModule expires_module libexec/apache2/mod_expires.soLoadModule rewrite_module libexec/apache2/mod_rewrite.soSo these were the steps to install PHP Manually .I hope it will be helpfull. :-)