You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by da...@bestweb.net on 2003/02/10 23:02:37 UTC

[users@httpd] linux novice cannot resolve apache-php-mysql linkage. 4

dell 4100 256mb, 11gb hd, Redhat 8.0 pro, grub-linux
linux novice cannot resolve apache-php-mysql linkage. 4

local closed system (No modem, no www access, no internet)

I have tried to create a database of 7 tables with about
840mb of data since the 20th of November 2002.  My own
db handler (.cpp's) will take years to code and test
what the apache-php-mysql combo can do in hours.
I've been able to load all mysql tables with
about 30kb each of data as a test.
I've made php test scripts and run them with
apache server (local).
I have n-o-t been able to run apache-php-mysql
as a single application.

I've installed RH at least 23 times, and will continue
to install until I can run my personal scripts to test
that apache-php-mysql are doing what I want against a
clean install.

The package NuSphere-freetechplat-3.0.1-Linux.tar is
supposed to install and configure apache-php-mysql as
a unit but seems to have a problem.  The specific
modules NuSphere uses are:

php-4.0.6-i386-pc-linux-gnu.tar.gz
apache_1.3.26-i386-pc-linux-gnu.tar.gz
mysql-3.23.49-i386-pc-linux-gnu.tar.gz

The mysql application is working.
The apache application is working (local)
for ".html" only.

I have made 2 test files, one is ".html",
the second is ".php', and they are:

The "file:/var/www/html/php_test.html" is
<html><head><title>PHP Test</title></head><body>
  "Hello World HTML /var/www/html/php_test.html"
  <?php echo "Hello World PHP /var/www/html/php_test.html<p>"; ?>
</body></html>

The "file:/var/www/html/php_test.php" is
<html><head><title>PHP Test</title></head><body>
  "Hello World HTML /var/www/html/php_test.php"
  <?php echo "Hello World PHP /var/www/html/php_test.php<p>"; ?>
</body></html>

I have tested with 2 browsers, Mozilla and the
Konqueror Web Browser, using both the ".html"
and ".php" files, and tested with both
localhost.localdomain and 127.0.0.1.
The list below illustrates 8 sets of three
lines each displaying browser, url used, and
results if any.

mozilla
http://localhost.localdomain/php_test.php
 "Hello World HTML /var/www/html/php_test.php" "; ?>
mozilla
http://localhost.localdomain/php_test.html
 "Hello World HTML /var/www/html/php_test.html" "; ?>
mozilla
http://127.00.00.1/php_test.php
 "Hello World HTML /var/www/html/php_test.php" "; ?>
mozilla
http://127.00.00.1/php_test.html
 "Hello World HTML /var/www/html/php_test.html" "; ?>

Konqueror Web Browser
http://localhost.localdomain/php_test.php
 "Hello World HTML /var/www/html/php_test.php"
Konqueror Web Browser
http://localhost.localdomain/php_test.html
 "Hello World HTML /var/www/html/php_test.html"
Konqueror Web Browser
http://127.0.0.1/php_test.php
 "Hello World HTML /var/www/html/php_test.php"
Konqueror Web Browser
http://127.0.0.1/php_test.html
 "Hello World HTML /var/www/html/php_test.html"

Note that the 2 browsers ignore the php line
<?php echo "Hello World PHP /var/www/html/php_test.html<p>"; ?>
differently.

I've extracted some of the entries in httpd.conf from
"file:/usr/local/nusphere/apache/conf/httpd.conf", and the are
[
ServerType standalone
ServerRoot "/usr/local/nusphere/apache"
#Listen 3000
#Listen 12.34.56.78:80
Port 81
# Public Port
Listen 81
# Admin Port
Listen 9000
User nobody
Group nobody
ServerAdmin root@localhost
ServerName localhost
DocumentRoot "/usr/local/nusphere/apache/htdocs"
<Directory "/usr/local/nusphere/apache/htdocs">
<IfModule mod_dir.c>
DirectoryIndex index.shtml index.html index.htm index.php index.php3
index.phtml
</IfModule>
AddType application/x-httpd-php .php .php3   (this line appears twice)
<Files ~ "\.(cgi|shtml|phtml|php3?)$">       (this entry appears twice)
    SSLOptions +StdEnvVars
</Files>
]

Any and all help will be appreciated.


Thanks


dander@bestweb.net




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] linux novice cannot resolve apache-php-mysql linkage. 4

Posted by "J. Greenlees" <ja...@x-mail.net>.
Quoting dander@bestweb.net:

> dell 4100 256mb, 11gb hd, Redhat 8.0 pro, grub-linux
> linux novice cannot resolve apache-php-mysql linkage. 4
>
> local closed system (No modem, no www access, no internet)
>
> I have tried to create a database of 7 tables with about
> 840mb of data since the 20th of November 2002.  My own
> db handler (.cpp's) will take years to code and test
> what the apache-php-mysql combo can do in hours.
> I've been able to load all mysql tables with
> about 30kb each of data as a test.
> I've made php test scripts and run them with
> apache server (local).
> I have n-o-t been able to run apache-php-mysql
> as a single application.
>
> I've installed RH at least 23 times, and will continue
> to install until I can run my personal scripts to test
> that apache-php-mysql are doing what I want against a
> clean install.
>
> The package NuSphere-freetechplat-3.0.1-Linux.tar is
> supposed to install and configure apache-php-mysql as
> a unit but seems to have a problem.  The specific
> modules NuSphere uses are:
>
> php-4.0.6-i386-pc-linux-gnu.tar.gz
> apache_1.3.26-i386-pc-linux-gnu.tar.gz
> mysql-3.23.49-i386-pc-linux-gnu.tar.gz
>

why not use the rpms that come with red hat, it will set everything up automatically
for red hat, where the nusphere is not red hat specific.
( install apache, php, and mysql from software manager in red hat not from third party
archives )

~snip~

> I've extracted some of the entries in httpd.conf from
> "file:/usr/local/nusphere/apache/conf/httpd.conf", and the are
> [
> ServerType standalone
> ServerRoot "/usr/local/nusphere/apache"
> #Listen 3000
> #Listen 12.34.56.78:80
> Port 81
> # Public Port
> Listen 81
> # Admin Port
> Listen 9000
> User nobody
> Group nobody
> ServerAdmin root@localhost
> ServerName localhost
> DocumentRoot "/usr/local/nusphere/apache/htdocs"
> <Directory "/usr/local/nusphere/apache/htdocs">
> <IfModule mod_dir.c>
> DirectoryIndex index.shtml index.html index.htm index.php index.php3
> index.phtml
> </IfModule>
> AddType application/x-httpd-php .php .php3   (this line appears twice)
> <Files ~ "\.(cgi|shtml|phtml|php3?)$">       (this entry appears twice)
>     SSLOptions +StdEnvVars
> </Files>
> ]
>
> Any and all help will be appreciated.
>
> 
do you have load module for php active? or is it comented out?


-------------------------------------------------------------------------------------------
***Protect your PC from local E-Mail Application security holes***
***Maintain your Privacy - Passport Free***
***Anti SPAM "Whitelist" feature***

http://www.x-mail.net Web Based E-Mail, accessible anywhere

Voice Messages, Voice Calls, Live Chat, X-Mail Messenger,
Personal Web Hosting, 128 bit SSL Secure, Calendar, Bookmarks,
Forwarding, Virtual Mail Map Aliasing

X-Mail Premium: 20MB Messages, 100MB Storage, POP3, Ad Free

  



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org