LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-09-2005, 10:45 AM   #1
MeGoesSlack
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Rep: Reputation: 0
Slackware 10.0 - original apache & php


well.. just installed slackware 10.0 and need to get the php working..
enabled php in the httpd.conf but get a blank screen when trying to open any php file i made..
also tryed editing the mod_php.conf as shown on chilos page
restarted the httpd a few times..
but didn't help either.. still blank when trying to view my php pages..

help me!
 
Old 01-09-2005, 11:42 AM   #2
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
Hi.

What does you apache log files say? As well, you should upgrade both your apache and php! they're both propably vuln.

- omes

Last edited by omes; 01-09-2005 at 11:44 AM.
 
Old 01-09-2005, 11:55 AM   #3
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
to test php, just make a php file with one line...
Code:
<?php phpinfo(); ?>
if you made a php file, you may have programming errors that causing your file not to show up. if you have a php error log setup, you might want to check, or set your php.ini (in /etc/apache) to make errors show up on the webpage. (recommended for testing environments, don't use that on a productions server)
 
Old 01-09-2005, 12:11 PM   #4
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
howcome slackware doesnt put apache in /usr/local/apache? its so much more easier to have everything in one place!
 
Old 01-09-2005, 12:17 PM   #5
MeGoesSlack
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
allready tryed the test page.. (shows up blank)
and where are those arror logs supposed to be?

thx..
 
Old 01-09-2005, 12:20 PM   #6
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
just delete your old apache and php files! they're old and vouln. When you install apache and php again, be sure to put everything in /usr/local/apache that makes thing hell a lot easier as you have everything in one place.
 
Old 01-09-2005, 12:25 PM   #7
MeGoesSlack
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
yeah ill do just that.. thx..
 
Old 01-09-2005, 12:39 PM   #8
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
no problem mate, good luck
 
Old 01-09-2005, 01:03 PM   #9
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
you don't need to uninstall things just get the newest packages from slackware-current and do an upgrade pkg...

sooooooooooo much easier.

the php error log setup is in php.ini you'll have to configure it, and create the blank error file with the name and path you specified in php.ini and then give the error log the right permissions. why don't you post your apache.conf too, so we can see what the problem is (make sure you leave out ip addresses and anything else of the sort that i wouldn't recommend showing to the public)
 
Old 01-09-2005, 01:28 PM   #10
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
well, that wont put it all in /usr/local/apache though... so i guess its a lot harder..
Insatlling applications from source shoudlnt be a problem if you choose slackware.

- omes
 
Old 01-09-2005, 02:12 PM   #11
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
if you do an upgradepkg it will just upgrade the current version of apache that was installed with slackware... your not making any sense

putting everything in one place isn't how linux works. the reason why everything is everywhere because apache was installed the right way according to the Linux Hierarchy File System Standard

if you have no idea what it is here:

http://www.icon.co.za/~psheer/book/node38.html.gz

Last edited by cythrawll; 01-09-2005 at 02:19 PM.
 
Old 01-09-2005, 02:28 PM   #12
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
oh.. I'm not making any sense? Then read my posts again. My point is to have it all i in the same folder so it should be easier to maintain Apache.
 
Old 01-09-2005, 02:37 PM   #13
cythrawll
Member
 
Registered: Nov 2004
Location: IL, USA
Distribution: Slackware 10
Posts: 167

Rep: Reputation: 31
ok whatever, i find apache much easy to maintain the way it is... im just trying to save the person alot of trouble of trying to delete everything, when my way takes 3 secs and saves alot of pain. the only thing you really need to know about the default installation of apache is that the conf files are in /etc/apache the logs are in /var/log/apache and the default document root is in /var/www

leaving the default makes it much easier to keep up with installations with slackware packages. especially if you use great tools like swaret or slaptget etc leaving default also saves alot of trouble when using server managers such as webmin etc... If your way is easier for you great. but i tried that way when i was just starting, i ended up with alot of trouble with things in the long run.

Last edited by cythrawll; 01-09-2005 at 02:42 PM.
 
Old 01-21-2005, 02:22 AM   #14
barnowl
LQ Newbie
 
Registered: Dec 2004
Posts: 6

Rep: Reputation: 0
e
 
Old 01-21-2005, 07:51 AM   #15
MeGoesSlack
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
well.. i didn't really solve the problem.. and I had to get mysql & php fast.. so I installed XAMPP..
but I think.. that the thing I did wrong was.. that I have to change the reading and writing rights for the php files I make.. or else they wont work?

Last edited by MeGoesSlack; 01-21-2005 at 08:03 AM.
 
  


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
DISCUSSION: Slackware guide for AMP Apache MySQL and PHP xushi LinuxAnswers Discussion 12 09-23-2007 01:32 PM
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 11:18 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
PHP & Apache on Slackware 8.1 not working chrisx Slackware 3 02-02-2004 02:49 AM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 05:31 PM


All times are GMT -5. The time now is 08:06 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