Server :: Configuring Apache / MySQL And PHP For AMXbans

Sep 24, 2010

I have a problem with AMXbans. My Linux is Slackware 13.0. , mysql is version 5.0.84, Apache/2.2.13,PHP 5.2.3 from locahost or real IP in internet explorer i see this error " Lost connection to MySQL server at 'reading initial communication packet', system error: 111".
In /var/log/httpd/error_log I see this error:

" [error] [client IP] PHP Warning: mysql_connect()
[<a href='function.mysql-connect'>>function.mysql-connect</a>]:
Lost connection to MySQL server at 'reading initial communication packet',
system error: : 111 in /var/www/htdocs/web/include/config.inc.php on line 48,
referer: http://My real IP/web/
//connect to db - "this is line 46"
$config->db_host=gethostbyname($config->db_host); "this is line 46"
$mysql = mysql_connect($config->db_host,$config->db_user,$config->db_pass) or die (mysql_error()); - "this is line 48"

View 1 Replies


ADVERTISEMENT

Red Hat / Fedora :: Configuring Apache Web Server

Oct 19, 2009

I have to go through an ERP projects. "README" file to setup the software gives following instruction which I have attached with this thread.So, according to first step I copied the entire "dolibarr-2.6.1" folder in "/usr/local/apache2". But whenever I call the browser with address given in "README" file my browser gives the following error message : Code: Firefox can't establish a connection to the server at localhost.Please let me know how can I configure the Web Server so that I can use the software.

View 1 Replies View Related

Server :: Configuring Php For Virtualhosts In Apache

Jun 6, 2010

I am using the virtualhosts feature of Apache web server to host multiple domains on a single web-server. Is it possible to have different settings for php for different domains?

For eg:- I have mydomain1.com and mydomain2.com hosted on the same server. I want php scripts of mydomain1.com to connect to database but prevent database access for scripts of mydomain2.com. There are many php functions that I want to restrict for mydomain2.com.

View 5 Replies View Related

Fedora :: Configuring Apache - All The Mods Tried Crashed The Server

Oct 2, 2010

I have succesfully installed Apache... It works fine with PHP-MySQL support... I love it too...

But the thing is that I have to store all my files in /var/www/html/ which sort of annoys me... I was wondering of there is any method to reconfigure the httpd.conf file to do it...

All the mods I tried crashed the server....

View 3 Replies View Related

Server :: Configuring Virtual Users On Postfix / MySQL Fedora 12

May 9, 2010

I was following the above guide to get a mail server up and running. The major difference in it all is the fact that my server is running i686, but I compensated for that easily, just a difference in folder/RPM names. [URL]. Otherwise I followed it to a "T." Everything seemed to go smoothly, no trips or falls until the very end.

After installing squirrelmail and trying to login on admin@withfrosted.com returns ERROR:
Connection dropped by IMAP server.
Uncle google tells me to run this command because SELinux is overzealous:
setsebool -P httpd_can_network_connect=1

And that works, and I thought I was home free. However, after that, I'm presented with a new error. However, google told me to send an email to create the mailbox because it wasn't there, yet. So I send a test email on over, but that fails, and so does mailx. Next I created /home/vmail/withfrosted.com/admin while logged into the vmail user for proper permissions. Squirrelmail now logs into the mail box but gives me yet another new error, in which I am now stuck on:
ERROR:
ERROR: Could not complete request.
Query: SELECT "INBOX"
Reason Given: Unable to open this mailbox.

As a summary, because I'm all over the place, here:
1. Can't view the mailbox via Squirrelmail.
2. Can't receive email, tried with mailx and a test email from gmail.

