Categories

See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

OSX installing php 5.4

General Tech Bugs & Fixes

Max. 2000 characters
Replies

usr_profile.png

User

( 5 months ago )

I downloaded Macports and run a command I get online, which would install php 5.4. It took a while, but seemed to work successfully. I then copied the php.ini.development and renamed it php.ini like suggested my Mac Ports, however when I type php -v in terminal I still see 5.3

What steps have I missed, what do I need to do to get it to use the php 5.4 :S

usr_profile.png

User

( 5 months ago )

Macports should updated your $PATH automatically. You can verify this by typing the following in your terminal window

~> which php
/opt/local/bin/php

If the path returned from which php is /usr/bin/php you'll need to updated your terminal session, by resetting system path

~> source ~/.profile

Try the which php again. If /usr/bin/php is still returned, add the following line to ~/.profile file

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

what's your interest


forum_ban8_5d8c5fd7cf6f7.gif