[PHP] php install problem

2007-08-02 Thread David McDivitt
I hate to ask a simple question, but I have two issues installing PHP. I have 
XP SP 2 with IIS. When I ran the install php-5.2.3-win32-installer.msi, it said 
it could not access httpd.config and I would have to configure the web server 
manually. I could not find anything on the internet containing the error 
message. I get the same error when installing IIS API and IIS CGI. The other 
problem I have is when I attempt to display a page containing PHP, the browser 
displays an error. The error I was getting said PHP has encountered an Access 
Violation. Now it's changed and says No input file specified. Weird. If 
someone could shed light I'd appreciate it. Thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Install problem

2005-11-14 Thread russbucket
Trying to get apache2, php5 and mysql running. get the following error when 
opening phpMyAdmin. Can someone explain what it means. There is an include 
path in php.ini.


-- 
Russ

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Install problem

2005-11-14 Thread Curt Zirzow
On Mon, Nov 14, 2005 at 10:06:17AM -0800, russbucket wrote:
 Trying to get apache2, php5 and mysql running. get the following error when 
 opening phpMyAdmin. Can someone explain what it means. There is an include 
 path in php.ini.

I think you forgot to include the error message.

curt.
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Install problem

2005-11-14 Thread russbucket
On Monday 14 November 2005 10:47, Curt Zirzow wrote:
 On Mon, Nov 14, 2005 at 10:06:17AM -0800, russbucket wrote:
  Trying to get apache2, php5 and mysql running. get the following error
  when opening phpMyAdmin. Can someone explain what it means. There is an
  include path in php.ini.

 I think you forgot to include the error message.

 curt.
 --
Your right, hand got ahead of my brain,  Heres the messages when using 
http/localhost/phpMyAdmin/ 

phpMyAdmin - Error
 phpMyAdmin was unable to read your configuration file!
This might happen if PHP finds a parse error in it or PHP cannot find the 
file.
Please call the configuration file directly using the link below and read the 
PHP error message(s) that you receive. In most cases a quote or a semicolon 
is missing somewhere.
If you receive a blank page, everything is fine.

 config.inc.php

Clicking on the config.inc.php gives following error.
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 
0
 
 Warning: Unknown: Failed opening '/srv/www/htdocs/phpMyAdmin/config.inc.php' 
for inclusion (include_path='.:') in Unknown on line 0

I've checked and rechecked the configurations files, they look correct.

Thanks for responding even with my goof.

-- 
Russ

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Install problem

2005-11-14 Thread Ben

russbucket said the following on 11/14/2005 11:15 AM:


Clicking on the config.inc.php gives following error.
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 
0
 
 Warning: Unknown: Failed opening '/srv/www/htdocs/phpMyAdmin/config.inc.php' 
for inclusion (include_path='.:') in Unknown on line 0


I've checked and rechecked the configurations files, they look correct.



Sounds like your web server's user does not have permission to read the 
file.


chmod 444 /srv/www/htdocs/phpMyAdmin/config.inc.php

will set your permissions (assuming your on *nix) to r--r--r-- which 
will give your web server's user (and ever other user account on the 
machine - which may not be what you want) permission to read the file.


- Ben

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Install problem

2005-11-14 Thread Richard Lynch
On Mon, November 14, 2005 1:15 pm, russbucket wrote:
 On Monday 14 November 2005 10:47, Curt Zirzow wrote:
 On Mon, Nov 14, 2005 at 10:06:17AM -0800, russbucket wrote:
  Trying to get apache2, php5 and mysql running. get the following
 error
  when opening phpMyAdmin. Can someone explain what it means. There
 is an
  include path in php.ini.

 I think you forgot to include the error message.

 curt.
 --
 Your right, hand got ahead of my brain,  Heres the messages when using
 http/localhost/phpMyAdmin/

 phpMyAdmin - Error
  phpMyAdmin was unable to read your configuration file!
 This might happen if PHP finds a parse error in it or PHP cannot find
 the
 file.
 Please call the configuration file directly using the link below and
 read the
 PHP error message(s) that you receive. In most cases a quote or a
 semicolon
 is missing somewhere.
 If you receive a blank page, everything is fine.

  config.inc.php

 Clicking on the config.inc.php gives following error.
 Warning: Unknown: failed to open stream: Permission denied in Unknown
 on line
 0

  Warning: Unknown: Failed opening
 '/srv/www/htdocs/phpMyAdmin/config.inc.php'
 for inclusion (include_path='.:') in Unknown on line 0

 I've checked and rechecked the configurations files, they look
 correct.

