Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 9, 2013, 12:39 AM   #1
cakas6933
macrumors newbie
 
Join Date: Jan 2013
Angry [php] - php problems os x mountain lion 10.8.2

Some days I'm in big trouble with my PHP on OS X 10.8.2 mountain lion.
I did a clean installation of the x mountain lion and did all the updates. I'm currently with x 10.8.2.
I activated the apache through the terminal (sudo apachectl start), all right and normal. I tested apache (http://localhost/) on my safari browser, appeared its works!. I edited my httpd.conf through the terminal uncomment the line LoadModule php5_module libexec/apache2/libphp5.so to enable PHP. I created the file info.php in my document root (<? Php phpinfo ();?>). My problem is now, when I go through testing in the browser (http://localhost/info.php) appears only the code (<? Php phpinfo ();?>), Ie, is not playing my PHP. I've done several files. Php and only interprets the code in the browser. Already tested on all browsers and also not worked. Please somebody me some solution, I do not know what's going wrong. I thank all who try to solve my problem. Thank you!
cakas6933 is offline   0 Reply With Quote
Old Jan 22, 2013, 06:03 PM   #2
s97fever
macrumors newbie
 
Join Date: Jan 2013
Try upgrading the PHP version on the mac OS X.

I'm by no means an expert and I'm new but I've been trying to apply the steps to upgrade my PHP version from this link:

http://mac.tutsplus.com/tutorials/se...mountain-lion/

Right now I'm on step where you do the Installing
First, while in PHP’s unarchived source folder, execute the following configure command: and then it lists them 1-57

I have no idea though how to do that or what they are talking about?
Any ideas?
s97fever is offline   0 Reply With Quote
Old Jan 23, 2013, 05:34 AM   #3
phyrexia
macrumors 6502a
 
Join Date: Sep 2010
PHP scripts begin with

Code:
<?php
not with

Code:
<? php
Does this help?

Quote:
Originally Posted by cakas6933 View Post
Some days I'm in big trouble with my PHP on OS X 10.8.2 mountain lion.
I did a clean installation of the x mountain lion and did all the updates. I'm currently with x 10.8.2.
I activated the apache through the terminal (sudo apachectl start), all right and normal. I tested apache (http://localhost/) on my safari browser, appeared its works!. I edited my httpd.conf through the terminal uncomment the line LoadModule php5_module libexec/apache2/libphp5.so to enable PHP. I created the file info.php in my document root (<? Php phpinfo ();?>). My problem is now, when I go through testing in the browser (http://localhost/info.php) appears only the code (<? Php phpinfo ();?>), Ie, is not playing my PHP. I've done several files. Php and only interprets the code in the browser. Already tested on all browsers and also not worked. Please somebody me some solution, I do not know what's going wrong. I thank all who try to solve my problem. Thank you!
__________________
Powermac11,2 // Macbookpro8,3 // iPad(3), 32GB + VZW // IB i7 Hackintosh (BAMF) // Synology DS1513+, DS411
phyrexia is offline   0 Reply With Quote
Old Feb 2, 2013, 06:17 PM   #4
LittleRedBird
macrumors member
 
Join Date: Jun 2009
Quote:
Originally Posted by cakas6933 View Post
Some days I'm in big trouble with my PHP on OS X 10.8.2 mountain lion.
I did a clean installation of the x mountain lion and did all the updates. I'm currently with x 10.8.2.
I activated the apache through the terminal (sudo apachectl start), all right and normal. I tested apache (http://localhost/) on my safari browser, appeared its works!. I edited my httpd.conf through the terminal uncomment the line LoadModule php5_module libexec/apache2/libphp5.so to enable PHP. I created the file info.php in my document root (<? Php phpinfo ();?>). My problem is now, when I go through testing in the browser (http://localhost/info.php) appears only the code (<? Php phpinfo ();?>), Ie, is not playing my PHP. I've done several files. Php and only interprets the code in the browser. Already tested on all browsers and also not worked. Please somebody me some solution, I do not know what's going wrong. I thank all who try to solve my problem. Thank you!
I went through the same steps and had the same problem as you. Restarting Apache through the terminal solved my problem. The command I used was:

sudo apachectl restart
LittleRedBird is offline   0 Reply With Quote
Old Jun 10, 2014, 09:08 AM   #5
safisa1987
macrumors newbie
 
Join Date: Jun 2014
someone find a solution to the problem
I know that the post since log time, but really I'm Blocked
safisa1987 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
TextWrangler and PHP Problems bLaZ3n Mac Programming 11 Mar 8, 2014 12:41 PM
Trying to upgrade the native PHP installation on Mountain Lion s97fever Mac Programming 0 Jan 22, 2013 06:26 PM
Problems with Mountain Lion snerkler MacBook Pro 1 Nov 14, 2012 05:11 PM
Mountain Lion Problems Mr Ski 73 Mac Pro 5 Jul 27, 2012 11:22 AM

Forum Jump

All times are GMT -5. The time now is 05:31 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC