Browse Source

* fixed install to use user@localhost when creating database

* fix/add to README ..
Erik Winn 6 years ago
parent
commit
478ae3bebd
2 changed files with 20 additions and 4 deletions
  1. 16
    3
      README
  2. 4
    1
      www/install.php

+ 16
- 3
README View File

@@ -59,7 +59,13 @@ templates are included and may overwrite any customizations.
59 59
 If you prefer you can down load the bundled version with QCodo
60 60
 included from the downloads section.
61 61
 
62
-3. In your favorite (not IE) browser, visit the installation, ex:
62
+On Debian/Ubuntu you can then make a quick symlink to make 
63
+the installation available to the browser:
64
+
65
+cd /var/www
66
+sudo ln -s my_qcodo_installation_dir/www quinta
67
+
68
+3. In your favorite browser, visit the installation, ex:
63 69
 http://localhost/quinta/install.php
64 70
 
65 71
 NOTE: the file includes/configuration.inc.php must be writable
@@ -79,8 +85,15 @@ will create one and the quinta user/password from the install
79 85
 page.
80 86
 
81 87
 4. That's all. Done, if you chose the example install (with
82
-	example data, recommend) Quinta should be at
83
-	http://localhost/quintacms
88
+example data, recommend) Quinta should be at
89
+	http://localhost/quinta
90
+ The admin interface at
91
+	http://localhost/quinta/admin
92
+	
93
+PLEASE NOTE: the admin interface is currently NOT  yet integrated 
94
+with the CMS and NOT PROTECTED.  AGAIN, USE AT YOUR OWN
95
+RISK - IT IS NOT SECURE. What is provided is the CRUD scaffolding
96
+for modification only. It must be secured for production use!!
84 97
 
85 98
 For the version bundled with QCodo you can simply unpack
86 99
 the whole thing and make sure that the www/ folder is available

+ 4
- 1
www/install.php View File

@@ -112,6 +112,7 @@ class InstallationForm extends QForm {
112 112
 		$aryErrors = array();
113 113
 		$intRetval = 0;
114 114
 		$blnFork = exec($strCommand, $aryErrors, $intRetval);
115
+		//! TODO: catch errors - even if mysql fails exec is not catching the errors .. dunno why.
115 116
 		if (false === $blnFork || 0 != $intRetval) {
116 117
 			$this->strErrors .= 'Failed to install data - command: ' . $strCommand;
117 118
 			foreach ($aryErrors as $strError)
@@ -127,8 +128,10 @@ class InstallationForm extends QForm {
127 128
 			$strCommand .= ' -p' . $this->txtDatabaseAdminPassword->Text;
128 129
 		$strCommand .= " -e ' CREATE DATABASE " . $this->txtDatabaseName->Text . ';'
129 130
 			. ' GRANT ALL PRIVILEGES ON ' . $this->txtDatabaseName->Text . '.* TO '
130
-			. $this->txtDatabaseUser->Text . ' IDENTIFIED BY "'
131
+			//!TODO - make smarter, this will work only on a local database .. 
132
+			. $this->txtDatabaseUser->Text . '@localhost IDENTIFIED BY "'
131 133
 			. $this->txtDatabasePassword->Text . '" ;\' ';
134
+			die($strCommand);
132 135
 		$aryErrors = array();
133 136
 		$intRetval = 0;
134 137
 		$blnFork = exec($strCommand, $aryErrors, $intRetval);