|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Quote:
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 |
|
#4
|
|||
|
|||
|
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 |
|
#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!!! ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Upgrade Problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|