php-install Digest 4 Nov 2002 05:56:25 -0000 Issue 1102
Topics (messages 9009 through 9010):
PHP install problem, engine not parsing php files
9009 by: M. Ben Nicolas
mysqldump ?!
9010 by: marco_bleeker.hetnet.nl
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I have attempted to compile and install PHP using the 'Static' method
described in the INSTALL file that comes with php
php configured with:
./configure --with-mysql --with-pgsql --with-apache=/usr/local/apache/apache
_1.3.22/ (make => make install)
php.ini was copied to:
/usr/local/lib/php.ini
I have the following line in my httpd.conf file:
AddType application/x-httpd-php .php
apache installed in
/usr/local/apache
apache configured with
./configure --prefix=/usr/local/apache/ --activate-module=src/modules/php4/l
ibphp4.a
Apache was already installed and working with mod perl, I just went into
/usr/local/apache/apache_1.3.22
stopped the web server and ran the line above
(and then make & make install of course)
how can I check to make sure the libphp4 module was activated properly and
that apache is using it?
I see nothing about a mod_php module when I do a httpd -l, it gives me this
Compiled-in modules:
http_core.c
.
.
.
mod_perl.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
I have mod-perl working with apache (for scoop site) so I don't want to
completely wipe apache and try to install from scratch using the 'Dynamic'
method described in the php INSTAll file
My system:
uname -a = 'Linux my.host.name 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001
i686 unknown'
apache version 1.3.22
php version 4.2.3
My problem is that every time I try to make a request for a php page from a
browser, the 'Download Dialog' box appears in explorer and the browser
automatically downloads the php file without the server processing the php
code??...
Shouldn't I see mod_php when I do an httpd -l after following the 'Static'
install instructions from the INSTALL file?
I don't see anything about php when I do a /usr/local/apache/bin/httpd -V
under the 'Server compiled with' section.
I've followed the 'Static' Install directions without errors and have
inserted the AddType line into my apache config file (httpd.conf). I'm
still getting the download dialog box when I make a request from a browser
for a page with a .php extension. HTML files are properly processed by
apache and if I make up a file extension i.e.- 'phpinfo.hot' and request
that from a browser apache sends the contents to the browser (php code
available via view source).
I found something on phpbuilder mentioning something about needing an entry
in the mime.types file. I don’t know what the entry in the mime.types file
for php files should look like does anybody out there have an idea?
--- End Message ---
--- Begin Message ---
Hello, I want to run a MySQL database using PHP on a remote server. I am populating my
database on my PC at home. I understood that I'll have to use MYSQLDUMP to export
these data to a dump file, FTP that file to the server and then use MYSQL to re-create
the database there. My problem is with the last part. I don't think I can get at a
MySQL-prompt on the remote server (or could I, using FTP or Telnet or something?). All
I know is how to run .php files. Does PHP offer a solution here?
Thanks, Marco
--- End Message ---