Regarding #2, the gmail test email, from the maillog:
May 9 07:25:45 withfrosted postfix/smtpd[21095]: connect from mail-qy0-f177.google.com[209.85.221.177]
May 9 07:25:45 withfrosted postfix/smtpd[21095]: 26CE516241D: client=mail-qy0-f177.google.com[209.85.221.177]
May 9 07:25:45 withfrosted postfix/cleanup[21104]: 26CE516241D: message-id=<z2pe336661a1005090425zaee8dc71jc3002cb7cb25e0fa@mail.gmail.com>
May 9 07:25:45 withfrosted postfix/qmgr[19083]: 26CE516241D: from=<issact@gmail.com>, size=1866, nrcpt=1 (queue active)
May 9 07:25:45 withfrosted amavis[21024]: (21024-01) (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=mail;host=127.0.0.1;port=3306': Can't connect to MySQL server on '127.0.0.1' (13)
May 9 07:25:45 withfrosted amavis[21024]: (21024-01) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 98) line 241, <GEN15> line 5.
May 9 07:25:45 withfrosted amavis[21024]: (21024-01) (!)Requesting process rundown after fatal error
May 9 07:25:45 withfrosted postfix/smtp[21105]: 26CE516241D: to=<admin@withfrosted.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.2, delays=0.11/0.01/0.01/0.07, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))
May 9 07:26:15 withfrosted postfix/smtpd[21095]: disconnect from mail-qy0-f177.google.com[209.85.221.177]

View 4 Replies View Related

Software :: Can't Start Apache Server After Configuring, Compiling And Installing?

Apr 25, 2009

I've decided to install apache server from groundzero. So I've done next things:1)downloaded source tar with apache22)unzipped it3)./configure(d) it4)make5)make install
...But!!! I can't start it. apachectl in /usr/local/apache2/bin

error answer is:
<code>
[root@dhcppc1 bin]# apachectl start

[code]...

View 6 Replies View Related

Server :: Server Slow : Apache Mysql Fine Tuning Server For Faster And More Responsive?

Apr 21, 2011

I'm running a linux cloud server with the following config
1.2ghz Processor allocation
752MB Ram

The site loads slow and clicking a link almost freezes the page for a second. Also, the page loads could be much faster. We've been running mysqltuner and have pretty much optimized all slow queries. Is there anything we can do to fine tune the server for faster and more responsive?

Httpd.conf

Timeout 20
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
<IfModule prefork.c>
code....

View 2 Replies View Related

Server :: LAN Connection Between Mysql And Apache?

Jul 29, 2010

Running slackware13.1 with mysql on box2 and apache on box1 both in same lan. How do i configure mysql for apache connection? I have looked at many mysql config. howto which i can follow but i'm confused about whether the connection type is considered remote connection because the 2 services are on seperate boxes but are in same lan? Apache will be serving public webpages not just to the lan.

View 1 Replies View Related

Server :: Recommendation For Mysql+apache+php?

Jul 10, 2010

We are working on a new ERP for the company. This will run in MySQL 5.1.x, the GUI will be Web, the language PHP. This is a big project, is a good option to have the 3 applications in the same server or is better to have Mysql on 1 server and httpd+php on other server?

Speaking that I want to virtualize this app with Xen on Centos 5.5 as Host and the guest's will run Ubuntu.

View 3 Replies View Related

Fedora :: Server Version Where Apache Php Mysql Are There?

Mar 15, 2010

I found the desktop version but I am wondering is there a server version where apache php mysql are all there?

View 1 Replies View Related

CentOS 5 Server :: MySQL Not Working From Apache?

May 25, 2009

I run mysqld on another server. I just switched to another dedicated server now, and i'm having trouble connecting to the mysqld server. If i run the php script from the bash console( php connect.php ) it works perfectly and connects to the mysqld server. However, if i run the script from apache ( http://localhost/connect.php ) it returns this: Can't connect to MySQL server on '(mysqld real ip)' (13) Mysql connection from another server(old httpd server) works perfectly, so it's not from the database server.

View 4 Replies View Related

Ubuntu :: Web Server Not Working - Running Apache And Mysql

Apr 16, 2010

i have apache and mysql running, i can access my web server by visiting localhost on port 80 but for some reason when it doesnt work when i try using my ISP provided IP address... (it used to work).. i have my router setup with a DMZ on my LAN IP (my computers IP, this is the computer in my home network that serving with apache).. i also cant seem to shut down my mysql server (theres an update ive been trying to get) even when i use sudo...

View 5 Replies View Related

General :: LAMP Server Setup - MySQL - PHP - Apache - FTP

Mar 16, 2010

Good tutorial, using images for a lamp server that has, MySQL,PHP, Apache, FTP with all the fruit for running a server that will host a Gallery, forum and main site

I know there's heaps around for Ubuntu 9.10, but its not quiet what I'm looking for as in Gd, ImageMagick and some extras for Apache mods

View 1 Replies View Related

General :: MySQL And Apache Configuration For Busy Server?

