Hi David,
I assume I'm doing something silly as I'm having problems getting the basic installation working. I've installed PT into a subdirectory of my webserver on my local machine (C:/webserver/tapestry). I'm renamed config.php and modified that variable to be $config_baseHREF = "/tapestry/";
However when I try to browse to the setup.php (http://localhost/tapestry/setup.php)file I get a 404 error. What am I doing wrong?
Thanks,
Mark
Hi David,
I knew it would be simple. All seems to work now.
Thanks,
Mark
Hi David,
Although my original problem is resolved I now seem to be having a problem running the setup.php script. When I browse to this file the following is displayed;
Checking database connection...
And nothing else happens. I assume I've got a problem access the database even though I've included the root username and password (which was created during the installation) to the config.php.
I've installed MySQL as per the windows installation instructions and the windows service is running. I'm able to connect to the mysql database which was created and view its tables - so not sure what's wrong there. Maybe I've missed something in the setup?
Is it possible to add some debugging to the setup.php script in order to trace what it's doing and where it maybe failing?
Do you have any ideas as to what maybe going wrong here?
Thanks,
Mark
Hello Mark,
That's strange, as the setup.php script should display either "Pass" or "Fail" after each test, so this implies that PHP is actually hanging at the mysql_connect() stage.
Could you perhaps try the version checker script shown in the following thread:
http://www.pricetapestry.com/node/82
(don't forget to replace username/password as required) and see if that works correctly...
Cheers,
David.
Hi David,
I've managed to fix the problem. The root cause was that I had failed to configure my PHP.ini file to include the MySQL extensions. This came to light when the above script failed to find the mysql_connect function. I've now been able to run the setup.php sucessfully.
Thanks for your help,
Mark
Hello Mark,
Are you sure that c:/webserver is the "web root" of the web server? Normally, you have a folder called something like "htdocs" or "www" which might be under that directory. This is the folder in which you would need to have your /tapestry/ folder (your value for $config_baseHREF is correct, as this refers to the http connection, not the file on disk).
The best thing to do to test this is to browse to create a test file in the top level folder and make sure you browse to that, for example:
test.php
<?php
print "This is a PHP test.";
?>
...and then browse to http://localhost/test.php
Cheers,
David.