I have installed SuSE 10.3. Aditionally I have installed MySQL 5.0, Apache2, PHP5 and PHPMyAdmin. Everytinhg is working fine, but I don’t know how to publish PHP based web site.
I have created simple phpinfo.php page and I can open it without problems.
When I copy php web site to /srv/www/htdocs/%website%, it won’t work. ERROR HTTP 500 apperas.
Do I need to connect it somehow with MySQL database?
Any details on that error? Look in /var/log/apache2/error_log for more
info.
Good luck.
kojo1984 wrote:
| Hi.
|
| I have installed SuSE 10.3. Aditionally I have installed MySQL 5.0,
| Apache2, PHP5 and PHPMyAdmin. Everytinhg is working fine, but I don’t
| know how to publish PHP based web site.
|
| I have created simple phpinfo.php page and I can open it without
| problems.
|
| When I copy php web site to /srv/www/htdocs/%website%, it won’t work.
| ERROR HTTP 500 apperas.
|
| Do I need to connect it somehow with MySQL database?
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Believe HTTP 500 doesn’t usually refer to a database connection problem unless you’re dynamically creating a page and that would be very unlikely for a default page.
Did you really copy your website into /htdocs/%website% or did you copy it into the htdocs folder without a subdirectory (required).
Also, you need to configure your virtual website to support the PHP home page you’re using.
Recommend you find yourself an Apache Administrator’s tutorial.
The error message is telling you that the database and table used in your select query do not exist.
This probably means you haven’t named them exactly as used in your query.
In other words, while you may have a table called languages, does it exist in the database named sud?
I wonder if it’s just an issue with explicitly stating the schema.tablename on your query… I’ve seen this before in PostgreSQL. My suggestion would be to make a simple query page and locate it on the public_html folder on your home page. That way you can edit and call it again w/o having to mess with the main WWW folder. The way to access files on your local public_html folder is “http://localhost/~username/file.php”
If you can get a simple query working this way, then most likely your issue is with the way the PHP site is written…