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
247 views Asked by ISOs At
2
There are 2 answers
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
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in APACHE
- Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Cannot load modules/mod_dav_svn.so into server
- How to ignore case in regexp mapping in a .htaccess rewrite rule?
- Oracle Http server ISNT-07551
- I cant access file directory with PHP local host on XAMPP. it just shows one of the files I have in my visual studio code
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Issue with Django --> Apache WSGI deployment
- changing the node version used by apache web server
- Apache: How can I redirect to a subfolder with a URL param but serve required content via the main URL?
- Why/How does Apache auto-include "DHE" TLS1.2 ciphers while nginx needs "dhparams" file?
- Set up MX records in apache/Ubuntu to point to external mail server
- How to proxy to another port?
- Php can not upload file out of /var/www/html even after disabling Selinux
- Serve static site on S3 + CloudFlare with Apache retaining the source URL
Related Questions in WEB-SERVICES
- Apache CXF is unable to handle duplicate localnames
- Why do we call all http services 'Web Api/Web Service'?
- Postman Webservice PHP Curl Code POST request giving forbidden error when run in local
- Migrate ASMX web method to WCF which accepts string array
- PKIX failed when using custom SSLcontext with custom keyStore and trustStore
- Problems in Validations via Web Service in a Vue 3 Application
- Maven plugin 100% compatible Java21 to generate stub classes from WSDL file and generate *.wsdl from java classes? A solution
- Kubernetes Ingress Port to Port route
- How to handle a multi thread tests calling a single thread web service in .Net Framework 4.6?
- oracle.dataaccess.dll keep showing up as reference after build of C# web service using Oracle MDAC
- Your thoughts on the suggested architecture for addressing the challenges and maintenance of third-party API implementation
- Issue with BizTalk register WCF-WSHttp adapter while calling web service
- Does PHP SoapClient creates XML to be sent to webservice end point, based on WSDL file, while using CURL the XML should be manually created?
- Invoice API in Authorize.net like Square
- Publish JAXWS Endpoint in the same port than Spring boot
Related Questions in OSX-YOSEMITE
- macOS 12.2.X (Monterey) as a developer account -- how can I "csrutil disable" all my APFS partitions?
- VS Code Stop Support for Yosemite Mac OS 10.10 as Electron fails
- Command not found after installing php
- What is the minimum version of macos Apple support?
- How do I copy to clipboard in Safari 8 on Yosemite OS X?
- existing bash script for deleting old backup files - how does it work?
- How to get FavIcon of the current tab in macos(OSX) Swift
- Error installing postgresql with homebrew
- Cannot install anything with brew, Error: Failed to download resource "git--html"
- Rails 5.1.7 Server Hangs On First Request
- Mac command batch not finding file
- Swift writing log file in yosemite
- How to debug webrtc osx project use xcode
- 'Emulator can not be opened because of a problem' AVD not working in Android Studio on Mac Yosemite
- Trying to install git-osx for the first time, download does nothing
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?
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)
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. :-)