Configuring PHP To Work With MySql

Jul 25, 2007

I'm using Windows XP and installed Apache, PHP 5 and MySql 5. They were all working before, but recently I had to format my hard drive. Fortunately, I had an image of my computer created from before but MySql was not installed when that image was created.

After deploying that image, everything seems to be working fine. The server is running and PHP scripts are executing as well. But I can't seem to have MySql to work. I've followed many tutorials online, but have no luck.

I have edited the php.ini file to point to the correct directory that holds the extentions or dll's. I also enabled the following:

extension=php_mbstring.dll
extension=php_mysqli.dll
extension=php_mysql.dll

I already tested to see if MySql was correctly installed by using the command line client and it seems to be installed. I was able to log in and see the default databases created.

But when I run the following php script

<? phpinfo() ?>

I don't see the MySql section anywhere and that's why I'm assuming that PHP is not currently working with MySql for me. However, interestingly, I do see the "mbstring" section, which I assume should show only if MySql is working with PHP. But nothing else related to MySql info shows up. I've attached part of the screen shot if it helps you.

View 3 Replies


ADVERTISEMENT

Configuring Passive FTP To Work With Firewall

Mar 23, 2009

I'm running a Win2003 dedicated server with IIS and Plesk v9. While trying to configure my FTP ports I found out that my host has a basic (free) hardware firewall on my main/shared IP with ports 2000-2015 reserved for passive FTP connections. I asked them if they could change the ports to match the default ones but to customize hardware firewall settings I'm require to upgrade to a paid solution.

I again tried to approach the problem by trying to get IIS to conform to the host's ports. However after some research I found that the default MSFTP range is 1025-5000 while custom values have to be between 5001-65535. My host recommends I upgrade to a personal hardware firewall or make do with a software firewall. Other than dropping the firewall is there nothing I can do here?

I've thought of serving FTP on a dedicated IP (which would be exempted from the hardware firewall) but when I tried to set it up I got a directory permission error during connection attempts. I may be mistaken but this appears to be an an issue with Plesk not liking to serve a website's HTTP and FTP on separate IPs. Is solving this problem my best bet?

View 3 Replies View Related

Configuring Php/mysql On IIS Server

Sep 22, 2008

I have setup php and mysql on a windows IIS 6 server. php has installed fine and works but I have 2 problems

1. When i browse to http://localhost i get a 403 error but when browsing to http://localhost/index.php it works fine. It makes me think that the server does not know what extension to default to when doing a directory listing

2. I have phpmyadmin installed and the cfg file is set to do a 'config' authentication. That works but everytime i go to submit a form to create a new database or anything i get prompted with an HTTP user/pass. I'm not sure if this is a phpmyadmin issue or a php configuration issue

View 1 Replies View Related

Configuring Server To Handle Both MySQL And MS Access Databases

Mar 24, 2008

Since I have never worked on the server end of things I had a quick question for all you web hosting gurus.

Is it possible to have PHP installed on ONE single server and still have the ability for the server to work with both MS Access AND MySQL at the same time?

I would think YES, but I am being told by our server branch at my current job that this is not the case. They claim there is no way for the server on one machine to be able to handle both types of databases. Are they right?

If they are wrong and it is possible to have one server run both type of databases, what steps would be necessary to set up the server to handle both types? Do we need to tweak the php.ini file or is there another method of allowing the server the ability to work with both MySQL and MS Access.

Sorry if this question seems stupid or odd, as I said, I have minimal experience on the server end but I am confident that a server can handle both.

View 10 Replies View Related

Configuring MySQL/Apache To Run A Larger Website More Efficiently

May 12, 2007

I'm running a comic site on a dedicated linux box that has weekly releases. When a new release comes out I'll typically get 4000-5000 unique hits an hour. The problems started when I set up a MySQL download logging system, that would query and display the file names when the user loads the site, and update +1 when they download a comic. Yesterday after a release, the site became very slow to access, and after about 20 seconds you'd connect and be able to browse freely at nice speeds but if you went idle you'd have to wait about 20 seconds to connect again. The other domains on the server were running fine, and I could access my whm fine as well, the server load was 0.10 or lower.

