LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-14-2006, 03:48 PM   #1
cornbeef
LQ Newbie
 
Registered: Jan 2006
Location: nyc
Distribution: Slackware 10.2
Posts: 20

Rep: Reputation: 0
Question Apache2 help please


i installed all packages on slackware 10.2 which includes apache 1.3.33. ive already upgraded the package for mysql 5 and i did not encounter any problems. i tried to upgrade the package for apache - i receivied errors. i looked around in the forums and was instructed to remove apache1 then installpkg apache 2. as you can see ive already downloaded apache2 to /apache2-2.0.55-i486-1jim.tgz

whats the correct command to remove apache1? so i can run
the command installpkg apache2-2.0.55-i486-1jim.tgz sucessfully?


root@DarkStar:# find / -name apache* -print
/usr/doc/apache-1.3.33
/usr/man/man8/apachectl.8.gz
/usr/sbin/apachectl-standard
/usr/sbin/apacheconfig
/usr/sbin/apachectl
/usr/sbin/apachectl-mod_ssl
/usr/share/vim/vim63/syntax/apache.vim
/usr/share/vim/vim63/syntax/apachestyle.vim
/usr/include/apache
/usr/libexec/apache
/var/log/setup/apache
/var/log/packages/apache-1.3.33-i486-1
/var/log/scripts/apache-1.3.33-i486-1
/var/log/apache
/var/www/icons/apache_pb.gif
/var/www/icons/apache_pb.png
/var/www/htdocs/apache_pb.gif
/var/www/htdocs/manual/images/apache_header.gif
/var/www/htdocs/manual/images/apache_pb.gif
/var/www/htdocs/manual/programs/apachectl.html.ja.jis
/var/www/htdocs/manual/programs/apachectl.html.html
/var/www/htdocs/manual/programs/apachectl.html.en
/ntfs/Documents and Settings/zero/My
/etc/apache
/opt/kde/share/apps/quanta/dtep/php/apache.tag
/apache2-2.0.55-i486-1jim.tgz
root@DarkStar:#
 
Old 01-14-2006, 03:54 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Code:
# removepkg apache-1.3.33-i486-1
Note: you may have to delete the files in /etc/apache automatically, unless you want to keep the configuration of course
 
Old 01-14-2006, 08:38 PM   #3
cornbeef
LQ Newbie
 
Registered: Jan 2006
Location: nyc
Distribution: Slackware 10.2
Posts: 20

Original Poster
Rep: Reputation: 0
thanks Doc

i did as you told and ran the command # removepkg apache-1.3.33-i486-1 and i also moved the original folder /etc/apache to a temporary directory i created
/home/TempFiles/apache

i ran the same find command to see what was installed - i was wondering if it looks correct, also the install package itself apache2-2.0.55-i486-1jim.tgz is still located in the / directory - can i run the command rm apache2-2.0.55-i486-1jim.tgz to delete it?
and the file for configuration is the file /etc/apache2?

ive already upgraded to my sql 5.0 - used www.linuxpackages.net - upgrade worked fine
now i have to upgrade to php 5, should i do the same thing - remove the original package and install the new one?

thanks for your help

root@DarkStar:/# find / -name apache* -print
/usr/doc/apache2-2.0.55
/usr/lib/apache2
/usr/man/man8/apachectl.8.gz
/usr/sbin/apachectl
/usr/sbin/apachectl-mod_ssl
/usr/share/vim/vim63/syntax/apache.vim
/usr/share/vim/vim63/syntax/apachestyle.vim
/usr/include/apache2
/usr/libexec/apache
/var/log/setup/apache
/var/log/packages/apache2-2.0.55-i486-1jim
/var/log/removed_packages/apache-1.3.33-i486-1
/var/log/removed_scripts/apache-1.3.33-i486-1
/var/log/scripts/apache2-2.0.55-i486-1jim
/var/log/apache2
/var/www/htdocs/apache_pb.gif
/var/www/htdocs/apache_pb.png
/var/www/htdocs/apache_pb2.gif
/var/www/htdocs/apache_pb2.png
/var/www/htdocs/apache_pb2_ani.gif
/var/www/htdocs/manual/images/apache_pb.gif
/var/www/icons/apache_pb.gif
/var/www/icons/apache_pb.png
/var/www/icons/apache_pb2.gif
/var/www/icons/apache_pb2.png
/var/www/icons/apache_pb2_ani.gif
/var/www/manual/images/apache_header.gif
/var/www/manual/programs/apachectl.html.ko.euc-kr
/var/www/manual/programs/apachectl.html.en
/var/www/manual/programs/apachectl.html
/home/TempFiles/apache
/etc/apache2
/opt/kde/share/apps/quanta/dtep/php/apache.tag
/apache2-2.0.55-i486-1jim.tgz
root@DarkStar:/#
 
Old 01-14-2006, 10:49 PM   #4
cornbeef
LQ Newbie
 
Registered: Jan 2006
Location: nyc
Distribution: Slackware 10.2
Posts: 20

Original Poster
Rep: Reputation: 0
Question

hey doc
i received an error trying to install php 5. it says missing file /etc/apache2/mod_php.conf so i decided to removepkg and attemp to reinstall when i fix problem. i noticed that the that specific file its looking for is located in the original apache folder that i moved to a folder i created /home/TempFiles.

root@DarkStar:/home/TempFiles/apache# ls -l
total 236
-rw-r--r-- 1 root root 348 2004-10-31 16:00 access.conf
-rw-r--r-- 1 root root 36649 2004-10-31 16:00 httpd.conf
-rw-r--r-- 1 root root 12965 2004-10-31 16:00 magic
-rw-r--r-- 1 root root 15020 2004-10-31 16:00 mime.types
-rw-r--r-- 1 root root 343 2003-11-13 16:43 mod_php.conf
-rw-r--r-- 1 root root 343 2003-11-13 16:43 mod_php.conf.example
-rw-r--r-- 1 root root 11111 2005-09-04 13:34 mod_ssl.conf
-rw-r--r-- 1 root root 39762 2005-09-04 23:20 php.ini
-rw-r--r-- 1 root root 38935 2005-09-04 23:20 php.ini-dist
-rw-r--r-- 1 root root 39762 2005-09-04 23:20 php.ini-recommended
-rw-r--r-- 1 root root 357 2004-10-31 16:00 srm.conf
drwxr-xr-x 2 root root 4096 2005-09-04 13:35 ssl.crl/
drwxr-xr-x 2 root root 4096 2005-12-30 15:11 ssl.crt/
drwxr-xr-x 2 root root 4096 2005-12-30 15:11 ssl.csr/
drwx------ 2 root root 4096 2005-12-30 15:11 ssl.key/
drwxr-xr-x 2 root root 4096 2005-09-04 13:35 ssl.prm/
root@DarkStar:/home/TempFiles/apache#

when i installed apache2, it installed a folder etc/apache2

root@DarkStar:/etc/apache2# ls -l
total 136
-rw-r--r-- 1 root root 1955 2005-11-11 08:23 highperformance-std.conf
-rw-r--r-- 1 root root 1955 2005-11-11 08:23 highperformance.conf
-rw-r--r-- 1 root root 36645 2005-11-11 08:23 httpd-std.conf
-rw-r--r-- 1 root root 36645 2005-11-11 08:23 httpd.conf
-rw-r--r-- 1 root root 12958 2005-11-11 08:23 magic
-rw-r--r-- 1 root root 15020 2005-11-11 08:23 mime.types
-rw-r--r-- 1 root root 10724 2005-11-11 08:23 ssl-std.conf
-rw-r--r-- 1 root root 10724 2005-11-11 08:23 ssl.conf
root@DarkStar:/etc/apache2#


my question is, do i move all the original files from apache to the apache2 folder?
and then try reinstalling php 5?
 
Old 01-15-2006, 02:37 AM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
You can delete the apache-2.x.tgz package from / now.

/etc/apache2 is the directory for all configuration files associated with apache

No, don't move all the original files from apache to apache2, there may be some directives that are no longer valid in the new version.

By the way, how are you updating these packages?

PHP is compiled against a version of apache, so you'll need a php package for apache2. I would suggest a package from the same person that did apache2. Look in linuxpackages for a php package that ends in jim.tgz. There is such a package on linuxpackages.net, it goes by the name php-apache2
 
Old 01-15-2006, 04:40 PM   #6
cornbeef
LQ Newbie
 
Registered: Jan 2006
Location: nyc
Distribution: Slackware 10.2
Posts: 20

Original Poster
Rep: Reputation: 0
my root directory is as follows
i have both packages that i downloaded from www.linuxpackages.net
and theyre both from the same maker

