Entropy.ch Discussion Forums Forum Index Entropy.ch Discussion Forums
Discussion forums about Mac OS X software development.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please Help! Web Sharing not starting after install
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X
View previous topic :: View next topic  
Author Message
jake69



Joined: 07 May 2006
Posts: 1

PostPosted: Fri May 12, 2006 5:47    Post subject: Please Help! Web Sharing not starting after install Reply with quote

Please help, I went to entropy.ch, downloaded the appropriate package of php5 for my intel macbook pro version of apache (PHP 5 on Mac OS X 10.4, PPC and Intel PHP 5.1.4 for Apache 1.3).

First, after the package said "successful install" I could not tell where or if it installed (there is no "show hidden" option on my finder menus. And there is no usr folder I can see).

The test.php did not work so Then I tried to turn off and restart Web Sharing to see if that was the deal. Now Web Sharing won't start - it just always says "Web Sharing is Starting Up" but never completes.

PLease help get me back up! Even if I have to go back to php4 - which was working fine. I've tried a complete reinstall of OS X to no avail.

I need step by step tutorial to get web sharing back up and running. Any help????
Back to top
View user's profile Send private message AIM Address
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Fri May 12, 2006 7:15    Post subject: Reply with quote

1.) Read the other postings here, specifically the ones about removing *other* PHP modules / load directives

2.) You need to provide more information, specifically error messages. No error messages = no way for us to help. Run "sudo apachectl start" in the terminal and provide the output of that command.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
wmleler



Joined: 02 May 2006
Posts: 3

PostPosted: Fri May 12, 2006 9:57    Post subject: I have same problem Reply with quote

I just tried to install 5.1.4-1 on my MacBook Pro. I had PHP4 running previously so I commented out the PHP LoadModule and AddModule lines in /etc/httpd/httpd.conf

Even so, regardless of whether I use the apachectl or use System Preferences to stop and then start Web sharing, the Web sharing never finishes starting up. I don't see any error messages in the console.

Interestingly enough, if I just type in the command
/usr/local/php5/bin/php -v
nothing happens for 2.5 minutes, then it prints out the version.
Here's the output from timing the command:

% time /usr/local/php5/bin/php -v
PHP 5.1.4 (cli) (built: May 4 2006 22:00:39)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
0.058u 0.020s 2:28.17 0.0% 0+0k 0+6io 0pf+0w

I've gone back to php4 for now... Let me know if you need any other info on my config.

--wm
Back to top
View user's profile Send private message
wmleler



Joined: 02 May 2006
Posts: 3

PostPosted: Fri May 12, 2006 10:25    Post subject: More info Reply with quote

With PHP4 running, I edit httpd.conf to remove the PHP LoadModule and AddModule lines. I add a link in the users directory to /usr/local/php5/entropy-php.conf. Finally, I issue sudo apachectl graceful. Wait about 5 minutes (during this time, apache is not responding to http requests, even non-PHP ones). After that, PHP5 works!

Unfortunately, if you then reboot the machine, apache doesn't start.

If I try to restart it using apachectl, I get a warning message:
Processing config file: /private/etc/httpd/users/entropy-php.conf
[Fri May 12 02:17:11 2006] [warn] module mod_php5.c is already added, skipping

After that, if you wait long enough (around 3 minutes after apachectl claims that httpd is started), apache and PHP5 start working.

Stopping and starting Personal Web Sharing from System Preferences doesn't seem to work at all.

I get none of these problems if I delete the symlink from httpd/users and go back to PHP4.
Back to top
View user's profile Send private message
joshstrike



Joined: 18 Apr 2006
Posts: 1

PostPosted: Mon May 15, 2006 7:38    Post subject: nightmare Reply with quote

Same thing for me. Installed the package and web sharing wouldn't start up at all, just hung. Nightmare. had to delete that symfile. Not sure what that is or how this works; this is over my head. Had a previous install of php5 that never worked. Back to php4 how, without GDlib 'cause I can't get it to compile completely. Nothing but nightmares w/ php since I jumped onto intel...
Back to top
View user's profile Send private message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Mon May 15, 2006 9:11    Post subject: Reply with quote

Are you *sure* that no other PHP 4 or 5 module is loaded? So far, every single time, that was the problem.

If you are *really* sure, give me access to an affected machine via SSH so I can check it out...
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Tetonne



Joined: 14 May 2006
Posts: 5

PostPosted: Wed May 17, 2006 21:14    Post subject: Reply with quote

Syntax error on line 8 of /usr/local/php5/entropy-php.conf:
Cannot load /usr/local/php5/libphp5.so into server: Symbol not found: _ap_unblock_alarms\n Referenced from: /usr/local/php5/libphp5.so\n Expected in: /Library/Apache2/bin/httpd\n


after install of entropy-php-5.1.4-3.tar.gz

hep needed please Embarassed
_________________
MacOS 10.4.7 - Apache 2.0.58 - Tomcat 5.5.17 - MySQL 5.0.22 - Php 5.04
Back to top
View user's profile Send private message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Wed May 17, 2006 22:49    Post subject: Reply with quote