I'm assuming there's a max connection limit somewhere either on the mysql or apache side that's restricting the site from handling the load it's getting. I've poked around google and researched it a bit but couldn't really find much. I don't have an enormous amount of time to invest in this because it's just a hobby so I'd appreciate any help one of you could offer!

View 2 Replies View Related

Mysql Don't Work

Jul 9, 2009

I try to install wordpress on my dedicated server but in the begin i get this error:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

I have centos 5.3 and i have run the command: service mysql start

But i think mysql server is not running, because i have kloxo and from the panel i can see what servers are running.

View 14 Replies View Related

Mysql Server Won't Work

Jul 1, 2009

I did an apache rebuild and about two hours later, my mysql stopped working.

So i tried various rebuilds to see if perhaps it was suoshin (this caused php to stop working on my server before) but to no avail, this hasnt fixed it. I cant even access the databases via phpmyadmin.

I've restarted the mysql server, apache, i've rebooted a couple times. I don't know what to do.

View 7 Replies View Related

Mysql Torrentflux Doesn't Work

Apr 7, 2009

i have dedicated server and was trying to install torrentflux in there ( well might be any other script with Mysql needs) I created databse with plesk but when i put it to confinguration it does not work. I have done this Many times on shared hosting though

View 4 Replies View Related

[cpanel] "create View .." Doesn't Work For Mysql

Jul 11, 2007

why this mysql command doesn't work on phpmyadmin on cpanel server.

Quote:

CREATE VIEW TEST AS SELECT * FROM COURSE

it give this error:

Quote:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW TEST AS SELECT * FROM COURSE' at line 1

View 2 Replies View Related

Configuring IIS

Apr 13, 2008

I have IIS with the default site and a site i created. it appeared to be configured correctly but even from the server if i try to "browse" any of the pages i still get "internet explorer cannot display the page" from my site and "under construction" from the IIS default site.

View 7 Replies View Related

Configuring USB-LAN

Oct 21, 2008

I have a machine which runs on Desktop board with 1 LAN port built in.
I just bought a new USB-LAN and plug into the USB but I have question about how to configure it. I cannot see eth1 inside /etc/sysconfig/network-scripts, so where can I configure USB LAN?

View 3 Replies View Related

Configuring DNS And Nameservers

Jan 22, 2007

I got dedicated server with plesk 7.8 installed on it. Can anybody tell me what to do next to add new website.

I have ip through which i can login to plesk control panel.

I want to know how can i create name servers which i will use for my domains like ns1.abc.com ns2.abc.com.

What setting i need to create by use DNS button in control panel to run my sites properly.

View 1 Replies View Related

WHM Is Not Actually Configuring Apache?

Dec 28, 2006

I'm over here trying to rebuild php with GD in WHM, I go through the entire motion of Apache Update (with GD selected as a PHP Module) and ummmm... after it's done, I check my phpinfo() and there is no GD section, let alone has the build date been changed.

View 9 Replies View Related

Configuring DNS Information

Mar 24, 2009

I am moving my servers this week and my new host doesn't do domain hosting. This is my first time doing it, I need help in pointing my domain to the new server. I just need the basic settings for A, CNAME and MX records.

View 13 Replies View Related

Configuring Sendmail

Jul 14, 2009

how to which will help me to make a correct configuration of mail server. I want to set up a mail server with e.g three domain names and all three domain names will have few similar email addresses like info, sales, marketing and so on. I know that this can be done by using control panels but I am not big fan of control panels I want to do a pure Linux administration using the command line.

View 6 Replies View Related

Configuring Suhosin ...

Mar 31, 2009

I've continually worked on it, but nothing seems to give.

I'll install it in the right place, but not have the config saved properly, or it's in the wrong place but saved right.

View 2 Replies View Related

Configuring A DR Site

Jun 29, 2008

Is there somewhere that either has a tutorial or explains how a DR site is setup and activated when the primary site goes down? And how do you configure it to fail-over to the primary site again once it is back up and running?

I'm planning to have a certain hardware configuration in place at a primary site (load balancers/web/app/database/SAN) supporting a service that MUST remain online. Because it's mission critical, I also will need a DR (disaster recovery) configuration at a secondary site. My challenge is how to configure DNS or whatever to fail over the primary site to the secondary site if the primary experiences a failure of some sort. Then fail it back post-recovery.