Mar 4, 2011

I need to tune the mysql and apache server for the comparatively busy webserver. My scenario is like this.

1. The Web request is around 2000 request at a time or more.
2. Each web request will generate one mysql query.
3. The query to database is all read.
4. This server load will be at peak for around 3-4 hours after that the load will subside. As the task will be published, around 300,000 will be viewing the page.

5 quad servers are deployed, load is balanced via DNS but performance is not as expected. Centos 5.5 is used as OS. Top command shows The mysql process is around 185%!

View 3 Replies View Related

CentOS 5 Server :: Apache MySQL PHP Does Not Work On New Install

Jul 17, 2010

I just installed Centos 5.5 on one of my systems today and something is eluding me. Basically I had a web site and forum software (phpBB, but I don't think it's that, other forum software like Xoops does the same thing) running on Fedora 13, and I copied it over to the new Centos installation. Apache is running fine and displays a PHP test file and .html files just fine.

MySQL seems to be fine, I can log into that, show databases etc. Just can't get any forum software to know there is MySQL there. I did change the path of the site, and the databases, and edited /etc/my.cnf and /etc/httpd/conf/httpd.conf to reflect that. Thought I made the needed changes in /etc/php.ini but who knows. Seemed like everything should have tar'd up and moved easy, but not the case...

View 5 Replies View Related

Server :: Apache 2.2 AuthType Digest, PAM Module, MySQL - Configuration?

Feb 18, 2010

Just setup an Apache2 server, and I would like to setup a login. I also wanted to use the same method that is setup for vsftpd For vsftpd I've created a mysql database.... structured as:

Code:
mysql> use vsftpd
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> describe accounts;

[Code]...

View 2 Replies View Related

Server :: Perl Apache Session MySQL Inconsistency On Debian Lenny

Apr 11, 2011

I have been tearing my hair out with this. As part of a backend perl script i am holding the Epoch time as session data using apache session and mysql so i can delete sessions after an expiry period. When I retrieve the time it is about three months old even when i only just set it. The code example below best describes the problem:

View 5 Replies View Related

Ubuntu Servers :: Separate Virtual Machines For Apache, Mysql, File Server?

Jul 11, 2011

I'm working on a side project where I would like to install three ubuntu server systems,each with only one task.So server0 would be the apache server, server1 would be the database and server2 would be the file server.which key terms I should be researching?

View 9 Replies View Related

Server :: Setup LAMP With MySQL Master/slave Replication And Apache Rsync?

Aug 12, 2010

I started over combining the first parts of this guide: [URL]..ubuntu8.04 (Only the first few parts in terms of configuration and naming). Then I used this guide: [URL]..Surprisingly enough all steps worked.

1. Now I need to set up LAMP servers with MySQL master/slave replication and Apache rsync.

2. Next i need to add BIND to both my Load Balancers with master/slave backup and replication...

Are there any guides to look at to follow on these? Can tou point me to the right direction for BIND with replication.

View 1 Replies View Related

OpenSUSE Network :: ERROR 2002 (HY000): Can't Connect To Local MySQL Server Through Socket '/var/mysql/mysql.sock

Jun 7, 2011

I think this goes here, but I'm not sure. I decided that XAMPP had been troublesome enough. MySQL never worked. So I decided to instal the LAMP stack offered by YaST. I went about installing it thinking that it would all work. But it seems that I was wrong. So I try to start mysql, and here's what I get:

