< p> < img class=”platform” src=”/wp-content/uploads/2015/07/fedora.png” alt=”fedora”/> < img class=”platform” src=”/wp-content/uploads/2015/07/red-hat.png” alt=”Red Hat”/> < img class=”platform” src=”/wp-content/uploads/2015/07/centos.png” alt=”Centos”/> < img class=”platform” src=”/wp-content/uploads/2015/07/scientific-linux.png” alt=”Scientific Linux”/> < img class=”platform” src=”/wp-content/uploads/2015/07/debian.png” alt=”Debian”/> < img class=”platform” src=”/wp-content/uploads/2015/07/ubuntu.png” alt=”Ubuntu”/> < /p>
< h4> You can install < strong> OpenSCAP Base< /strong> on< /h4> < p> < !– /end h5 –> < /div> < p class=”brSpace”> < a href=”/tools/openscap-base/”> < button class=”btn btn-success btn-success-blue2-inverse outline large” type=”button”> Learn More< /button> < /a> < a href=””> < button class=”btn btn-success btn-success-blue2-inverse outline large” type=”button”> Get the Source< /button> < /a> < /p> < p> OpenSCAP Base provides a < strong> command line tool< /strong> which enables various < a href=”#” data-toggle=”modal” data-target=”#basicAcronym”> SCAP< /a> capabilities such as displaying the information about a specific security content, vulnerability and configuration scanning, or converting between different SCAP formats.< /p> < img src=”/wp-content/uploads/2015/07/openscap-base.png” class=”blue-square” alt=”OpenSCAP Base”/> < /div> < div class=”space”> < /div> < div class=”wider light-blue”> Or php-fpm: $ /etc/init.All projects under the OpenSCAP umbrella are open source and can be downloaded and used for free. In case of Apache $ /etc/init.d/httpd restart This is relative to the extension_dir directive you found above. I usually add these at the very bottom, where my changes are. $ vi /etc/php.iniĪdd the module you want to load. In the example above, we use /etc/php.ini as our base php.ini file. Loaded Configuration File => /etc/php.ini $ php -i | grep 'Configuration File'Ĭonfiguration File (php.ini) Path => /etc First, find out which php.ini your system is using (note: the CLI may load a different config than the php-fpm or the Apache module one, a phpinfo() in your application would tell you for certain). The extension is ready to be included – now we need to change the php.ini file to load that particular extension. $ cp libs/dbase.so /usr/lib/php/extensions/no-debug-non-zts-20121212/ Edit your PHP.INI ![]() $ php -i | grep extension_dirĮxtension_dir => /usr/lib/php/extensions/no-debug-non-zts-20121212Ĭopy the extension to that directory. To find out, check the extension_dir directive. ![]() If you already have an extensions-directory on your server, use that one – if not, you can create a new directory to place the extensions. Woohoo, we compiled our dbase-extension! Now all we need to do, is activate it. libs/dbase.so Move it to the extensions directory (It is safe to ignore warnings about tempnam and tmpnam).Įxtension is now created in. The make command, will render a lot of text (compilation-info), and most likely end with the following snippet. $ cd /usr/local/src/php_source/php-5.2.6/ext/dbase/ $ cd php-5.2.6/ext/dbase/Īnd use phpizein that directory. In this case, we go to the “dbase” subfolder, but it could be any of the extensions you want to configure. You just untarred the files, so we’ll browse to that specific subdirectory (note directory-names may vary, depending on the version you just downloaded). ![]() $ tar xvf php-5.2.6.tar Prepare the extension (phpize) Next, unzip the file you just downloaded (the “.gz”-file extensions means it has been gzipped). Go the the PHP-download page, and select the complete PHP5 source code. (alternatively: check which repositories you’re using and which PHP package you have installed, the package may also be named php55-devel, or similar). ![]() On CentOS / Red Hat, use yum for your PHP packages. On Ubuntu/debian, you can use apt-get, it’s a piece of cake. It means the extension wasn’t loaded – and in most cases isn’t present on the server at all. It’ll probably start with the following error, shown on screen: Fatal error: Call to undefined function dbase_create() in. In this case, I’ll assume you’re trying to compile the dBase-extension. This guide is building a module for PHP 5.2, but the steps are identical for PHP 5.3, 5.4, 5.5, or 5.6. With a normal install, not every library is compiled and installed – so it might leave you with several functions that aren’t working. It’s not as difficult as it might sound, so here’s the quick-n-dirty way of installing and compiling your very own PHP extensions/libraries, from the PHP source code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |