![]() |
|
- Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: (/thread-12807.html) |
- Guest - 2026-07-04 Very strange problem. Searched bit here but no luck. sounds like others might be having the same problem. So I have my own server setup a virtualhost for a dir put all the code there in the root and did a chown apache:apache for everything. FYI I would like to know if you have a better document describing better what dir's actually need for the server to have write access to. so anyway I hit the / page it redirects to /zp-core/setup.php?autorun=gallery and I get nothing in return. Server log prints this line ONLY. x.x.x.x - - [20/Aug/2012:09:22:30 +0000] "GET /zenphoto/zp-core/setup.php?autorun=gallery HTTP/1.1" 200 - If you are familiar with the apache log this means that 0 bytes were sent. Little frustrated forums I thought the only thing I could do is debug it a bit myself. in the setup.php file at line 233 there is this code. FYI I added the print lines.
From here the first here prints here2 never prints. Digging deeper now I find that it stops at this line in db_connect()
Where is @mysql_connect defined I am not familiar with this. also why is it trying to connect to the DB before asking me for the Mysql information ? FYI I put a print command also in the functions file after the mysq_connect() and it doesn't print. so for whatever reason that function is exiting not giving you the option to trap the error. Looks like I hit Post a little too soon. I did find that I had PHP compiled without Mysql support. I did even follow instructions from here http://stackoverflow.com/questions/7050373/check-whether-a-mysql-connect-failed-or-not to use a Try catch block but it would not capture it and go around it. Will post again if I find any other problems. I guess that would be a PHP bug for not giving any kind of error. I would think anyway. But who am I just some stupid Luser. - Guest - 2012-08-20 Anyway I fixed the problem with php and Mysql Hope this helps people. We can just close this out. |