| jerry gitomer 2005-03-30, 9:40 am |
| MLH wrote:
> A programmer developed an AMP (Apache/MySQL/PHP) application
> for me. When he was done, he sent me the PHP files and the MySQL
> dump file. Now, when I connect to the application on my LAN using
> http://192.168.1.106/~mlh/credifree/index.php the AMP app still
> thinks the data resides somewhere else. It runs fine - as long as I
> leave my LAN's external internet connection up. But if I unplug my
> LAN from the world, my app locks up.
>
> Before I even created and installed the mysql database on the linux
> server, the application was accessing the data from its remote
> location (the same one used during programmer's development).
> Installing the data here did not, of course, change that pointer.
> I am quite new with AMP and linux. I'm uncertain just how these
> items tie together.
>
> How do I tell the PHP files that the data now resides on the same
> linux server? And, is that all I have to do - just make configuration
> changes in PHP?
I just double checked a dump file and it will restore to
whatever directory MySQL is using. As a result I suspect that
your problem is an apache problem and not a MySQL problem.
When you access your application from the browser are you using:
http://localhost
If so, and you have an out of the box standard install, Apache
should be looking for your programs in /var/www. You can verify
this by running phpinfo.php (http://phpinfo.php) and seeing
what the value is for Document_Root in the apache Environment
section of the output.
Also check to see if apache is aware of MySQL by looking further
down in the phpinfo.php output for a section called "mysql".
(In my output it falls between "ctype" and "overload".)
HTH
Jerry
Check the output of phpinfo.php and y
|