X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=install.php;h=319c261e418514f890e87152c709bc652945accc;hb=c911c66fe1ddb9fcea4a1817496f2efaffe26a98;hp=6f0af32c2fb4907afef965b507fb56a2ad839808;hpb=0b884ed9151127778cdd8d68f52294cee5f053a6;p=quix0rs-gnu-social.git
diff --git a/install.php b/install.php
index 6f0af32c2f..319c261e41 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,8 @@
+
.
+ *
+ * @category Installation
+ * @package Installation
+ *
+ * @author Adrian Lang Config file "config.php" already exists.
Require PHP version 5.2.3 or greater.
Require PHP version 5.2.3 or greater.'); + $pass = false; } $reqs = array('gd', 'curl', - 'xmlwriter', 'mbstring'); + 'xmlwriter', 'mbstring','tidy'); foreach ($reqs as $req) { if (!checkExtension($req)) { - ?>Cannot load required extension:
%s
', $req);
+ $pass = false;
+ }
+ }
+ // Make sure we have at least one database module available
+ global $dbModules;
+ $missingExtensions = array();
+ foreach ($dbModules as $type => $info) {
+ if (!checkExtension($info['check_module'])) {
+ $missingExtensions[] = $info['check_module'];
+ }
+ }
+
+ if (count($missingExtensions) == count($dbModules)) {
+ $req = implode(', ', $missingExtensions);
+ printf('Cannot find mysql or pgsql extension. You need one or the other.'); + $pass = false; + } + + if (!is_writable(INSTALLDIR)) { + printf('
Cannot write config file to: %s
On your server, try this command: chmod a+w %s
', INSTALLDIR);
+ $pass = false;
+ }
+
+ // Check the subdirs used for file uploads
+ $fileSubdirs = array('avatar', 'background', 'file');
+ foreach ($fileSubdirs as $fileSubdir) {
+ $fileFullPath = INSTALLDIR."/$fileSubdir/";
+ if (!is_writable($fileFullPath)) {
+ printf('
Cannot write to %s directory: %s
On your server, try this command: chmod a+w %s
Cannot find mysql or pgsql extension. You need one or the other:
Cannot write config file to:
On your server, try this command: chmod a+w
-
Cannot write directory:
On your server, try this command: chmod a+w
Laconica comes bundled with a number of libraries required for the application to work. However, it is best that you use PEAR or you distribution to manage +
StatusNet comes bundled with a number of libraries required for the application to work. However, it is best that you use PEAR or you distribution to manage libraries instead, as they tend to provide security updates faster, and may offer improved performance.
On Debian based distributions, such as Ubuntu, use a package manager (such as "aptitude", "apt-get", and "synaptic") to install the package listed.
On RPM based distributions, such as Red Hat, Fedora, CentOS, Scientific Linux, Yellow Dog Linux and Oracle Enterprise Linux, use a package manager (such as "yum", "apt-rpm", and "up2date") to install the package listed.
@@ -298,22 +381,21 @@ function showLibs()Enter your database connection information below to initialize the database.
-Laconica bundles a number of libraries for ease of installation. You can see what bundled libraries you are using, versus what libraries are installed on your server. +
StatusNet bundles a number of libraries for ease of installation. You can see what bundled libraries you are using, versus what libraries are installed on your server.
Database hostname
Database type