You have some weird Apache 2 thing going on there, certainly nothing I or Apple ever distributed (It's in /Library/Apache2).

Maybe it helps if you wipe /usr/local/php5 and reinstall my package.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
wmleler



Joined: 02 May 2006
Posts: 3

PostPosted: Tue May 23, 2006 10:44    Post subject: update, now working Reply with quote

Don't know what changed, but I just installed 5.1.4-5 and it worked great. Web sharing starts up almost instantly. Never did get 5.1.4-1 working. Oh well.

thanks for getting it working for me!

--wm
Back to top
View user's profile Send private message
tmurray



Joined: 17 Sep 2007
Posts: 2

PostPosted: Tue Sep 18, 2007 15:55    Post subject: php5 config install syntax error with libphp5.so line? Reply with quote

I seem to be having the same problem here but starting over does not seem to fix it.

I downloaded from www.entropy.ch/software/macosx/php/ and ran the install ( PHP Apache Module - v 5.2.4-1 ). The entropy-php.conf file is causing an error and Apache won't start up (Web Sharing is turned off and when I turn it on manually it says "starting up" forever). The problem, according to the mac Console, is that the line "LoadModule php5_module /usr/local/php5/libphp5.so" has a syntax error. (Web sharing works fine when I remove the offending .conf file.) I am a php novice and have no idea what to do next. This is my first time trying to load php on this machine (MacBook Pro, OSX 10.4.10) so I don't think there is an "older version" problem. Now when I try to trash and re-install php5 the installer shows an unhelpful "there were errors installing the software..try again later" (no errors shown in Console).
Back to top
View user's profile Send private message Visit poster's website
tmurray



Joined: 17 Sep 2007
Posts: 2

PostPosted: Thu Sep 20, 2007 16:05    Post subject: Problem solved Reply with quote

Solved my problem and will post it here in case anyone else makes the same goof.

I had downloaded the php package for Apache 2, thinking that since I had the most recent OSX it would have the most recent Apache listed on the Mac-PHP page, but in fact OSX ships with Apache 1.3.
Back to top
View user's profile Send private message Visit poster's website
justinbyrne



Joined: 24 Sep 2007
Posts: 1

PostPosted: Mon Sep 24, 2007 12:46    Post subject: Reply with quote

Alright, I struggled with this for several hours yesterday, I was getting the warning that php5 was already started. Eventually I got it to work by disabling the include at the bottom of httpd.conf. I didn't test any further to see if it was in my .conf file that apple created or the +entropy file, but wherever it was, it works like a dream now.
_________________
byrne
Back to top
View user's profile Send private message Visit poster's website AIM Address
crazyb



Joined: 01 Jan 2008
Posts: 3
Location: united Kingdom

PostPosted: Tue Jan 01, 2008 17:24    Post subject: Web Sharing not work Reply with quote

I have tried all the instructions to solve the problem but i keep on getting the same problem. I installed PHP 5.2.4 and i have never tried to install anything else. i use Mac OS X 10.4.11,

When i try to turn on Web Sharing, it says web Sharing Starting up and it never does. I have tried turning it on using Terminal and i can't find it on /usr/local/bin i have no idea where to to locate Apache. Could you please help me out, i have tried for two days.

Or where i can turn on web sharing with out all these problems. i would really appreciate your help.
_________________
the geek diaries
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
beeners



Joined: 13 Dec 2006
Posts: 38
Location: NC, USA

PostPosted: Wed Jan 02, 2008 8:34    Post subject: Re: Web Sharing not work Reply with quote

crazyb wrote:
I have tried all the instructions to solve the problem but i keep on getting the same problem. I installed PHP 5.2.4 and i have never tried to install anything else. i use Mac OS X 10.4.11,

When i try to turn on Web Sharing, it says web Sharing Starting up and it never does. I have tried turning it on using Terminal and i can't find it on /usr/local/bin i have no idea where to to locate Apache. Could you please help me out, i have tried for two days.


Apache is not in /usr/local/bin so you don't need to look there for it.

Here are a few ideas to start troubleshooting:

Open Activity Monitor (in /applications/utilities), select All Processes, and type httpd in the filter box. If nothing show up then Apache is not running.

Open a terminal window and type this
Code:
sudo apachectl configtest

Enter your password at the prompt. What does the output say?

Post what you find and we can continue troubleshooting from there.

Beeners
Back to top
View user's profile Send private message
crazyb



Joined: 01 Jan 2008
Posts: 3
Location: united Kingdom

PostPosted: Wed Jan 02, 2008 19:18    Post subject: I just ran sudo apachectl configtest and i get an error Reply with quote

Thanks mate

I just ran the command sudo apachectl configtest below and i get the message below. i am so desparate for this thing to work, i am learning PHP and i feel useless for once.

s-computer:/Users/11 root# sudo apachectl configtest
dyld: NSLinkModule() error
dyld: Symbol not found: _ap_popenf_ex
Referenced from: /usr/libexec/httpd/mod_log_forensic.so
Expected in: flat namespace

/usr/sbin/apachectl: line 175: 369 Trace/BPT trap $HTTPD -t
_________________
the geek diaries
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group