I am planning to use the secondary site to burn-in development prior to go-live and when ready, migrate the changes to the primary so both sites are identical.

I am doing some investigation regarding NetScaler appliances to understand how they work. At first glance it seems they are able to direct incoming traffic to specific locations based on various criteria (geo, speed, load capacity, etc). I noticed they are also a recommended solution by Citrix for traffic management... but a DR solution is evading me. And something is telling me it's not all about some piece of hardware.

View 2 Replies View Related

Configuring My DNS And Godaddy

Apr 9, 2008

i got DNS and IIS installed and configued DNS completely by the book. I made 2 forward lookup zones ns1 and ns2.mydomain.net

what is this step im missing between that process and being able to tell godaddy to hit my nameserver. it just keeps telling me they are not registered nameservers so i must be missing something here.

View 9 Replies View Related

Configuring SSL With CPanel/WHM

Jan 7, 2008

I have got a WHM Reseller Account, with a Dedicated IP address and RapidSSL Certificate.

My host has setup the SSL for me, and it works fine when I access [url](where main-domain.com is the Domain associated with my WHM account).

However when I try and access https on any Account which I've made under my Reseller Account, I'm just redirected back to [url]

I was under the impression that if I accessed a Domain on an account I made that shares the same IP as my SSL Certificate, that the SSL Certificate would appear for that Domain name too, but this isn't the case.

Is there any change the my DNS records, or something I can ask my host to do to get it to work?

View 2 Replies View Related

Configuring Nagios ..

Aug 2, 2008

I want to configure Nagios to monitor Windows and Linux servers and their services. I have to install NSClient in Windows servers and NRPE in Linux servers to collect the data. I don't want to install any plugin in any server. Is there any guide available which describes how to enable Monitoring of servers using SNMP through Nagios?

View 2 Replies View Related

Configuring Plesk

Sep 11, 2008

is it possible for us to set up plesk sp that it monitors bandwidth usage week on week instead of month on month?

View 4 Replies View Related

Configuring My Iptables

Jul 5, 2008

I saw an ad on WHT by LimeStone Networks and decided to get a server from them. My server was made within few hours. On the server, I was only able to connect to the SSH on port 22, I could not login to the DirectAdmin or anything.

So, I tried shutting down the "iptables" firewall like this:

Code:
service iptables stop
and then tried to access the directadmin like this:

[url]

and it worked. So, the problem is that, my host only configured ssh on my server and didnt configure the rest.

How do I open the rest of ports, e.g.

2222 (directadmin)
80 (web server)
21 (ftp)
443 (https)
3306 (mysql)

etc... ?

on the welcome email, this is what they said about the firewall, but I don't quite understand

Quote:

Please be advised that your server's firewall is active for your protection and will only accept connections on port 22/tcp by default.

If you modify firewall or IPTable rules on your server, please be sure to have them configured to allow inbound and outbound traffic on all ports (TCP & UDP 1-65535) from 209.130.152.0/28.

View 4 Replies View Related

Configuring PureFTPd On A VPS

Mar 27, 2008

I'm trying to install and configure pureFTPD on my VPS which I just got.

Right, here goes one of my stupid questions:

When I try to start pure-ftpd (with the command /usr/sbin/pure-ftpd & ), this is what I get:

[1] 20271

What does [1] 20271 mean (or it may be other random number)?

And I can't see pure-ftpd as a running process (ps -ef command). So what's happening, how do I start pure-ftpd properly? It is installed as far as I understand.

Quote:

...lots of other packages...
ii pure-ftpd 1.0.21-8 Pure-FTPd FTP server
ii pure-ftpd-comm 1.0.21-8 Pure-FTPd FTP server (Common Files)

View 6 Replies View Related

Configuring Dedicated Ip

Mar 1, 2007

We check a domain under dnsreport and all seems ok

But, when we assign IP (not the main shared) to the account and check dnsreport we see this error:

