LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-20-2007, 12:32 PM   #1
suna22
LQ Newbie
 
Registered: Dec 2005
Location: Winnipeg
Distribution: Slackware 11.0
Posts: 12

Rep: Reputation: 0
httpd could not be started


hi - i recently installed slackware 11, and had very little trouble getting the LAMP server to work. However, an app that we want to install needs php 5. Slack 11 comes with php 4.4.4. I used pkgtool, and removed php4.4.4. I then found a php5 "slack package" (ends in .tgz) I installed it, and when i typed php -v, it puked a whole bunch of stuff on the screen.

I figured it puked because apache had been complied with the old php (4.4.4) I then ran pkgtool again, and removed apache 1.3.37. I then downloaded apache and php (source), and went through the whole process to install both of them (unzip apachec tar to a location, thpe ./configure --prefix=/home/httpd --enable-module=so etc. I then did the make & make install.

I did the same thing for php 5.2. All of this went fine. However, when i go to the Konsloe and type
apachectl start
i get the following output

/usr/sbin/apachectl: line 87 /usr/sbin/apachectl No such file or directory.
/usr/sbin/apachectl start: httpd could not be started

I have looked high and low for the answer, but have not found it.

Would it be simpler to reinstall Slackware 11, and try and upgrade php4.4.4 to php 5?

If so - how does one upgrade php 4.4.4 to php 5? Can the slackware package manager do it?

Thanks.
 
Old 02-20-2007, 01:07 PM   #2
yuchai
Member
 
Registered: Jan 2005
Location: New York, NY
Distribution: Slackware 13.0
Posts: 56

Rep: Reputation: 15
Hi - where did you find the php5 package that was used? I just wanted to make sure you're aware that there's an official php5 package out there for maximum compatibility:

http://packages.slackware.it/package...p-5.2.0-i486-1

Download the package, and simply execute

# upgradepkg php-5.2.0-i486-1.tgz
 
Old 02-20-2007, 01:31 PM   #3
suna22
LQ Newbie
 
Registered: Dec 2005
Location: Winnipeg
Distribution: Slackware 11.0
Posts: 12

Original Poster
Rep: Reputation: 0
hi

hi - i did not use a package to insatll

i went to php.net and got the official php 5.2 tarball

i then typed tar -zxvf blah blah blah

i then did the

./configure --with -mysql yada yada yada yada yada

Could this be why my httpd will not start?
 
Old 02-20-2007, 01:32 PM   #4
suna22
LQ Newbie
 
Registered: Dec 2005
Location: Winnipeg
Distribution: Slackware 11.0
Posts: 12

Original Poster
Rep: Reputation: 0
hi again

hi again - i found the php5 pacakge for slackware from

linuxpackages.net
 
Old 02-20-2007, 02:05 PM   #5
yuchai
Member
 
Registered: Jan 2005
Location: New York, NY
Distribution: Slackware 13.0
Posts: 56

Rep: Reputation: 15
Hi - at this point what you can try is to uninstall your custom built version of php and then install the official version.

1. Go to your build directory and run "make uninstall".
2. "ls /var/log/packages |grep php" to see what the current installed copies of php is/if any
3. Download official php5 package from my previous post
3. If a version of php is found from step 2 then use "upgradepkg" on official php5 package, otherwise use "installpkg"

Hope this helps.
 
Old 02-20-2007, 02:06 PM   #6
suna22
LQ Newbie
 
Registered: Dec 2005
Location: Winnipeg
Distribution: Slackware 11.0
Posts: 12

Original Poster
Rep: Reputation: 0
thanks so much!

Hi - thanks so much for pointing me to http://packages.slackware.it

I will be visiting that site very often in the future!

I downloaded the php package from the site, then simply typed.

installpkg (packagename).tgz

I then downloaded the apache package from the same location, and installed it the same way.

When i typed apachectl start, it puked with an error similar to the following.

cannot load /usr/libexec/apache/libphp4.so

I then went into /etc/apache/ and edited the mod_php.conf file

I simply changed the number 4 to the number 5 (in two places on the only line in the file)

Problem solved!

It turns out that apache was trying to start with the old php4, which is not in the system anymore.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd could not be started - Virtual Hosts aztek Linux - Newbie 1 05-25-2006 11:06 PM
httpd could not be started lord-fu *BSD 7 10-06-2005 05:46 PM
how do I shutdown httpd after i started it? under slackware babyboss Slackware 3 10-02-2004 01:42 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
Httpd Could Not Be Started Tanc Linux - Networking 1 01-08-2004 05:09 PM


All times are GMT -5. The time now is 09:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration