MariaDB, PHP, and mysql_connect() issue on Installation scripts

I searched for this issue and turned out nothing..
I am using an installation script on my web server and i get this error:
function mysql_connect() not found:
Your system does not appear to have mysql available within php
I followed the wiki and have uncommented the following lines
extension=pdo_mysql.so
extension=mysqli.so
extension=mysql.so
I have also restarted the httpd daemon several times. I am using MariaDB because I know arch is dropping mysql. I followed the MariaDB wiki too and have it set-up properly.
Here is my "mysqli" section of phpinfo()
MysqlI Support    enabled
Client API library version     mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
Active Persistent Links     0
Inactive Persistent Links     0
Active Links     0
Directive    Local Value    Master Value
mysqli.allow_local_infile    On    On
mysqli.allow_persistent    On    On
mysqli.default_host    no value    no value
mysqli.default_port    3306    3306
mysqli.default_pw    no value    no value
mysqli.default_socket    /var/run/mysqld/mysqld.sock    /var/run/mysqld/mysqld.sock
mysqli.default_user    no value    no value
mysqli.max_links    Unlimited    Unlimited
mysqli.max_persistent    Unlimited    Unlimited
mysqli.reconnect    Off    Off
and here is "mysqlnd" in phpinfo()
mysqlnd
mysqlnd    enabled
Version     mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
Compression     supported
SSL     supported
Command buffer size     4096
Read buffer size     32768
Read timeout     31536000
Collecting statistics     Yes
Collecting memory statistics     No
Tracing     n/a
Loaded plugins     mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
API Extensions     mysqli
MySQL is running as I have set-up a database and user for this installation script.

I dropped to the command line and tried to run php and realized that mysql.so was named mssql.so..
so for anyone that has this issue, when you install php, unless they change it next release, that's a typo you have to fix when uncommented the mysql extension
Last edited by evil (2013-03-31 19:34:12)

