Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 158473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:41:16+00:00 2026-05-11T10:41:16+00:00

php generates GIFs on the web server using a databases on a second server.

  • 0

php generates GIFs on the web server using a databases on a second server. The page shows 20 GIFs, so there is some load for a short time (multiple connections)


Some GIFs are loaded but some are not, in /var/www/logs/error_log

 [Mon Feb 23 10:05:56 2009] [error] PHP Warning:  mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 0 in /htdocs/.../myImage.php on line 4 [Mon Feb 23 10:05:56 2009] [error] PHP Fatal error: Lost connection to MySQL server at 'reading initial communication packet', system error: 0 in /htdocs/.../myImage.php on line 4

in /var/www/logs/error_log on the MySQL server I found:

[alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Rebooting the MySQL server "resolves" the problem … for a few days.

The 2 servers are virtual machines running OpenBSD, chroot’ed Apache and MySQL + phpMyAdmin. unfortunately in diferent versions (OpenBSD 4.2(web) and 3.9(mysql))

my knowledge in /var/www/conf/httpd.conf and my.cnf(didn’t found it) is very limited.
Any ideas ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:41:16+00:00Added an answer on May 11, 2026 at 10:41 am

    Have you tried putting resolv.conf inside chroot? Such as:

    mkdir -p /var/www/etc/ && cp -p /etc/resolv.conf /var/www/etc/ 

    You may also wish to do the same for /etc/localtime if you find your web server time is off from your time zone.

    Note:

    • do not use a sym link because it won’t work through chroot
    • do not use a hard link because modifying file in chroot would modify file in /etc!
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 115k
  • Answers 115k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Subversion will handle your > 1GB files with good natured… May 11, 2026 at 10:25 pm
  • Editorial Team
    Editorial Team added an answer There isn't a standard way todo this. In fact there… May 11, 2026 at 10:25 pm
  • Editorial Team
    Editorial Team added an answer Yes, and no. It depends on the architecture of your… May 11, 2026 at 10:25 pm

Related Questions

Let's imagine I got this: index.php generates form with unpredictable number of inputs with
I want to implement a two-pass cache system: The first pass generates a PHP
I have a PHP application and a need to generate a PDF with the
I have this PHP code echo '<a href=# onclick=updateByQuery(\'Layer3\', ' . json_encode($query) . ');>Link

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.