logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Newbie Help - PHP functions in Apache
Author
monkquito



Joined: 11 Apr 2008
Posts: 4
Location: UK

PostPosted: Fri 11 Apr '08 12:37    Post subject: Newbie Help - PHP functions in Apache Reply with quote

Hi,

Set up Apaches to work with PHP code but cannot get it run functions i.e
mysql_connect().

How do I achieve this?

Regards
M
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 11 Apr '08 15:42    Post subject: Reply with quote

You need to load the mysql driver in php.ini

change extension_dir e.g. extension_dir = C:/php5/ext/
and ;extension=php_mysql.dll to extension=php_mysql.dll
Back to top
monkquito



Joined: 11 Apr 2008
Posts: 4
Location: UK

PostPosted: Fri 11 Apr '08 16:05    Post subject: Reply with quote

Done that

doesn't work Crying or Very sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 11 Apr '08 16:17    Post subject: Reply with quote

Where is your php.ini ?
Did you define in httpd.conf that apache should use that ini file?

e.g.
Code:

PHPIniDir "C:/php5"


You can test thatr with phpino();
Back to top
monkquito



Joined: 11 Apr 2008
Posts: 4
Location: UK

PostPosted: Sun 13 Apr '08 1:30    Post subject: Reply with quote

Cheers

I've tried this.

Looks like the functions are working, but now i'm getting the http 500 error.

Confused
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sun 13 Apr '08 12:57    Post subject: Reply with quote

When do you get an 500 error? What do you do? What is about that in your error.log ?
Back to top
monkquito



Joined: 11 Apr 2008
Posts: 4
Location: UK

PostPosted: Sun 13 Apr '08 20:52    Post subject: Reply with quote

I've looked in the error log and it reports that the mysql_connect function is undefined.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 13 Apr '08 21:20    Post subject: Reply with quote

Try mysqlinfo.zip at the download page for troubleshooting your mysql setup.

Steffen
Back to top


Reply to topic   Topic: Newbie Help - PHP functions in Apache View previous topic :: View next topic
Post new topic   Forum Index -> Other Software