- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- LAMP php5
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 11:49 PM
тАО05-18-2005 11:49 PM
I think the modules are all in the right places.
php.ini is copied from a working system with the same components.
But on the new system I get:
"Fatal error. Call to undefined function mysql_connect..."
Can anyone fix this?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 12:12 AM
тАО05-19-2005 12:12 AM
Re: LAMP php5
looks like you dont have mysql plugin libraries for PHP.
if you have installed it from RedHat, then there should be an rpm by name php-mysql* install that rpm then you should be able to use that function.
if you have compiled your own version of php, then you may have to recompile php with mysql option. check the configure option in php to find out how to do this.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 01:11 AM
тАО05-19-2005 01:11 AM
Re: LAMP php5
As of RH8, all RH boxes ship with Apache 2, and to this day only ship with MySQL 3 and PHP 4.
In any case, Gopi is right. It looks like whoever set this system up needs to go back and re-compile PHP, making sure it finds the MySQL libraries, and compiles them in.
If this was done, as a module/extension, the 'php.ini' needs to have 'extesion=mysql.so' included too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 01:46 AM
тАО05-19-2005 01:46 AM
Re: LAMP php5
More info:
->Not RH but Debian
->I'm trying to clone a working system which has:
Apache 1.3
mysql 4
php5
all working happily.
->extension=mysql.so
is in php.ini because the new machine has copied the old's php.ini
When I run php.info on the old machine I get a mysql section.
When I run php.info on the old machine I get no mysql section.
Thanks again
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 02:00 AM
тАО05-19-2005 02:00 AM
Solutionthat shows that mysql is not linked in your new system.
how did you create this new machine, did you do everything from scratch(installation of Apache, mysql and php) or you just copied from running machine.
if the first case then it means you probably missed to add mysql extension when you compiled php. since you have copied php.ini from working machine it will have correct entry but php will try to locate mysql.so and can not locate it. if i am correct, phpinfo gives the exact command line of how php was compiled. Do the same way in the new machine also to get the php with same configuration as working machine
if the second case then you proabaly missed copying some files from running machine. try to find all *mysql* from working machine, compare the list and copy the files which are missed out on the new system
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 02:29 AM
тАО05-19-2005 02:29 AM
Re: LAMP php5
that's where the modules/extensions live.
What do the HTTP error_log's say about the start-up of apache?
Or are you using PHP as a CGI, not as an apache module?