php-install Digest 18 Mar 2002 07:28:47 -0000 Issue 749

Topics (messages 6387 through 6391):

Re: parse error in /usr/local/php/php on line 8088
        6387 by: Andreas Grabmüller

Mysql support in linux
        6388 by: Glen
        6389 by: Rasmus Lerdorf

Error when using MySQL statement in PHP
        6390 by: dssopt

Error when using PHP + MySQL
        6391 by: dssopt

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 ---
Hi,

I installed php as cgi into /usr/local/bin (standard path). Then I created a
link in /usr/local/php so you can call php as /usr/local/php/php (for
security reasons). That works fine on the console.

Then I tried to integrate php into Apache. I did it the following way:

    --
    ScriptAlias /cgi-php/ "/usr/local/php/"
    --

That works fine, calling www.domain.tld/cgi-php/ gives me back the security
error.

    --
    AddHandler php-script .php .php3 .php4
    Action php-script /cgi-php/php
    --

That is what I found in some manuals on the internet. Calling any php script
(this can be a empty file or a complex script) gives me back the following
error:

    --
    Parse error: parse error in /usr/local/php/php on line 8088
    --

Does anyone know what's the problem here? I have tried many different
things, I also tried to use /usr/local/php but it's the same error. Calling
the script via console works fine...
--
MFG GameCrash

Webmaster Let'z Play
@ http://www.letzplay.de

Webmaster Sharp-Forum.de
@ http://www.sharp-forum.de


--- End Message ---
--- Begin Message ---
Hello All,

I am having trouble getting mysql support to work on apache.  When I try to 
establish connection using mysql_connect() I get a call to unfdefined 
function error. I made sure to compile php using the --with-mysql option and 
the output of phpinfo() shows '--with-mysql=shared'  as part of the configure 
command listing. However, I still get this error.  

Can anybody give me a clue how to get mysql connectivity working?

Thanks,

Glen

--- End Message ---
--- Begin Message ---
If you have --with-mysql=shared that means that you built a mysql.so which
you have to manually enable in your php.ini file with a line like,
"extension=mysql.so" assuming you put this mysql.so file in your
extension_dir.

-Rasmus

On Sun, 17 Mar 2002, Glen wrote:

> Hello All,
>
> I am having trouble getting mysql support to work on apache.  When I try to
> establish connection using mysql_connect() I get a call to unfdefined
> function error. I made sure to compile php using the --with-mysql option and
> the output of phpinfo() shows '--with-mysql=shared'  as part of the configure
> command listing. However, I still get this error.
>
> Can anybody give me a clue how to get mysql connectivity working?
>
> Thanks,
>
> Glen
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hello,

I have a problem when I write a PHP script used to connect to MySQL table.
The PHP script likes:
<?
  $link_id=mysql_connect("localhost", "root");
?>

When I try to run this script on apache server, there is an error :
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/index.php on line 2

Can anyone tell me what is the problem ?

I am using
Apache 1.3.22
PHP 4.1.2
MySQL 3.23.49

Thank you


--- End Message ---
--- Begin Message ---
Hello everybody,

I am using the Linux + apache + mysql + php at the first time. After I
install all of these, I get an error message like
"Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/index.php on line 2" on browser.

The installation procedure is :
for apache 1.3.22
1. ./configure --prefix=PREFIX
2. make
3. make install

for mysql
rpm -ivh mysql_3.23.49

for php 4.1.2
1.
./configure --with-mysql --with-apache=../apache_1.3.22 --enable-track-vars
2. make
3. make install
(I tried the dynamic mode installation, but the error message "apxs cannot
not be found " shown)

Is this some steps error ?

Thank you



--- End Message ---

Reply via email to