The file contents are fine (maybe) but PHP can't even *READ* the file
because it's set up as un-readable by the PHP user.

You need to find out the permissions on the file (config.inc.php)

In a shell prompt on the server you can do:
ls -als config.inc.php
The output will have something not unlike:
 7 -rw-rw-r--  1 russbucket  nwi_group ... config.inc.php

But I'll bet a dollar *YOUR* file doesn't have the last 'r' letter 
there, and just has '-' instead:
-rw-rw

You need to change that:
chmod 554 config.inc.php

WARNING:
On a shared server, this is exposing your database password to
everybody else on that shared server.  You may not have any other
option, however.

To mitigate this risk, you may want to do several things, after you
get phpMyAdmin working.

1. Move the file out of your web tree, so *ONLY* users on the shared
server could possibly read it, not the whole friggin' world.

2. Move it to a directory that denies listings by other users, so they
can't stumble across it. (This may make it unreadable by PHP, though,
depending on things I've never fully understood, so then don't do
that...)

More involved methods of keeping the password accessible to PHP and
not everybody else with a login can be found here:
http://phpsec.org

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Install Problem - Please Help

2001-08-25 Thread Martin Stephenson

Hi All,

I'm running Suse Linux 7.1, Kernet 2.4

I have downloaded and installed the latest version of Apache and it's up 
and running OK

It is installed in :

/usr/local/apache

To Install PHP, i have downloaded the Source and put it in:

/usr/local/src/php-4.0.6

To Install PHP I have done this ( ihave specified the location of apxs 
as Suse Installed an Apache server also, but I want the one I've 
installed to /usr/local/apache):

./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs

Then I type:

make

make install

Then I edit /usr/local/apache/conf/httpd.conf

The required lines ARE there, ie.

LoadModule php4_modulelibexec/libphp4.so
AddModule mod_php4.c

AddType application/x-httpd-php .php

I have also copied /usr/local/src/php-4.0.6/php.ini-dist to 
/usr/local/lib/php.ini

Now the problem :
I then go to start my Server as follows:

cd /usr/local/apache/bin
./httpd

BUT Then I get this:

Syntax error on line 236 of /usr/local/apache/conf/httpd.conf:
API module structure `php4_module' in file 
/usr/local/apache/libexec/libphp4.so is garbled - perhaps this is not an 
Apache module DSO? 

Line 236 of /usr/local/apache/conf/httpd.conf is :

LoadModule php4_modulelibexec/libphp4.so


And If I check the file type of libphp4.so as follows:
cd /usr/local/apache/libexec/
file libphp4.so

I get :
libphp4.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not 
stripped 


SoCan anybody Help ???

I don't have MySQL installed yet - do I need to have that first ???

Thanks,

Martin Stephenson.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP Install Problem

2001-03-19 Thread Joseph Koenig

Hi, I'm trying to get php to install on a RH 6.2 system. Apache 1.3.12.
All goes well with the configure, make, and make install, but my server
(apache) won't start and I get this message:

Syntax error on line 249 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: undefined symb
ol: uncompress

I saw it often in the list archives, but didn't find any good resolution
to it. Anyone know? My configure line is below if that helps. Thanks,

./configure '--with-mysql=/usr/local/mysql'
'--with-pgsql=/usr/local/pgsql' '--with-apxs=/usr/sbin/apxs'
'--with-system-regex' '--disable-debug' '--enable-track-vars'
'--enable-versioning' '--with-ttf' '--with-ftp'

Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]