Installing Php On Server That Does Not Have Mysql Installed

Aug 7, 2008

I have two servers, one is web server, the other one is mysql server.

I am installing php on web server that does not have mysql installed.

when I do the follows:

./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/webserver/mysql --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-debug --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-sendmail=/usr/sbin/sendmail

the script tells me error:

configure: error: Cannot find MySQL header files under /usr/local/webserver/mysql.
Note that the MySQL client library is not bundled anymore!

Because mysql installed on another physical server. so how may I fix the problem? can I configure php without "---with-mysql" and "--with-mysqli" parameters? I need my php could access remote mysql server.

View 3 Replies


ADVERTISEMENT

Installed MySQL In /usr/local/mysql But Error In /var/lib/mysql

Jan 21, 2007

I installed the MySQL binary packages in /usr/local/mysql/ after removing the MySQL RPM package. MySQL is functioning when I executed /usr/local/mysql/bin/safe_mysqld. I reinstalled MySQL before I installed PHP. When I used a PHP script to access a MySQL database, it outputs an error:

Code:
Warning: mysqli::mysqli() [function.mysqli-mysqli]: (HY000/2002): can't connect to local mysql server through socket /var/lib/mysql/mysql.sock in index.php on line 2
However, I installed MySQL in /usr/local/mysql, not in /var/lib/mysql. How do I fix MySQL?

View 1 Replies View Related

Plesk 12.x / Linux :: Multiple PHP Not Working With Installed MySQL

Dec 19, 2014

I've enabled one more php using this guide: [URL] .... but mysql is not working with the new php installation, how to get it working?

View 7 Replies View Related

Installing MySQL On VPS

Jul 23, 2009

I am currently using CentOS 5. I installed php-mysql, mysql-server, mysql and mysql-devl through yum install.

WhenI try to start mysqld I get this error

Code:
090722 20:17:32 mysqld started
090722 20:17:32 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
090722 20:17:32 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 36808.
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
090722 20:17:32 InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
InnoDB: Error: pthread_create returned 12
090722 20:17:33 mysqld ended

I obviously havn't done something correctly.

View 6 Replies View Related

Installing Mysql

Jul 8, 2007

im trying to install mysql, apache and php on my new server and everytime i use the command - make install or make all it says is -bash: make: command not found.

View 2 Replies View Related

Installing PHP + IIS + MySQL

Jan 8, 2007

I want install PHP near IIS and security is important for me.

I chose ISAPI is it good?

It works but I have problem in using MySQL I did not use PHP.ini for php5+ISAPI and it works how add mysql?

to make it useful with MySQL and make secure,

View 3 Replies View Related

Installing MySQL

Apr 22, 2007

I tried installing MySQL on a Windows 2000 Server. I went through all the wizards and I got an error because I needed to open a port. I am not really a server/network guy, its just a dev server for my programming. How do I go about opening the port for MySQL. And then how would I test the installation to know its all good?

View 3 Replies View Related

Dependency When Installing MySQL

May 29, 2009

I am trying to install MySQL from its RPM. I keep getting the following dependency issues and I have never seen these before. libc.so.6 is installed via glibc. I have all of the different glibc packages installed and I am lost. libc.so.6 is located in /lib/lib.so.6.