Code:
the-matrix:~ # mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) or
Code:
the-matrix:~ # rcmysql start
Starting service MySQL warning: /var/mysql/mysql.sock didn't appear within 30 seconds
chmod: cannot access `/var/run/mysql/mysqld.pid': No such file or directory

[Code]...

View 6 Replies View Related

General :: Can't Connect To Local MySQL Server Through Socket '/var/lib/mysql/mysql.sock' (2)

Jun 2, 2010

i am using liferay5.2(mysql included in the download pack) on fedora. while liferay is working fine but i cannot connect to mysql.i am getting the error

[
[root@localhost ~]# ln -s /var/lib/mysql/mysql.sock /tmp
[root@localhost ~]# /etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.

[code]....

i didnt find the mysql.sock file in the location /var/lib/mysql/mysql.sock. i cannot find the portal-ext.properties file also to make intial settings.

View 9 Replies View Related

General :: Configuring MySQL Under Chroot Env?

Oct 18, 2010

I had configured MySQL Server (Distrib 5.1.41) on My Ubuntu 10.4 Lucid sever.I had installed mysql through apt-get install.Now every thing including replication is done and working fine.Now i had a requirement to run MySQL in chroot environment.Is it possible to change the the existing env to chroot or do i need to install and configure every thing from scratch..

View 1 Replies View Related

CentOS 5 :: Configuring The Dns And Apache?

Aug 11, 2010

where i can learn configuring DNS and apache

View 1 Replies View Related

Ubuntu Servers :: Configuring PHP - MYSQL GUI And XAMPP

Feb 8, 2010

I'm using ubuntu 9.10 64bit and I'want to configure php mysql and lampp. Also the package mysql-ser is already installed, so if I install MYSQL GUI tools(Administrator, query browser..) from my synaptic package manager will it detect the mysql already installed ? Also tried configuring lampp by extracting it in my /opt directory and i started the server, which MySQL ll it detect the one which was previously installed otr the oin that in gui tools ?

Also think the current ubuntu repository does't have latest build of mysql GUI tools, so how the above mentioned things ll change if I try to download the individual package.

Oveall what I want is to configure Mysql GUI tools, Mysql workbench, xampp and php(For this I'm using Bluefish and Komposer). Please help me out so that I can leave windows for my Web-projects.

View 1 Replies View Related

Ubuntu :: Configuring Apache And PHP To Use Same Doc Root

Feb 2, 2010

I'm new to Ubuntu and installed Apache, Tomcat and PHP using separate packages. All work well but it seems that the default doc root for Apache and PHP are in different places as:The following command to start Apache: sudo /usr/local/apache2/bin/apachectl start brings me to the "Test Page for Apache Install" and shows the Apache logo--successful--when I hit URl....Also, could someone please tell me how to stop PHP from starting Apache on boot?

View 5 Replies View Related

Fedora :: Configuring Apache For SSl And Tomcat 5.

Jan 21, 2009

I have a Apache web server and a separate tomcat 5 server. I can run the jsp-exaples just fine using HTTP. However using HTTPS fails. For some reason it appears HTTPS is not forwarding to the connector, I get 404 not found, returned.If I simply try https://apache_server_ip I successfully connect to the default Apache page.According to this page it should just work. Apache should do the ssl encryption/decryption and tomcat operate as normal.

View 1 Replies View Related

Ubuntu Servers :: Configuring The Zimbra And Apache?

May 26, 2011

I'm trying to install Zimbra and Apache. I'm having difficulty setting up DNS (if necessesary) and also configuring my /etc/hosts show me what the /etc/hosts should look like.

View 3 Replies View Related

General :: Error When Configuring Apache 2.2 And Php 5.3.2 On RHEL5

Apr 22, 2010

i am in the process of installing apache 2.2 with php 5.3.2, my problem is that after installing and configuring them , this important module libphp5.so is no where to be seen under /usr/local//apache2/modules/, so when i attempt to start or stop apachectl , i get the following errors ..

httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory

this is how am loading the module in httpd.conf

#LoadModule php5_module modules/libphp5.so

why isn't this file there . is there a way i can get this to work

View 2 Replies View Related

Software :: Configuring LAMP With Apache Tomcat

Apr 24, 2010

I am about to configure LAMP (Linux, Apache, MySQL and PHP) and following this link.However, I want to use Apache Tomcat instead of Apache, can I do so ?I can very well try and figure this out, but was just curious if someone has tried it. Or may be I can get some more ideas and useful links.I am just trying for knowledge.Meanwhile, if someone else is interested, these are the links used to download appropriate source packages.

- JRE & JDK : Java Platform Standard Edition (Java SE) 6 Update 10
- Tomcat
- Apache Ant

Here, "Apache" Ant is a software tool for automating software build processes. It is similar to Make but is implemented using the Java language, requires the Java platform, and is best suited to building Java projects.
- PHP 5.2.13
- MYSQL 5.0.90

View 2 Replies View Related

CentOS 5 Server :: Apache 'server-status' 404 Not Found + Munin Apache Stats?

Oct 14, 2010

I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.

first, system info:
monitored server:
CentOS 5.3 2.6.18-128.1.1.el5

[code]....

View 7 Replies View Related







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