LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Newbie Linux/Apache/SSL/MySQL/PHP Instalation Dilema (https://www.linuxquestions.org/questions/linux-software-2/newbie-linux-apache-ssl-mysql-php-instalation-dilema-98886/)

rojow 10-01-2003 01:34 AM

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

david_ross 10-01-2003 02:09 PM

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

rojow 10-03-2003 02:39 AM

Thanks
 
Hi David,

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

-- RoJow

micxz 10-03-2003 03:24 AM

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;

saint 10-03-2003 04:36 AM

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.

Bogdan 10-03-2003 04:50 AM

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*

rojow 10-13-2003 12:45 AM

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

GuntherDW 10-19-2003 06:05 PM

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

david_ross 10-20-2003 12:42 PM

Make sure that you set the correct permissions on the data directory.

toufshopguy 10-20-2003 07:23 PM

[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.

david_ross 10-21-2003 12:33 PM

What are the permissions on the data directory?
ls -l /path/to/data

toufshopguy 10-21-2003 01:19 PM

thanks. I changed the permissions and everything is up now

GuntherDW 10-24-2003 04:48 AM

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 :))


All times are GMT -5. The time now is 03:19 AM.