Reverse DNS entries for MX records
ERROR: The IP of one or more of your mail server(s) have no reverse DNS (PTR) entries/* (if you see "Timeout" below, it may mean that your DNS servers did not respond fast enough)*/. RFC1912 2.1 says you should have a reverse DNS for all your mail servers. It is strongly urged that you have them, as many mailservers will not accept mail from mailservers with no reverse DNS entry. You can double-check using the 'Reverse DNS Lookup' tool at the DNSstuff site if you recently changed your reverse DNS entry (it contacts your servers in real time; the reverse DNS lookups in the DNS report use our local caching DNS server). The problem MX records are:
**** [No reverse DNS entry (rcode: 3 ancount: 0)

AND

Mail server host name in greeting
WARNING: One or more of your mailservers is claiming to be a host other than what it really is (the SMTP greeting should be a 3-digit code, followed by a space or a dash, then the host name). If your mailserver sends out E-mail using this domain in its EHLO or HELO, your E-mail might get blocked by anti-spam software. This is also a technical violation of RFC821 4.3 (and RFC2821 4.3.1). Note that the hostname given in the SMTP greeting should have an A record pointing back to the same server. Note that this one test may use a cached DNS record.

www.***.com claims to be host host.***.com [but that host is at **** (may be cached), not ****].

-------------------

View 2 Replies View Related

Configuring A New Server

Dec 22, 2007

Actually my DSL provide me 1024 kbps of Internet Access. I am wanna connect computers to that network and rent the pc in my own country.

Here the features of that I have:

- 2 Desktop PC ready for connect.
- 1 router with 4 lan Port.
- 1 Dynamic ip
- 1024 kbps of Internet connection.

the desktop pc will be configuring with Centos 4.x and I wanna install on it a control panel like directadmin.

Here the issues:

- How I can configure 2 statics ip for each desktop pc?
- The desktop pc will be connected every one in the same router?
- How I can know how will be the rendiment with 1024 kbps?

View 3 Replies View Related

Configuring POP3 Account

Jul 4, 2009

I am using lxadmin on my vps. In a mail system I need to configure pop3 account to fetch mails. I am using it on a folder "main site/folder". Please can any one tell me how to configure POP 3 account in lxadmin for the folder or any subdomain.

View 0 Replies View Related

Configuring A ASA 5510 For Hosting

Sep 9, 2009

for setting up my ASA 5510? I'm assuming I'll configure it for just permit ip any any and let it do inspections. I wouldn't want to have to create a permit statement for every one of my customers'

View 8 Replies View Related

Configuring Linux For Colocation

Aug 10, 2008

I am setting up CentOS linux on a 1U server for colo, a CentOS basic install without graphic interface, just the compilers package and the basic stuff will be installed.

However, before I rack this server up I need to do some things to make it work. I already know that I have to disable IPtables (or clear the firewall rules).

Do you usually have a list of things to do before you colo a linux server? Please share, as I will have to go thru it.

View 3 Replies View Related

Configuring Cpanel With Dnsonly

Sep 7, 2007

let's say I have 2 vps (ns1.myhost.xxx and ns2.myhost.xxx) running dnsonly cpanel and 2 dedi server running cpanel (srv1.myhost.xxx and srv2.myhost.xxx).

is it possible to have dns server only on the vps?

View 3 Replies View Related

Configuring Multiple Servers

Nov 10, 2007

I was talking to my host the other day about configuring multiple servers as a private LAN. I was wondering if anyone has successfully set up a configuration of using separate servers for each task for shared hosting accounts. I.E. Having certain servers as web servers and others dedicated as MySQL servers, e-commerce servers, mail servers etc.

Does anyone do this? I can see it boosting performance.

View 2 Replies View Related

Configuring Apache With SSL On Windows

Oct 28, 2008

i couldn't find a more suitable category to put this post in: I am setting up a development server local to my office here, so that we can develop projects using an SVN app, but the SVN system needs SSL for logging in. i am now going round in circles where httpd.exe cannot start as a service from the apache monitor, with the following error:

The Apache service named reported the following error:
>>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.84 for ServerName
in the windows event viewer.

I'm using:
Windows XP Home edition, SP3
Apache 2.2.9
full computer name is devserver
workgroup is WORKGROUP

I used openssl bundled with this version of apache to generate the SSL certificate, and they all seem to be ok. When i change the line

SSLEngine on

in the httpd-ssl.conf file, the apache service starts when the SSLEngine is off, but not when the SSLEngine is on.

i have trawled the internet but not found any answer. ive checked thru httpd.conf and httpd-ssl.conf several times but i just can't see anything wrong (although im not entirely experienced!).

View 4 Replies View Related







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