root@DarkStar:/# ls -l
total 10856
-rw-r--r-- 1 root root 5055358 2006-01-14 05:32 apache2-2.0.55-i486-1jim.tgz
drwxr-xr-x 2 root bin 4096 2005-12-30 15:11 bin/
drwxr-xr-x 2 root root 4096 2005-12-30 16:57 boot/
drwxr-xr-x 15 root root 40960 2006-01-15 15:47 dev/
drwxr-xr-x 45 root root 4096 2006-01-15 15:47 etc/
drwxr-xr-x 5 root root 4096 1969-12-31 19:00 fat32/
drwxr-xr-x 6 root root 4096 2006-01-14 21:16 home/
drwxr-xr-x 5 root root 4096 2005-12-30 15:11 lib/
drwx------ 2 root root 16384 2005-12-30 14:15 lost+found/
drwxr-xr-x 5 root root 4096 2002-03-16 02:34 mnt/
dr-x------ 1 root root 4096 2006-01-14 03:30 ntfs/
drwxr-xr-x 4 root root 4096 2005-07-28 20:30 opt/
-rw-r--r-- 1 root root 5908863 2006-01-14 22:33 php-5.0.5-i486-4jim.tgz
dr-xr-xr-x 76 root root 0 2006-01-15 10:46 proc/
drwx--x--- 10 root root 4096 2006-01-15 17:26 root/
drwxr-xr-x 2 root bin 8192 2005-07-25 03:19 sbin/
drwxr-xr-x 2 root root 4096 2004-05-12 00:03 sys/
drwxrwxrwt 10 root root 4096 2006-01-15 17:27 tmp/
drwxr-xr-x 19 root root 4096 2005-11-11 08:23 usr/
drwxr-xr-x 17 root root 4096 2005-11-11 08:23 var/
root@DarkStar:/#

when i installed apache2-2.0.55-i486-1jim.tgz
first thing i did was remove package # removepkg apache-1.3.33-i486-1
then i noticed that the /etc/apache folder was still there - so i moved it to a directory /home/TempFiles/apache
then i installed apache2 with command installpkg apache2-2.0.55-i486-1jim.tgz
it installed perfectly and has a folder /etc/apache2
next i removepkg for php.
my next step was to install the php-5.0.5-i486-4jim.tgz
i did intstallpkg php-5.0.5-i486-4jim.tgz
and i got this error.....



root@DarkStar:/# installpkg php-5.0.5-i486-4jim.tgz
Installing package php-5.0.5-i486-4jim...
PACKAGE DESCRIPTION:
php: php 5.0.5 (HTML-embedded scripting language)
php:
php: PHP is an HTML-embedded scripting language. It shares syntax
php: characteristics with C, Java, and Perl. The primary objective
php: behind this language is to make a fast and easy-to-use scripting
php: language for dynamic web sites.
php:
php: More information can be found online at http://www.php.net/
php:
php: Warning: To be used only with the apache 2.x package.
php:
Executing install script for php-5.0.5-i486-4jim...
cp: cannot stat `etc/apache2/php.ini-recommended': No such file or directory

root@DarkStar:/#

when i look at the original apache folder /home/TempFiles/Apache
i find the file php.ini

should i move that file to apache2 folder? and uninstall pakage and then reinstall package? - im assuming by this install, it didnt correctly install?
did i do something worng?
 
Old 01-16-2006, 02:08 AM   #7
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
What are the contents of /etc/apache2 now, it is possible the required file is there but named differently. Also that isn't a fatal error, you should be able to start apache with php enabled and php will use default configuration values
 
Old 01-16-2006, 09:16 AM   #8
cornbeef
LQ Newbie
 
Registered: Jan 2006
Location: nyc
Distribution: Slackware 10.2
Posts: 20

Original Poster
Rep: Reputation: 0
the information on the folders for apache and apache2 are listed in an earlier post, thats why i was wondering if i should move some of the original fils from apache to the apache2 folder. if you were to look at the apache folder, it contains the file thats coming up with the error when i try to install php
should i move the php files from apache to apache2

thanks for your help
 
Old 01-16-2006, 11:22 AM   #9
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Well, the folder listing you gave was before you installed the new version of php.

Check /etc/apache2 for mod_php.conf or mod_php.conf.example, if the file mod_php.conf.example exists rename it to mod_php.conf and make sure httpd.conf has the following line somewhere in it:
Code:
Include /etc/apache2/mod_php.conf
Once that is done try and start apache, lets forget about php.ini for now and let php use its default values. Once it is working you can then think about tweaking php
 
  


Reply



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
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
Apache2 apache2-common WebDav timgerr Linux - Networking 1 08-25-2005 09:41 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM
A little help with apache2 FearPasion710 Linux - Software 1 10-12-2003 06:07 PM
Apache2 help! FearPasion710 Linux - General 3 10-04-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration