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 02-13-2005, 12:23 PM   #1
bato
Member
 
Registered: Nov 2004
Distribution: Slackware 10.2
Posts: 32

Rep: Reputation: 15
php problem


I am trying to run php, apache, mysql,mod_ssl,openssl on slackware 10 from tgz packages but when I am opening my browser and typing localhost/phpinfo.php the browser returns my only the code in the file like <? .... etc.Can someone help me?
 
Old 02-13-2005, 12:34 PM   #2
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
i've always been successful in compiling all the packages instead of using tgz packages.
I always use this link as a walk through to setting up Apache/PHP/MySQL:

http://www.tldp.org/HOWTO/Apache-Com...WTO/index.html
 
Old 02-13-2005, 12:37 PM   #3
eelriver
Member
 
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
Did you uncomment this line in your /etc/apache/httpd.conf ?
#Include /etc/apache/mod_php.conf
 
Old 02-13-2005, 03:19 PM   #4
bato
Member
 
Registered: Nov 2004
Distribution: Slackware 10.2
Posts: 32

Original Poster
Rep: Reputation: 15
re

I have tried to compile all the stuff, but when I am compiling mod_ssl with apache I got strange error in make certificate command something like that "Cannot encrypt ....key with pem pass" or similar.Any suggestions?By the way with removing # works.
 
Old 02-13-2005, 04:03 PM   #5
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
if your browser is only loading up the code when you try to do http://localhost you might wanna edit the httpd.conf file, here's a link i used in the past:

http://www.php.net/manual/en/install.unix.php
 
Old 02-13-2005, 04:09 PM   #6
dns21
Member
 
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139

Rep: Reputation: 15
You could also check out lampp (xampp). It is an all in one apache, php, mySQL, pearl, and proFTP compilation that is very easy to install as well as manage.

http://www.apachefriends.org/en/xampp.html
 
Old 02-13-2005, 04:57 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would suggest it is better to try to understand how httpd.conf work before re-install apache,
compile it or use 3rd party software. Frankly with all slackware default packages, apache,
php and mysql can be configured in some minutes of time
 
Old 02-13-2005, 05:41 PM   #8
dns21
Member
 
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139

Rep: Reputation: 15
Quote:
Originally posted by keefaz
I would suggest it is better to try to understand how httpd.conf work before re-install apache,
compile it or use 3rd party software. Frankly with all slackware default packages, apache,
php and mysql can be configured in some minutes of time
I agree it is neccessary to understand httpd.conf and it is still something one must do. I just really like the way they put together lampp and it seems as though it would bypass this little error and introduce a good program to another individual.
 
Old 02-14-2005, 10:20 AM   #9
bato
Member
 
Registered: Nov 2004
Distribution: Slackware 10.2
Posts: 32

Original Poster
Rep: Reputation: 15
to brokenflea

I followed all the instructions in the HOWTO you give me , but the result is the same.It seems I have entered a PEM pass but I didn't so it tells me that there is an error in writing the PEM pass and stop making certificate.That is all.But with the packagers works fine.
 
Old 02-14-2005, 11:50 AM   #10
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
so are you just having a problem with compiling the mod_ssl module with apache ??
 
Old 02-15-2005, 10:45 AM   #11
bato
Member
 
Registered: Nov 2004
Distribution: Slackware 10.2
Posts: 32

Original Poster
Rep: Reputation: 15
re

In fact yes.But the strange thing is that when I am running kernel 2.6.10 I can't compile apache and mod_ssl, but when I am running 2.4.26 - the standard slackware 10 kernel there is no problem so I'll remove the 2.6.10 kernel.One more question is there the same problem with the 2.4.29 kernel?
 
Old 02-15-2005, 11:09 AM   #12
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
that's really strange. the only problem i ever had with a 2.6.x kernel was i couldn't remotely ssh into the machine, but never had anything messing up the mysql/php/apache....
 
Old 02-15-2005, 12:27 PM   #13
bato
Member
 
Registered: Nov 2004
Distribution: Slackware 10.2
Posts: 32

Original Poster
Rep: Reputation: 15
re

I don't know man.May be in the compiling process I have compiled any module or option that causes this problem.Can you give me HOWTO for compiling this kernel?
 
Old 02-15-2005, 01:14 PM   #14
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
what i normally use is
move the kernel-2.6.x.bz2 to /usr/src
>tar -jxvf kernel-2.6.x.tar.bz2
>rm linux
>ln -s linux-2.6.x linux
>cd linux
>make mrproper
>make menuconfig
>make bzImage
>make modules
>make modules_install
>cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.x
>cp System.map /boot/System.map-2.6.x
>cd /boot
>mv vmlinuz vmlinuz-2.4.x
>mv System.map System.map-2.4.x

update lilo.conf

>/sbin/lilo
>reboot
 
Old 02-15-2005, 01:59 PM   #15
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.shtml
</IfModule>

Look for this section in your /etc/apache/httpd.conf file and add the index.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
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
New to PHP and Postgressql. Is this a PHP problem or a sql problem. Please help sendas4 Linux - General 2 11-05-2004 01:54 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 08:54 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM

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

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