LinuxQuestions.org
Visit Jeremy's Blog.
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 08-13-2012, 02:42 PM   #16
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-current/Debian 10
Posts: 76

Rep: Reputation: 33

Do you have the apr and apr-util packages installed ?

Last edited by sorinm; 08-13-2012 at 02:44 PM.
 
1 members found this post helpful.
Old 08-13-2012, 02:50 PM   #17
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
More generally, did you make a full install of Slackware 13.37?
 
1 members found this post helpful.
Old 08-13-2012, 02:51 PM   #18
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by sorinm View Post
Do you have the apr and apr-util packages installed ?
You mean the libapreq2 packages for apache request?
 
Old 08-13-2012, 02:53 PM   #19
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-current/Debian 10
Posts: 76

Rep: Reputation: 33
ls /var/log/packages | grep apr-
 
1 members found this post helpful.
Old 08-13-2012, 02:53 PM   #20
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Didier Spaier View Post
More generally, did you make a full install of Slackware 13.37?
Yes, only thing i chose not to install was KDE and XFCE packages
 
Old 08-13-2012, 02:59 PM   #21
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by sorinm View Post
ls /var/log/packages | grep apr-
Code:
bash-4.2# ls /var/log/packages | grep apr-
apr-1.4.6-i486-1
apr-util-1.4.1-i486-3
 
Old 08-13-2012, 02:59 PM   #22
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-current/Debian 10
Posts: 76

Rep: Reputation: 33
Ok, major force is needed.

rm -rf /etc/httpd
slackpkg remove httpd php (because deleting /etc/httpd will delete php.ini)
slackpkg install httpd php
apachectl start

If this failes:

1) you have upgraded your system to current at some point and you don`t know this
2) you screwed very bad the system
 
1 members found this post helpful.
Old 08-13-2012, 03:03 PM   #23
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by j9x.inca View Post
Yes, only thing i chose not to install was KDE and XFCE packages
This answer looks a little strange to me, as in Slackware 13.37 there is no XFCE series of packages.

Just wondering: are you sure you didn't install Slackware current instead of Slackware 13.37? I ask that because there *is* an XFCE series of package at present, but only in Slackware current.

So, which media did you use to install Slackware ? If you downloaded an ISO image from a mirror, please indicate the exact name of that ISO.

Other than that, please tell copy/paste here the line that you un commented in /etc/slackpkg/mirrors.

Last edited by Didier Spaier; 08-13-2012 at 03:05 PM.
 
1 members found this post helpful.
Old 08-13-2012, 03:04 PM   #24
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by sorinm View Post
Ok, major force is needed.

rm -rf /etc/httpd
slackpkg remove httpd php (because deleting /etc/httpd will delete php.ini)
slackpkg install httpd php
apachectl start

If this failes:

1) you have upgraded your system to current at some point and you don`t know this
2) you screwed very bad the system
This worked, as it has before but the second I touch the httpd.conf it seems to kill itself, maybe im just not editing the httpd.conf for php correctly.
 
Old 08-13-2012, 03:06 PM   #25
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Update:
The second i edited httpd.conf, the only line i touched was that i uncommented the:
Code:
Include /etc/httpd/mod_php.conf
and now same problem again?
 
Old 08-13-2012, 03:10 PM   #26
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
For the moment do not edit httpd.conf, it should be as initially installed with "slackpkg install".

Only when Apache will be working you may begin a specific configuration.
 
1 members found this post helpful.
Old 08-13-2012, 03:14 PM   #27
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Didier Spaier View Post
For the moment do not edit httpd.conf, it should be as initially installed with "slackpkg install".

Only when Apache will be working you may begin a specific configuration.
Ok that is done, it works now,but I'd like to get php working. My server works because i can go to localhost in web browser and it says "It Works!". If i go to localhost/index.php, i just shows me a text version of the php instead of actually executing the php:
index.php:
Code:
<?php
phpinfo();
?>
^It should show php information, but instead it just shows the underlying code.

Now i understand that i need to edit httpd.conf to get php working, but if I do it causes problems.

Last edited by j9x.inca; 08-13-2012 at 03:16 PM.
 
Old 08-13-2012, 03:17 PM   #28
sorinm
Member
 
Registered: Jul 2012
Location: RO
Distribution: Slackware64-current/Debian 10
Posts: 76

Rep: Reputation: 33
Uncomment the following line in httpd.conf:

#Include /etc/httpd/mod_php.conf

Try to edit your configuration with a console editor (pico, nano, vi). Maybe the X editor is breaking the text in your httpd.conf
 
1 members found this post helpful.
Old 08-13-2012, 03:18 PM   #29
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by sorinm View Post
Uncomment the following line in httpd.conf:

#Include /etc/httpd/mod_php.conf

Try to edit your configuration with a console editor (pico, nano, vi). Maybe the X editor is breaking the text in your httpd.conf
I use vim, but ill try to use pico and see if that helps. I'd hope vim isn't failing me like that.
 
Old 08-13-2012, 03:20 PM   #30
j9x.inca
Member
 
Registered: Jul 2012
Location: Fort Drum, NY, US
Distribution: Arch Linux
Posts: 63

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by sorinm View Post
Uncomment the following line in httpd.conf:

#Include /etc/httpd/mod_php.conf

Try to edit your configuration with a console editor (pico, nano, vi). Maybe the X editor is breaking the text in your httpd.conf
Ok tried doing it with pico, and same problem, it just causes server to not work?

even:
Code:
root@reptaur-/srv/httpd/htdocs# apachectl -t
Syntax OK
 
  


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
apache + mono-apache-server2 + mod_mono = little problems... Hedon Debian 1 02-13-2007 12:17 PM
apache 1.3 problems Dill Linux - Software 4 09-05-2004 05:01 PM
Apache: Several Problems! overbored Linux - Software 5 08-31-2004 10:01 PM
Apache Problems gdboling Linux - Networking 9 09-01-2003 01:49 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM

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

All times are GMT -5. The time now is 04:00 PM.

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