Similar Messages

  • PHP and MySQL issue {subject edited by moderator}

    Using Dreamweaver and PHP.   On one page, I have a form with an Insert Field (LastName) that enter into the SQL database. SQL database has the ID auto-increment.   When I click on Send (with the data entered into the database), I want the new page to open and display the ID field.  but when I insert a new id and I click Send it still displays the old id, whereas I want to display a new ID

    This code for isert page
    <?php require_once('Connections/pendaftaran.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) {
      $insertSQL = sprintf("INSERT INTO maklumat_fail (fail_tajuk, fail_no, fail_seksyen, fail_hari, fail_bulan, fail_tahun, fail_rakbesi, fail_laci, fail_baris) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['fail_tajuk'], "text"),
                           GetSQLValueString($_POST['fail_no'], "int"),
                           GetSQLValueString($_POST['fail_seksyen'], "text"),
                           GetSQLValueString($_POST['fail_hari'], "int"),
                           GetSQLValueString($_POST['fail_bulan'], "text"),
                           GetSQLValueString($_POST['fail_tahun'], "int"),
                           GetSQLValueString($_POST['fail_rakbesi'], "text"),
                           GetSQLValueString($_POST['fail_laci'], "text"),
                           GetSQLValueString($_POST['fail_baris'], "text"));
      mysql_select_db($database_pendaftaran, $pendaftaran);
      $Result1 = mysql_query($insertSQL, $pendaftaran) or die(mysql_error());
      $insertGoTo = "detailPendaftaran.php?" . $row_Recordset1['fail_tajuk'] . "=";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form")) {
      $updateSQL = sprintf("UPDATE maklumat_fail SET fail_no=%s, fail_seksyen=%s, fail_hari=%s, fail_bulan=%s, fail_tahun=%s, fail_rakbesi=%s, fail_laci=%s, fail_baris=%s WHERE fail_tajuk=%s",
                           GetSQLValueString($_POST['fail_no'], "int"),
                           GetSQLValueString($_POST['fail_seksyen'], "text"),
                           GetSQLValueString($_POST['fail_hari'], "int"),
                           GetSQLValueString($_POST['fail_bulan'], "text"),
                           GetSQLValueString($_POST['fail_tahun'], "int"),
                           GetSQLValueString($_POST['fail_rakbesi'], "text"),
                           GetSQLValueString($_POST['fail_laci'], "text"),
                           GetSQLValueString($_POST['fail_baris'], "text"),
                           GetSQLValueString($_POST['fail_tajuk'], "text"));
      mysql_select_db($database_pendaftaran, $pendaftaran);
      $Result1 = mysql_query($updateSQL, $pendaftaran) or die(mysql_error());
      $updateGoTo = "detailPendaftaran.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    mysql_select_db($database_pendaftaran, $pendaftaran);
    $query_Recordset1 = "SELECT * FROM maklumat_fail";
    $Recordset1 = mysql_query($query_Recordset1, $pendaftaran) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>SISTEM PENDAFTARAN FAIL</title>
    <style type="text/css">
    .right {
      text-align: right;
    body {
      background-color: #6699CC;
    </style>
    </head>
    <body><form action="<?php echo $editFormAction; ?>" name="form" method="POST">
      <center>
        <p><img src="mps.png" width="1119" height="244" /></p></center>
      <table width="332" border="0" align="center">
          <tr>
            <td><h1 class="K">PENDAFTARAN FAIL</h1></td>
          </tr>
      </table>
        <p> </p>
        <table width="200" border="2" align="center" class="l">
          <tr>
            <td><center isoptional="l">Maklumat Fail</center></td>
          </tr>
      </table>
        <p> </p>
        <center><table width="587" border="6">
          <tr>
            <td width="567" height="233"><table width="560" height="206" border="0">
                <tr>
                  <td width="147" class="right"><strong>No. Fail</strong></td>
                  <td width="10">:</td>
                  <td width="432">MPSepang
                    <input name="fail_no" type="text" id="fail_no" size="40" /></td>
                </tr>
                <tr>
                  <td class="right"><strong>Tajuk Fail</strong></td>
                  <td>:</td>
                  <td><textarea name="fail_tajuk" cols="40" rows="5" id="fail_tajuk"></textarea></td>
                </tr>
                <tr>
                  <td class="right"><strong>Seksyen</strong></td>
                  <td>:</td>
                  <td><select name="fail_seksyen" size="Seksyen" id="fail_seksyen">
                      <option>Seksyen</option>
                      <option>Pentadbiran</option>
                      <option>Web, Latihan &amp; Komuniti</option>
                      <option>Rangkaian &amp; Infrastruktur</option>
                      <option>Sistem</option>
                  </select></td>
                </tr>
                <tr>
                  <td class="right"><strong>Tarikh Fail Dibuka</strong></td>
                  <td>:</td>
                  <td><select name="fail_hari" size="Hari" id="fail_hari">
                      <option>Hari</option>
                      <option>1</option>
                      <option>2</option>
                      <option>3</option>
                      <option>4</option>
                      <option>5</option>
                      <option>6</option>
                      <option>7</option>
                      <option>8</option>
                      <option>9</option>
                      <option>10</option>
                      <option>11</option>
                      <option>12</option>
                      <option>13</option>
                      <option>14</option>
                      <option>15</option>
                      <option>16</option>
                      <option>17</option>
                      <option>18</option>
                      <option>19</option>
                      <option>20</option>
                      <option>21</option>
                      <option>22</option>
                      <option>23</option>
                      <option>24</option>
                      <option>25</option>
                      <option>26</option>
                      <option>27</option>
                      <option>28</option>
                      <option>29</option>
                      <option>30</option>
                      <option>31</option>
                    </select>
                      <label for="bulan2"></label>
                      <select name="fail_bulan" size="Bulan" id="bulan2">
                        <option>Bulan</option>
                        <option>Januari</option>
                        <option>Februari</option>
                        <option>Mac</option>
                        <option>April</option>
                        <option>Mei</option>
                        <option>Jun</option>
                        <option>Julai</option>
                        <option>Ogos</option>
                        <option>September</option>
                        <option>Oktober</option>
                        <option>November</option>
                        <option>Disember</option>
                      </select>
                      <label for="fail_tahun"></label>
                      <select name="fail_tahun" size="Tahun" id="fail_tahun">
                        <option>Tahun</option>
                        <option>2014</option>
                        <option>2015</option>
                        <option>2016</option>
                        <option>2017</option>
                        <option>2018</option>
                      </select>
                      <label for="tarikhBuka"></label></td>
                </tr>
                <tr>
                  <td bgcolor="#FFFFFF" class="right"> <label><strong>Lokasi</strong></label></td>
                  <td>:</td>
                  <td>Rak Besi
                    <label>
                      <select name="fail_rakbesi" size="Seksyen" id="fail_rakbesi">
                        <option>Rak Besi</option>
                        <option>A</option>
                        <option>B</option>
                      </select>
                      Laci
                      <select name="fail_laci" size="Seksyen" id="fail_laci">
                        <option>Laci</option>
                        <option>A1</option>
                        <option>A2</option>
                        <option>A3</option>
                        <option>A4</option>
                        <option>B1</option>
                        <option>B2</option>
                        <option>B3</option>
                        <option>B4</option>
                      </select>
                      Baris
                      <select name="fail_baris" size="Seksyen" id="fail_baris">
                        <option>Baris</option>
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                        <option>4</option>
                        <option>5</option>
                        <option>6</option>
                        <option>7</option>
                        <option>8</option>
                        <option>9</option>
                        <option>10</option>
                        <option>11</option>
                        <option>12</option>
                        <option>13</option>
                        <option>14</option>
                        <option>15</option>
                        <option>16</option>
                        <option>17</option>
                        <option>18</option>
                        <option>19</option>
                        <option>20</option>
                      </select>
                    </label></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><label>
              <div align="center">
                <input type="submit" name="submit" id="submit" value="Submit" />
              </div>
            </label></td>
          </tr>
      </table>
      </center>
        <p> </p>
    <center>
          <p>
            <label></label>
          <p> </p>
      </center>
      <center>
        <p><img src="nwUWE4K.jpg" width="1119" height="200" /></p>
      </center>
      <input type="hidden" name="MM_insert" value="form" />
      <input type="hidden" name="MM_update" value="form" />
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    This for display page
    <?php require_once('Connections/pendaftaran.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_Recordset1 = "-1";
    if (isset($_GET['fail_baris'])) {
      $colname_Recordset1 = $_GET['fail_baris'];
    mysql_select_db($database_pendaftaran, $pendaftaran);
    $query_Recordset1 = sprintf("SELECT * FROM maklumat_fail WHERE fail_baris = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $pendaftaran) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>SISTEM PENDAFTARAN FAIL</title>
    <style type="text/css">
    .right {
      text-align: right;
    body {
      background-color: #6699CC;
    </style>
    </head>
    <body><form action="" method="get">
      <center>
        <p><img src="mps.png" width="1119" height="244" /></p>
      </center>
        <p><center>
        </p>
        <p> </p>
        <p> </p>
        <center>
          <table width="406" border="0">
            <tr>
              <td width="247"><h1>Fail telah berjaya didaftar!!</h1></td>
            </tr>
          </table>
          <p> </p>
          <table width="389" border="6">
            <tr>
              <td><table width="370" height="174" border="0">
                <tr>
                  <td width="129" class="right"><strong>No.Fail</strong></td>
                  <td width="8">:</td>
                  <td width="211"><?php echo $row_Recordset1['fail_no']; ?></td>
                </tr>
                <tr>
                  <td class="right"><strong>Tajuk Fail</strong></td>
                  <td>:</td>
                  <td><?php echo $row_Recordset1['fail_tajuk']; ?></td>
                </tr>
                <tr>
                  <td class="right"><strong>Seksyen</strong></td>
                  <td>:</td>
                  <td><?php echo $row_Recordset1['fail_seksyen']; ?></td>
                </tr>
                <tr>
                  <td class="right"><strong>Tarikh Fail Dibuka</strong></td>
                  <td>:</td>
                  <td><?php echo $row_Recordset1['fail_hari']; ?><?php echo $row_Recordset1['fail_bulan']; ?><?php echo $row_Recordset1['fail_tahun']; ?></td>
                </tr>
                <tr>
                  <td class="right"><strong>Lokasi</strong></td>
                  <td>:</td>
                  <td><?php echo $row_Recordset1['fail_rakbesi']; ?><?php echo $row_Recordset1['fail_laci']; ?><?php echo $row_Recordset1['fail_baris']; ?></td>
                </tr>
              </table></td>
            </tr>
          </table>
          <p><a href="test1.php">MENU</a></p>
          <p> </p>
          <p> </p>
      </center>
        <p> </p>
        <p><img src="nwUWE4K.jpg" width="1119" height="200" /></p>
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>

  • Php and float issue

    I have created a <div "content"> with inside two divs:
    <div "left"> and <div "right">
    I want both to be adjacent, so the left div I float. In the left I want some images and text, in the right I want a php form. This form works perfect in a regular division, and also in the <div "right"> as long as I don't float the left division.
    This is the php function: <?php include_once("gbcf-v3/form.php"); ?>
    The widht of the div is sufficient for the form; the webpage appears properly with the form showing, if I don't float the left div (but then the form shows up underneath to the right of the left div. If I float the left div, to get the form show up adjacent to the left div, the webpage stays blanc. And yes, I transfer the styles directory to my server every time I change a style.
    What do I do wrong?
    Thanks for any help,
    Erik
    Here is the link to the page, showing the php form in the wrong place (underneath instead of to the right of my text and image):
    http://mysafety.be/inbraakbeveiliging%20promoties%20v2.html

    The css errors have been corrected, the html errors are in process. I already have the form where I want: http://mysafety.be/inbraakbeveiliging%20promoties%20v2.html
    There are still errors, but I see you've managed to get the form where you want it.
    1. I am puzzled by your xhtml comment, more out of ignorance then anything else: when starting up this site I choose xhtml v1.0 transitional just because I was thought to do so in one of the Dreamweaver tutorials. Should I rather use HTML 4.0 transitional straight away in the future?
    Since you are just starting out, I recommend learning 4.01 Strict. This will make your HTML documents easier to upgrade to 5.0x when it is eventually approved. Others may recommend using 4.01 Transitional as you develope your skills in HTML. I personally think Transitional is good for those who learned the old, deprecated and/or obsolete versions and need to transition to the stricter versions. (XHTML uses 4.01 Strict as its starting point).
    What is the pro and con of html 4.0 transitional vs xhtml 1.0 transitional?
    IMO, XHTML is more a fad than anything. It DOES have its place, but it has been, at best, poorly implemented. And if you do not know what it is for, or how to use its features, it doesn't make much sense to use that DOCTYPE. Here are some specifics written by others http://en.wikipedia.org/wiki/Xhtml#Criticism
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • PHP and Actionscript 3.0 issue

    Hi,
    I have a MySql database with some content that I want to
    access from my Flash movie through a PHP script. I actually get
    things to work (sort of) since I can pass content from the
    database, through the PHP script into my Flash movie - but the
    problem is the formatting of the content being sent to Flash. The
    string that I want to send is written in PHP (UTF-8 encoded) as
    follows:
    ---PHP---
    $file_list = array();
    array_push($file_list, "å");
    array_push($file_list, "ä");
    $temp= implode(",",$file_list);
    print_r("arrayen=$temp");
    What I do (in this simplyfied example) is to create an array
    and populate it with the Swedish letters 'å' and 'ä'.
    These are just placeholders of course and are in my actual code
    retrieved from my database.
    So, "arrayen=$temp" is sent to my Flashfile, where the code
    looks as follows:
    ---Flash AS 3.0---
    var variables:URLVariables = new URLVariables();
    var vrequest:URLRequest = new URLRequest();
    vrequest.url = "retrieveData.php";
    vrequest.method = URLRequestMethod.POST;
    vrequest.data = variables;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.TEXT;
    loader.addEventListener(Event.COMPLETE, completeHandler);
    try {
    loader.load(vrequest);
    } catch (error:Error) {
    trace("Unable to load URL");
    function completeHandler(event:Event):void {
    var loader2:URLLoader = URLLoader(event.target);
    var variables:URLVariables = new URLVariables(loader2.data);
    trace(variables);
    The outcome of the last 'trace' should be something like
    "arrayen=å,ä"
    but unfortunately it comes out as:
    %0A%0A%0Aarrayen=%C3%A5%2C%C3%A4%2C%C3%A5%2C%C3%A4%2C%C3%A5%2C%C3%A4%2C%C3%A5%2C%C3%A4%20% 0A%0A%0A%0A
    OK, I believe my problem is obvious - how on earth do I get
    it right?
    Thanks a milion in advance!
    .cristian

    Hi, and thanks for your reply.
    Actually, I think I got it to work in a pretty strange way...
    There was something dodgy happening in the PHP script,
    something indicated by others in different forums (see some of the
    comments further down on:
    http://se.php.net/urlencode).
    I read somewhere that PHP had an issue with urlencoding and one
    solution was to urlencode twice. Having done that, things started
    to happen on the Flash side, but there was still some strange
    formatting going on. Eventually I solved it by changing my
    flash_encode() to:
    PHP Code:
    // --------------------------------------------------- ENCODE
    FOR FLASH
    function flash_encode ($input) {
    return rawurlencode(rawurlencode(($input)));
    That is, using 'rawurlencode()' and no utf8_decode().
    In my Flash file I then simply had to unescape twice:
    AS Code:
    function completeHandler(event:Event):void {
    var loader2:URLLoader = URLLoader(event.target);
    loader2.dataFormat = URLLoaderDataFormat.VARIABLES;
    var variables2:URLVariables = new
    URLVariables(loader2.data);
    var temp:String = String(variables2);
    trace(temp); // just to check the "raw" data
    var temp2 = unescape(temp);
    var temp3 = unescape(temp2);
    trace(temp3);
    The output is now as expected!
    Please note that I am not very skilled in programming so if
    anyone has a better solution please submit it. I'll use this for
    now though
    .c

  • Question on CAPolicy.inf file and post-installation script

    I'm preparing a small PKI implementation with a single Enterprise Root CA on Windows 2008 R2 Enterprise.
    The primary role of this CA is to provide certificates for about 20 laptops that will use the certificates for authentication to a wireless network.
    I have prepared a CAPolicy.inf file and a post installation script (below).
    Renewal period for the root cert should be 10 years, CRL publication every 2 days with Delta publication every 12 hours (details in scripts below).
    I want to make sure the AIA and CRL url commands are correct.
    Does this look correct?
    AIA
    1:%WINDIR%\System32\CertSrv\CertEnroll\%%1_%%3%%4.crt
    This should publish the CA certificate to the local file system "certenroll".
    2:ldap:///CN=%%7,CN=AIA,CN=Public Key Services,CN=Services,%%6%%11
    This places the LDAP url in the AIA extension of issued certs.
    I am not planning to use HTTP, hence its absence.
    CRL
    1:%WINDIR%\System32\CertSrv\CertEnroll\%%3%%8%%9.crl
    This publishes the CRL to the local file system ("certenroll" subfolder).
    10:ldap:///CN=%%7%%8,CN=%%2,CN=CDP,CN=Public Key Services,CN=Services,%%6%%10
    Indicates CDP in AD DS and includes CDP url in issued certificates.
    Complete scripts
    1. CAPolicy.inf - %windir%
    [Version]
    Signature= "$Windows NT$"
    [certsrv_server]
    renewalkeylength=2048
    RenewalValidityPeriodUnits=10
    RenewalValidityPeriod=years
    CRLPeriod = days
    CRLPeriodUnits = 2
    CRLDeltaPeriod = hours
    CRLDeltaPeriodUnits = 12
    LoadDefaultTemplates=0
    2. Install Role
    Follow steps in GUI here
    3. Run post-install script
    certutil -setreg CA\DSConfigDN CN=Configuration,DC=mydomain,DC=local
    certutil -setreg CA\CRLPeriodUnits 2
    certutil -setreg CA\CRLPeriod "days"
    certutil -setreg CA\CRLDeltaPeriodUnits 12
    certutil -setreg CA\CRLDeltaPeriod "hours"
    certutil -setreg CA\ValidityPeriodUnits 10
    certutil -setreg CA\ValidityPeriod "Years"
    certutil –setreg CA\CACertPublicationURLs "1:%WINDIR%\System32\CertSrv\CertEnroll\%%1_%%3%%4.crt\n2:ldap:///CN=%%7,CN=AIA,CN=Public Key Services,CN=Services,%%6%%11"
    certutil –setreg CA\CRLPublicationURLs "1:%WINDIR%\System32\CertSrv\CertEnroll\%%3%%8%%9.crl\n10:ldap:///CN=%%7%%8,CN=%%2,CN=CDP,CN=Public Key Services,CN=Services,%%6%%10"
    certutil -setreg CA\csp\DiscreteSignatureAlgorithm 1
    certutil -setreg CA\AuditFilter 127
    net stop certsvc & net start certsvc
    certutil -crl
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

    A couple of things (just a quick glance)
    1) CAPolicy.inf
    Everything looks fine in this file. You will have a 2 day base crl and 12 hour delta CRLs. No default templates are loaded, so you must manually designate all published certificates
    2) Post install Script
    a. Best practices are to use HTTP only, not to use LDAP, so your whole design does not follow best practices. Furthermore, if you issue a certificate to a single, non-domain joined machine, they will be unable to evaluate your certificates. If you decide
    to do VPN (or use an internal SSL cert on an externally accessible Web server), revocation checking will fail because you do not publish AD to the external world
    b. Will you be issuing 10 year certificates from the CA. These lines:
    certutil -setreg CA\ValidityPeriodUnits 10
    certutil -setreg CA\ValidityPeriod "Years"
    define the maximum validity period of certs issued *by* the CA. For example, if a certificate template states 4 years, then a four year will be issued (less than 10 years). If a template state 12 years, then the max age will be 10 years. Think of it as a
    governor.
    c.CACertPublicationURLs . This should include an HTTP URL, and if you want to still include LDAP, HTTP should be prior to the LDAP URL.
    d. CRLPublicationURLs. This should include an HTTP URL. If you want to still include LDAP, HTTP should be prior to the LDAP URL. Your checkbox value for the LDAP URL is incorrect as well. For a CA that issues both base and delta CRLs, you must have a value
    of 79 (all check boxes enabled). Your current configuration would fail for revocation checking because you do not publish the base or delta CRL to AD. There is another check box missing (I believe the one to include the URL in the base CRL's freshest CRL extension
    (how to find the delta CRL).
    e. Do not include the DiscreteSignatureAlgorithm line in the script. If you have any Windows XP clients, they will not be able to use the certs (BTW, this should have been AlternateSignatureAlgorithm in my book - where you sourced your scripts). This would
    only be used on a CA where you used something like Elliptical Curve as the assymetric algorithm and SHA384 as the signature algorithm).
    f. The restart line should be net stop certsvc && net start certsvc. The double && ensures that the service comes to a complete stop before the start command is executed.
    HTH,
    Brian

  • Having trouble installing ProIX on new Windows 8 machine after XP crash.  Get almost ll of the way through and get an error box ... contact system support.  Only way out is to abort and then it un-installs.  Wondering if a licensing max issue since we did

    having trouble installing ProIX on new Windows 8 machine after XP crash.  Get almost ll of the way through and get an error box ... contact system support.  Only way out is to abort and then it un-installs.  Wondering if a licensing max issue since we didn't get an opportunity to uninstall off of crashed machine?

    Hey robr72339266,
    With a single user license, you can install Acrobat on maximum two computers, say, your laptop at work and desktop at office.
    But, you cannot use Acrobat on both the machines simultaneously.
    You will first need to deactivate Acrobat from the old machine, then install and activate the software on the new OS with the same serial key.
    Please Contact | Adobe to seek help on the same.
    Regards,
    Anubha

  • Trying to update iTunes, the installer keeps freezing at 'Running iTunes Installer Scripts'.  i've tried several different versions of iTunes and can't install any of them.  I'm stuck with Version 4!!  Help!

    I'm trying to update iTunes on my mac (Power Mac G5 running tiger), but it always freezes at 'Running itunes installer script'.  I have tried a few different versions of iTunes, but I have the same problem with all of them.  I'm stuck on version 4 (which came with my os discs)!  Help?! 

    Ok, First this link should solve the windows scripting host error. I used "Download windows script host" in a google search and it was the first hyperlink.
    http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB -95A22B832CAA&displaylang=en
    I'm assuming you are trying to run the installer from apple. What I would suggest is you download the installer manually to your desktop then launch the installer. If try to run the installer over the intertubes you may run into a problem like you did.
    Then I would uninstall itunes 8 and any software associated with it like the apple update software, quicktime, apple mobile device support. However uninstalling itunes should remove any additional software it installs. Then clean out your temp folder:
    6. Clean out your temp folders,
    a. C:\windows\temp (if one exists)
    b. C:\Documents and Settings\{username}\Local Settings\Temp
    Sometimes installers will pick up old files or won’t delete their temporary files.
    Then with a newly download installer on your desktop try launching it. Let me know if that helps.
    Here is an apple doc that help.
    http://support.apple.com/kb/TS1331
    Message was edited by: CoJeff

  • Getting stylesheets to work in header.php and files associated with it

    Let's say I created a header.php file in my includes folder.  And I include it in my index.php file in the site root directory.
    Then in the header.php file, I have a link to the style sheet. 
    The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site.  (And I forget....)
    So anyways, I came up with this code today in an attempt to overcome this.  Here is my header file so far:
    "; } else           echo ""; ?>  
    So here is what it is doing:
    1. It is creating a variable called $directory which is equal to the current directory.
    2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
    3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
    4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
    This works perfectly fine....in Live view.  Both the header.php and index.php will format the header in live view.  Neither though will format it in Design view.  Which sucks cause I was pretty happy that I came up with this code on my own.
    The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View. 
    Does anyone know of a way to get this script to run in Design View?  Or maybe some suggestions on editing this code to get it to work in Design View?
    Thanks!

    >The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
    The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work.

  • Bridge and PS not communicating with scripts and automation.

    CS4 PS and Bridge is not communicating correctly.
    When opening an image from Bridge it opens whiteout any issues but when choosing Tools and PS and any form of automation or script it will not open and start the requested action.
    Then when choosing same or another action from the tools/PS menu I get the message that PS is currently busy processing another task and it asks me if I wish to cue the action.
    There is no difference if I chose cue or stop after this since nothing is happening how ever long I wait.
    If PS is not started it will start up the application but nothing more after that. I have reinstalled and repaired permissions both after and before.
    A colleague who also using PS CS4 is having the same hardware and is not having the same problem so I guess I am having a problem with some form of configuration.
    CS3 is working correctly on the same machine and is having no issues at all.
    Config is Macbook Pro 2.33Ghz 2gb ram OS 10.5.5 whit all the latest updates.
    TIA for you help or crazy ideas.
    Sven

    As I wrote above I have already repaired the permissions but I have also rebooted several times, I have done that before and after installs and removals off the application and I used the Adobe script CS4 cleaner script to completely remove the apps.
    The applications are all installed on their default locations and has not been moved at all and no names has been changed.
    Does anybody know any more thorough way of removing all settings and preferences for CS4 then that script.
    Maybe there are some remaining settings somewhere that I have not been able to remove.
    Are there any sort of total remover of selected adobe apps rather then having to remove all adobe stuff on the machine that is more that can do more then that script.
    Sven

  • Set a max Upload quantity dreamwaver php and mysql

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

  • AS3 to PHP to MySQL issue

    I have searched for a solution over many forums and none of the code seems to work. I cannot get AS3 to work with a php script.
    I am trying to create a registration form in AS3
    and then have that information go to mysql database when
    the submit button is pressed. Here is part of the AS3 code: var variables:URLVariables = new URLVariables;
    var varSend:URLRequest = new URLRequest("register.php");
    varSend.method = URLRequestMethod.POST;
    varSend.data = variables;
    var varLoader:URLLoader = new URLLoader;
    varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    variables.userName = user_txt.text;
    variables.userPass = pass_txt.text;
    variables.userEmail = email_txt.text;
    varLoader.load(varSend); Here is the php script "register.php": <?php $db_host = "localhost";
    $db_username = "root";
    $db_pass = "";
    $db_name = "userregister"; mysql_connect("$db_host","$db_username","$db_pass" ) or die ("could not connect to mysql");
    mysql_select_db("$db_name") or die ("no database"); $senderName = $_POST['userName'];
    $senderPass = $_POST['userPass'];
    $senderEmail = $_POST['userEmail']; $sqlCommand = "INSERT INTO user (username, password, email)
    VALUES('$senderName','$senderPass','$senderEmail') "; $query = mysql_query($sqlCommand) or die (mysql_error()); $my_msg = "Thanks $senderName, all data has been sent."; echo "return_msg=$my_msg"; ?>

    there's no problem with your flash if your textfields are passing the correct values.
    you have a table named user and it's failing to add passed variables?   if yes, use fixed strings (instead of passed variables) in your php and test your php code.

  • How to edit the installation scripts in the supporting objects

    I wanted to update one of the installation scripts in the supporting objects. I clicked into that script and use the "script editor" tab. After editing the script, I clicked "Apply Changes" button. It redirected me to the upper level of the page. When I reopen the script, the content of this script is messed up and has the content of another script, not what I have changed. What could happen with it? There is one case that the script was all wiped out!
    One general question, how can I easily update the install scripts and reload it without export and import the whole application? or Can I?
    Thanks
    Fengting

    Fengting,
    I am not sure what causes this, but I have had the same issue with shared components >> report queries. Sometimes if you have multiple report queries it becomes impossible to edit any of them. If I remember correctly I tried using a different browser and everything seemed to work ok. I was using Firefox when I was having the issue.
    Sorry this is not an answer, but I feel your pain!
    Cheers,
    Tyson Jouglet

  • I have an email validation script on my page and a populate form fields script that doesn't work unless it's the only script written. Here are the scripts. Thanks

              <script type="text/javascript"><!--
    function validateForm() {
    with (document.drbrake) {
    var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
    if (fullname.value == "") alertMsg += "\nfullname";
    if (emailcheck.value == "") alertMsg += "\nemailcheck";
    if (telephone.value == "") alertMsg += "\ntelephone";
    if (selectproduct.value == "") alertMsg += "\nselectproduct";
    if (problem.value == "") alertMsg += "\nproblem";
    if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") { alert(alertMsg);
    return false;
    } else {
    return true;
    // -->
    </script>
            <script language="JavaScript1.2">
    //Advanced Email Check credit-
    //By JavaScript Kit (http://www.javascriptkit.com)
    //Over 200+ free scripts here!
    var testresults
    function checkemail(){
    var str=document.validation.emailcheck.value
    var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$ /i
    if (filter.test(str))
    testresults=true
    else{
    alert("Please input a valid email address!")
    testresults=false
    return (testresults)
            </script>
                                <script>
    function checkbae(){
    if (document.layers||document.getElementById||document.all)
    return checkemail()
    else
    return true
    </script>

    I do see issues with the script, but do you realize that HTML5 has all this capability build in, so not a single bit of the code you posted is needed? Of course there may be a reason you are doing it the way you are, but I don't know what that reason would be.
    In your forms, you can simply add "required" to an input field to make it required. And by making an email field the email type, it will automatically be validated for correctness. See below:
    <input type='text' value='<?php echo last_name ?>' name='last_name' required />
    <input type='email' value='<?php echo email ?>' name='email' required />
    Assuming that your form is processed by PHP, you would then use further validation in PHP. But the HTML5 validation is just as good as javascript validation and easier to use.
    With the HTML5 validation, all fields remain populated and the form cannot be submitted if anything fails validation.  I added the value attribute to the input examples because normally, if the PHP validation fails, you want to re-populate the form with what is stored in the POST array.

  • Data Quality Services Installer script - Where is the 64 bit version

    Hi.
    I have Microsoft SQL Server 2012 - 11.0.2218.0 Enterprise Edition on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (WOW64) installed on my laptop. The Data Quality Services feature has been installed. When I try and run the DQS client it says I
    must run the DQS installer script. I therefore run the Data Quality Server Installer, which is the other option in the DQS menu, and it errors saying 'You are running 32-bit version of DQS installer on 64-bit OS'. I've looked for the 64-bit version but I can't
    find it. Any ideas where I can get it from?
    Thanks in advance for any help.

    iTunes 64bit version for Windows is somewhere in the future. Nice to see Apple is obviously doing something to remedy the issue.

  • Installer scripts won't run

    Hi, I've just tried running Software Update on my iMac to install Safari 5.0.1. It downloaded it but stalled when running the installer scripts. I powered off the machine and restarted it, and there don't appear to be any issues with the system and I'm now using Safari 5.0.0 without problems. I run Software Update once a week and haven't had any such problems previously. Last night, Virus Barrier X6 also couldn't run its installer scripts on a weekly scheduled update, and I had to force quit the installer. My MacBook has run both of these successfully, just not my iMac.
    Can anyone help?
    Thanks

    Thanks, I know that is an option but I was more concerned that my iMac doesn't seem to want to run any installer scripts

Maybe you are looking for

  • Connecting To A .CSV or Excel File Directly With LightSwitch

    Despite my zipcodes.csv file is already present in the debug folder of my project, still my code is not able to find the file. Regards, Vishal

  • EAP-TLS 802.1x certificate issue..

    Hi All, I m trying to setup eap-tls 802.1x using ACS SE 4.1.1.23.4 , WLC & CA. The problem i m facing is with installing the CA certificate on ACS appliance. Tried everything from cisco docs but not able to install certificate as its giving " Unsuppo

  • Cluster unexpected error

    Hello All, I have installed single node cluster 3.2 in solaris 10. I am getting below error when i am running scstat *# /usr/cluster/bin/scstat | more* *scstat:  unexpected error.* *Jan 19 04:21:06 node1 Cluster.CCR: Unable to open door descriptor /v

  • I get an error message 'Cannot create session cookie'

    Hello, This is the exact error message I receive: "Time: 2011-04-05 14:47:47 OUCU: zz767748 URL: /science.level1ayrf.s104/ TN: openmark @ ltsweb2 Status: 403 Title: Unable to create session cookie Message: In order to use this website you must enable

  • Error message on PDF Generator LiveCycle 7.2.2

    Hi. I have problem with my livecycle 7.2.2 PDF generator. Sometimes it returned 0 byte PDF as result. I found a lot of following error mesage on LiveCycle WebLogic domain log: ####<Jun 9, 2009 1:07:02 PM GMT+08:00> <Error> <com.adobe.native2pdf.inter