SunQuest
           BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old July 29th, 2004, 02:44 PM
SANetworking SANetworking is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: San Antonio, Texas
Posts: 71 SANetworking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 m 44 sec
Reputation Power: 5
Upgrade Problems

Hello Everyone,

First of all, I really appreciate any help you guys can give me. I'm no FreeBSD expert.

OK, so my set up: Basically, an Intranet. We have PHP Scripts on th server which I wrote, which everyone in the office accesses by IP. (Go to Internet Explorer: http://192.168.1.5). It isn't a public webserver or anything like that.

That being said, I updated cvsup last night, and did portupgrade on Apache, MySQL and PHP.

Current Versions Installed:
Apache: 1.3.31
PHP: 4.3.8
MySQL: 3.23.58

Here is the problems I'm having:

1) Apache no longer starts up automatically. I have to manually do an "apachectl start" to get Apache up and running. What logs can I check ot see why Apache isn't starting up?

2) PHP doesn't know how to connect to mySQL. Somehow when I did portupgrade, I guess it didn't upgrade PHP to a version with MySQL Installed?? Here is some info from phpinfo();

Code:
   Build Date Jul 29 2004 00:20:47
   Configure Command './configure' '--enable-versioning'
   '--enable-memory-limit' '--with-layout=GNU'
   '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
   '--with-regex=php' '--disable-cli' '--with-apxs=/usr/local/sbin/apxs'
   '--prefix=/usr/local' 'i386-portbld-freebsd4.8'
   Server API Apache
   Virtual Directory Support disabled
   Configuration File (php.ini) Path /usr/local/etc/php.ini
   Scan this dir for additional .ini files /usr/local/etc/php
   PHP API 20020918
   PHP Extension 20020429
   Zend Extension 20021010
   Debug Build no
   Thread Safety disabled
   Registered PHP Streams php, http, ftp
   [2]Zend logo This program makes use of the Zend Scripting Language
   Engine:
   Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


Please, any help you can provide, I'd appreciate it. I'm going to be here until I can get it fixed.

Thanks so much guys, I really appreciate it!!

PS- I can pay you to help me fix this if needed.

Reply With Quote
  #2  
Old July 29th, 2004, 03:16 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Hi,

the standard apache startscript is placed in /usr/local/etc/rc.d, and usually relys on variables that are initialized in /etc/rc.conf. Check if a startup script is present (usually apache.ch), make sure everything is ok (i.e. the httpd binary is in the correct location) and that the necessary variables are set in rc.conf (apache_enable, apache_flags, apache_pidfile). The startup script provided by apache is fairly well commented....

do you use the php4-mysql port?
(/usr/ports/databases/php4-mysql)

-Steven

Reply With Quote
  #3  
Old July 29th, 2004, 03:49 PM
SANetworking SANetworking is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: San Antonio, Texas
Posts: 71 SANetworking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 m 44 sec
Reputation Power: 5
Quote:
Originally Posted by stevengs
Hi,

the standard apache startscript is placed in /usr/local/etc/rc.d, and usually relys on variables that are initialized in /etc/rc.conf. Check if a startup script is present (usually apache.ch), make sure everything is ok (i.e. the httpd binary is in the correct location) and that the necessary variables and flags are set to "YES" in rc.conf (apache_enable, apache_flags, apache_pidfile). The startup script provided by apache is fairly well commented....

do you use the php4-mysql port?
(/usr/ports/databases/php4-mysql)

-Steven


Steven,

You are a saint! Thanks! Apache is running again. apache_enable was set to NO. I updated that, then also cleaned up my rc.d file. sysinstall made it a mess.

To upgrade PHP, here is what I did.

Code:
portupgrade -o /usr/ports/www/mod_php4 mod_php4


Was that wrong? Is there any way you can walk me through how to undo that and how to go through doing the PHP-MySQL??

Thanks So much Steven.

-Ben

Reply With Quote
  #4  
Old July 29th, 2004, 04:31 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
awww, schucks. don't mention it...

that upgrade was fine, (however, when the ports tree is in default location, as yours is, you do not need the -o switch: "portupgrade mod_php4" suffices).

have you rechecked your php.ini file (likely in /usr/local/etc/)? It may have been overwritten or changed...

The mod_php4 is the apache module. If you are having problems connecting to MySQL, maybe you need the php4-mysql port. The php ports were split up and it all got a bit confusing (at least for me)... I am no php guru.


-Steven

Reply With Quote
  #5  
Old July 29th, 2004, 05:10 PM
SANetworking SANetworking is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: San Antonio, Texas
Posts: 71 SANetworking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 m 44 sec
Reputation Power: 5
I went ahead and ran the meta thing for php4-extensions, and it got MySQL Installed and enabled. I just copied over the php.ini-reccomended file. It seems to be working...I just need to tweak my php.ini file I think.

Thanks so much!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Upgrade Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway