LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-01-2003, 01:34 AM   #1
rojow
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Newbie Linux/Apache/SSL/MySQL/PHP Instalation Dilema


Hello Everyone,

This is my first post to any forum so please excuse any obvious newbie mistakes.

Here is my dilemma:

1. I performed a clean installation of RedHat Linux 9 with the custom option and firewall option to allow connections to HTTP,HTTPS,& SSH

2. In downloaded the latest sources of the following:
apache_1.3.28, php-4.3.3, OpenSSL-0.9.7c, mod_ssl-2.8.15-1.3.28, MySQL-4.0.15a

3. I installed the above using the instructions from an article by Bruce Timberlake on the brtnet.org site following his instructions to the letter.

4. I tested all installs and everything worked as advertised up to a php test script using the following php code ( <?php phpinfo() ?> ). When running this test, it receive the following error message:
[BEGIN ERROR MESSAGE ]
Warning: Unknown(/usr/local/apache/htdocs/phpinfo.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)(): Failed opening '/usr/local/apache/htdocs/phpinfo.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

[END ERROR MESSAGE]

Can anyone tell me where I went wrong?

Thanks in advance,

Regards,

Rojow
 
Old 10-01-2003, 02:09 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Welcome to LQ.

The howto I usually use is:
http://lamps.efactory.de/e-index.shtml

The one you followed appears to miss the LoadModule directive. Take a look at:
http://www.php.net/manual/en/install.apache2.php
 
Old 10-03-2003, 02:39 AM   #3
rojow
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks

Hi David,

Thanks for pointing me in a good direction.
I'll let you know how things turn out.

-- RoJow
 
Old 10-03-2003, 03:24 AM   #4
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Quote:
Warning: Unknown(/usr/local/apache/htdocs/phpinfo.php): failed to open stream: Permission denied in Unknown on line 0
Looks like a permission problem to me; Let us know;
 
Old 10-03-2003, 04:36 AM   #5
saint
Member
 
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55

Rep: Reputation: 15
Lightbulb use RPMs

[quote]Can anyone tell me where I went wrong?[quote] When you use RedHat or any package based distro, try to install software using RPMs only. A good place to find RPMs is http://rpmfind.net . RPMs make it easy to upgrade and maintain software.
 
Old 10-03-2003, 04:50 AM   #6
Bogdan
Member
 
Registered: May 2001
Location: Belarus
Distribution: Debian
Posts: 120

Rep: Reputation: 15
Yeah, rpm are good, if you need no more and no less than package maintainer needs. Also, RH often add some patchs to software thak may cause additional troubles against 'clean' sources. As example - I still can't install DB2 & SAP server on RH8/9 due to NPTL patchs in kernel and glibc. However, it is a good idea to package you custom software into RPM or DEB defore install. So the best way IMHO is to use 'clean' or self-patched sources and .spec or rules from source package of distribution. Ypu could obtain source packages either using apt-get sources in APT-based or installing src.rpm in RH*

Last edited by Bogdan; 10-03-2003 at 04:54 AM.
 
Old 10-13-2003, 12:45 AM   #7
rojow
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Hello Everyone,
Thanks for all your help and your suggestions.
I agree that RPMs are cool and very helpful. I have used them in the past. However, I would like to learn a lot more about Linux than I could about Windows and I believe that learning to install from the source and experimenting with different options is the best way to learn. I still have not figured out the reasons for the error messages-even after taking David's advice. But I refuse to give up!
Thanks all.
Regards,
Rojow
 
Old 10-19-2003, 06:05 PM   #8
GuntherDW
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 11

Rep: Reputation: 0
mysql error?

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /web/0ups/mysql_connect.php on line 3

and in the err file

031020 0:56:59 /usr/local/mysql/3.23.57/libexec/mysqld: Can't create/write to file '/home/mysql/data/GuntherDW.pid' (Errcode: 13)
031020 0:56:59 /usr/local/mysql/3.23.57/libexec/mysqld: Table 'mysql.host' doesn't exist
031020 0:56:59 /usr/local/mysql/3.23.57/libexec/mysqld: Error on delete of '/home/mysql/data/GuntherDW.pid' (Errcode: 2)
031020 00:56:59 mysqld ended

what is wrong? i did this lamp tut

http://lamps.efactory.de/e-lamps-2-0.shtml
 
Old 10-20-2003, 12:42 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Make sure that you set the correct permissions on the data directory.
 
Old 10-20-2003, 07:23 PM   #10
toufshopguy
LQ Newbie
 
Registered: Oct 2003
Location: Davis, CA
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
[root@localhost mysql-3.23.57]# /usr/local/mysql/current/bin/safe_mysqld
Starting mysqld daemon with databases from /var/lib/mysql
031020 17:21:18 mysqld ended

i can't seem to get the daemon started. I've been following the LAMPS tutorial. I can't figure it out.
 
Old 10-21-2003, 12:33 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
What are the permissions on the data directory?
ls -l /path/to/data
 
Old 10-21-2003, 01:19 PM   #12
toufshopguy
LQ Newbie
 
Registered: Oct 2003
Location: Davis, CA
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
thanks. I changed the permissions and everything is up now
 
Old 10-24-2003, 04:48 AM   #13
GuntherDW
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 11

Rep: Reputation: 0
u can see the error in the [name].err file in the data folder u specified

(btw i got mysql 4 & recompiled php, got it all working, thnx anyway )
 
  


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
Linux, Apache, PHP, MySQL akilles Linux - Newbie 4 03-02-2005 02:43 AM
Apache + SSL + PHP + Mysql rjbandura Linux - Software 5 07-01-2004 12:31 PM
PHP ./configure command dilema (for mysql) tuka Linux - Newbie 2 11-03-2003 09:26 PM
Apache Jail with SSL, PHP and MySQL dai Linux - Security 3 07-05-2003 06:35 AM
RH9 Apache/SSL/PHP/MySQL RPM vs tar.gz Ani Linux - Newbie 5 04-26-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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