# rpm -i MySQL-server-community-5.1.34-0.rhel5.x86_64.rpm
error: Failed dependencies:
libc.so.6()(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libc.so.6(GLIBC_2.3)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libc.so.6(GLIBC_2.3.4)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libc.so.6(GLIBC_2.4)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libcrypt.so.1()(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libcrypt.so.1(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libdl.so.2()(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libdl.so.2(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libm.so.6()(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libm.so.6(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libnsl.so.1()(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libpthread.so.0()(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64
libpthread.so.0(GLIBC_2.3.4)(64bit) is needed by MySQL-server-community-5.1.34-0.rhel5.x86_64

View 2 Replies View Related

MySQL Not Installing On Fedora

May 14, 2007

Here is where I stand..

OS: FRESH install of Unix Fedora Core 6
Kernel Version: Kernel 2.6.18-1/2798.fc6 on an i686
Hardware Information: Brand new Dell SC1435 Server
Software Version: MySQl 5
Control Panel: cPanel

A few things I did already..

#yum install mysql-server && service mysqld start
Nothing to do
mysqld: unrecognized service

#rpm -qa | grep mysql
libdbi-dbd-mysql-0.8.1a-1.2.2
mysql-connector-odbc-3.51.12-2.2

#ps -ef | grep -i mysql
root 15299 15114 0 16:55 pts/0 00:00:00 grep -i mysql

I don't see the mysql.sock file. What I can do to further troubleshoot this issue?

View 7 Replies View Related

Php/mysql- After Installing Lighttpd

Mar 3, 2008

I've installed lighttpd and it works perfectly. However, when I browsed my blog I got the msg:

"Your PHP installation appears to be missing the MySQL which is required for WordPress."

Was there anything I missed? Should I install PHP again?

View 5 Replies View Related

Low Memory After Installing Mysql Mod Php5

Nov 6, 2009

I have a VPS.

I have installed "Lighttpd, php5cgi, mysql-server, mysql-client,
libmysqlclient15-dev"

I have optimized the MySQL Server (/etc/mysql/my.cnf).

All these together just take 30 mb Memory.

Lighttpd use just 12mb memory And everything is very good.

But,

When I install php5 mod MySQL:
apt-get install php5-mysql

Then the Lighttpd memory increases to 90mb!

I am using updated Debian Lenny, MySQL5, php5.

View 6 Replies View Related

Which OS Have You Installed On Your Server

Apr 27, 2009

which OS have you installed on your server, and why?

what features of that OS attracted you to use it.

If you have any other reason like it is the only OS supported by xyz panel, share it, if you want to.

Let's find out most popular OS among WHT users.

View 14 Replies View Related

ImageMagick Installed On Server?

Sep 11, 2004

How can I know if server has ImageMagick installed?

View 14 Replies View Related

Ioncube Needs To Be Installed On The Server

Jul 16, 2008

I'm being told that Ioncube needs to be installed on the server.

View 8 Replies View Related

DS With Windows 2003 Server Installed

Apr 21, 2009

any DS provider, well-known and providing good support who does offer DS with Windows 2003 Server installed?

View 8 Replies View Related

How To Know Php5 Installed On My Dedicated Server?

Mar 29, 2008

to know if i have php5 installed on my dedicated server. I know that php4 is working but i dont know if php5 is also installed..

View 5 Replies View Related

Killing A Server With WHMCS Installed

Feb 5, 2008

if it was possible to kill a server running WHMCS by executing the cron.php via cronjob on a remote server once every minute.

I just wanted to see if this was potentially harmful, so I can submit it to Matt without sounding like an idiot...

View 3 Replies View Related

Listing Installed Software On A Server

Aug 24, 2007

What is the best way to get a list of all the software installed on a Linux server? Are there specific shell commands for this?

View 12 Replies View Related

How To Find Out If SSL Certificate Is Installed On A Linux Server

Apr 20, 2009

How do I go about finding if a certificate is installed on a Linux machine?

View 1 Replies View Related

Those With CSF Installed - Server Security Check Score

May 12, 2009

If you have CSF installed, under its WHM section there is a quick security 'scan' you can run - just wondering what score you have?

I know it's not an infallible test, but the scan does test for some potentially large weaknesses hence why I'm asking here (mainly out of curiosity) what sort of scores people have.

Mine is 103/112 - the rest of the points were mainly for features I didn't want enabled for particular reasons (i.e. one of the recommendations is to force all cPanel visits to be through SSL, a feature which some clients don't want) plus sometimes it says I've got features enabled which are disabled, etc.

View 12 Replies View Related

Windows Server 2003 Installed. How To Add Websites

Oct 3, 2008

I have a Windows Server 2003 package installed on a server. I own a number of websites that are being hosted some place else. How do I get my websites set-up to run on my new server?

View 2 Replies View Related

Which Standard Modules To Be Installed On Your Dedicated Server

Jul 23, 2008

what are the standard modules which you normally need to get installed in your server or which you install ? from which you sell hosting to your customer or Which standard modules Is Most Important To Be Installed In Your Dedicated server ?

View 3 Replies View Related

Backup My Remote Dedicated Server With Centos Installed Over Ssh

Jul 5, 2009

i have a dedicated server with rapidswitch. Few days back all my websites stopped working, due to some reason which i was not able to solve.

NOw, i want to backup all the files stored on my server. Each and every file including the database and every file there on my server.

I tried to log in through ssh on filezilla but i was not able to find out all the folders.

I have putty and could login over ssh , but i don't know the commands to backup.

Could, you guys tell me how to get all those files on my local computer.

i also have cpanel/whm installed and that is working.

View 4 Replies View Related

Security Risk Having Mbstring And Mysqli Installed On Your Server

Mar 20, 2008

A friend of mine owns a hosting company and a client of his asked to have mbstring and mysqli installed. What he wants to know is , is there any security risks if he does install that on his server?

Also, he wants to know, if there is not, what how does he go about installing that on the server?

View 4 Replies View Related

Virtual Private Server (VPS) - Installed By Ourself Or Ready Solutions ?

Oct 21, 2007

we have any server with isp, really perfect service and support.

but now we need to buy 1 server with vps solutions and our isp not offer this solutions.
The support have said that we must buy not managed server and install by ourself.

Now we are not sure if better to buy unmanaged and searc expert to install vps OR buy serve with vps solutions from other isp.

What do you think about this?

View 4 Replies View Related

Plesk 11.x / Linux :: Scripts Of SPAM And Phishing Installed On Server?

May 22, 2014

I are running an Plesk 11.5 on a Ubuntu 12.04 machine. Since days i have problems where i see scripts of phishing sites and mailer scripts installed in the httpdocs directory of various domain.

How I can prevent that people outsiders install this scripts on the server? Where is the bug that allows this?

View 4 Replies View Related

Installing PHP Onto A Windows Server

Apr 6, 2009

I designed my companies website but we've had a change in IT and php went down. The new guy (who is here to fix things) just sent me this and quite frankly I'm at a loss (i use a VPS, thus never having to deal with this stuff). But seeing how it's my own company I figured I'd try to help.

Here is the question:

Quote:

You are running IIS (windows server). The PHP should be something straight forward, but as we see it is not...
Previously, you had PHP ver PHP 5.2.6 dated may 2008. - it wasn't working correctly.
I updated it with the latest version php-5.2.9-1 dated march 2009. - and now the PHP is not functioning.

My questions, if you know was to figure which option of PHP cgi are you using.
IIS ISAPI module
IIS FastCGI
IIS CGI

Then, when installing the PHP, there are many extensions that are optional to install. Do you know or can you tell me, which extensions are needed by your app?

Honestly, the website just uses a few php includes to template it (and make my life easier). And that's what were trying to get working.

View 2 Replies View Related

Installing CentOS 5.2 On New Server

Jul 4, 2008

I decided to go with Cent OS after reading about it in the forums here, but I've had nothing but problems trying to install it. I first tried to do a net install but the installation took nearly an entire day because it would keep popping up messages about corrupt files when downloading the package files. Eventually it just gave up or rebooted because I came in in the morning to find it at a message saying "No OS installed". I then burned all 7 installation disks and tried that way, still got a few of the corrupt file messages (but far fewer than the previous time) and made it through the installation only to still have it say "no os installed" again after the reboot. I thought maybe it had something to do with the fact that I was not installing a boot loader (there is no other OS installed anyways) but when I tried to reinstall a third time, this time with the boot loader, it now says that the CD drive (USB) is already mounted on tty2 and I can't even start the installation? WTH!

The server is a Dell PowerEdge R300 with two Intel Core 2 Duo 64-bit processors. I'm using the x86_64 ISOs from the Centos.org mirrors.

View 1 Replies View Related

Installing BIND On New Server

Feb 16, 2008

trying to install nameserver in cPanel and getting errors about missing dependacies.

when I try and do it manually by running: yum install bind it goes ok for a while then I get the following:

Error: Missing Dependency: e2fsprogs-libs = 1.39-10.el5 is needed by package e2f
sprogs
Error: Unable to satisfy dependencies
Error: Package e2fsprogs needs libblkid.so.1, this is not available.
Error: Package e2fsprogs needs e2fsprogs-libs = 1.39-10.el5, this is not availab
le.
Error: Package elinks needs libcom_err.so.2, this is not available.
Error: Package cadaver needs libcom_err.so.2, this is not available.
Error: Package util-linux needs libuuid.so.1, this is not available.
Error: Package pkinit-nss needs libcom_err.so.2, this is not available.
Error: Package openssl needs libcom_err.so.2, this is not available.
Error: Package nss_ldap needs libcom_err.so.2, this is not available.
Error: Package openssh-server needs libcom_err.so.2, this is not available.
Error: Package fetchmail needs libcom_err.so.2, this is not available.
Error: Package util-linux needs libblkid.so.1, this is not available.
Error: Package cryptsetup-luks needs libuuid.so.1, this is not available.
Error: Package pam_krb5 needs libcom_err.so.2, this is not available.
Error: Package krb5-libs needs libcom_err.so.2, this is not available.
Error: Package parted needs libuuid.so.1, this is not available.
Error: Package openssh needs libcom_err.so.2, this is not available.
Error: Package quota needs libcom_err.so.2, this is not available.
Error: Package readahead needs libext2fs.so.2, this is not available.
Error: Package krb5-workstation needs libcom_err.so.2, this is not available.
Error: Package cyrus-sasl needs libcom_err.so.2, this is not available.
Error: Package mutt needs libcom_err.so.2, this is not available.
Error: Package e2fsprogs needs libe2p.so.2, this is not available.
Error: Package e2fsprogs needs libext2fs.so.2, this is not available.
Error: Package neon needs libcom_err.so.2, this is not available.
Error: Package e2fsprogs needs libuuid.so.1, this is not available.
Error: Package openssh-clients needs libcom_err.so.2, this is not available.
Error: Package krb5-workstation needs libss.so.2, this is not available.
Error: Package quota needs libext2fs.so.2, this is not available.
Error: Package ipsec-tools needs libcom_err.so.2, this is not available.
Error: Package e2fsprogs needs libss.so.2, this is not available.
Error: Package gnupg needs libcom_err.so.2, this is not available.
Error: Package curl needs libcom_err.so.2, this is not available.
Error: Package readahead needs libuuid.so.1, this is not available.
Error: Package e2fsprogs needs libcom_err.so.2, this is not available.
Error: Package readahead needs libblkid.so.1, this is not available.
Error: Package nfs-utils needs libcom_err.so.2, this is not available.
Error: Package readahead needs libcom_err.so.2, this is not available.

I;m using centos 5

View 3 Replies View Related

Installing Svn On My Directadmin Server

Jan 13, 2008

installing svn on my Directadmin server. I'm trying to get it configured with apache, but I'm having some trouble.

When I run "yum install mod_dav_svn" it tells me there is nothing to do. I'm not sure why this is. I think it may have something to do with Apache 1 originally installed on the server. I upgraded to Apache 2.26 via the new custombuild script by DA.

I have to admit that I really don't even know what DAV (same as webdav?) is. This should be a straight forward install, but I think because of Directadmin it's much more complicated.

I know that I could pay someone to do this for me, but I don't learn anything that way. I'm a CS undergrad, so I really like learning.

View 4 Replies View Related

Installing Cpanel Dns Only Server

Apr 20, 2007

I have two vps and i want to add one to the cluster system and make it a DNS only server.

does anyone have any tutorials on how to do this? i am a newbie to this sort of thing so need a step by step process.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved