I recently tried upgrading my test VPS to run PHP 6.0, and it worked.
However I wasn't able to get MySQL to compile with PHP.
Hence I just reinstalled MySQL and tried recompiling PHP (from source) again. However I still get errors when compiling PHP:
checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/tmp/mysql.sock configure: error: Cannot find libmysqlclient under /usr/local. Note that the MySQL client library is not bundled anymore!
No matter what ./configure command I run, I can't seem to get this working. For example, the PHP INSTALL documentation (comes with the source files) actually says running:
I have recently installed the latest version of apache which is version 2.2.4 and it seems many modules were left out so I decided to add one of my favorite modules myself
I have DirectAdmin install so here is what I did
I edited this file: configure.apache_2 and at the end of the file added --enable-expires
After adding normally we would recompile apache I was doing that and I got this error
Code: /usr/local/directadmin/customapache/configure.apache_2: line 24: --enable-expires: command not found
*** There was an error while trying to configure Apache 2. Check the configure.apache_2 file
Not sure what I'm doing wrong if someone could help me I would be greatful.
Enter `q' to stop search Please tell me where I can find your apache src [/usr/local/apache] /usr/local/apache Configure mod_perl with /usr/local/apache ? [y] y Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. PerlDispatchHandler.........disabled (enable with PERL_DISPATCH=1) Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. PerlChildInitHandler........enabled Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. PerlChildExitHandler........enabled PerlPostReadRequestHandler..disabled (enable with PERL_POST_READ_REQUEST=1) PerlTransHandler............disabled (enable with PERL_TRANS=1) PerlHeaderParserHandler.....disabled (enable with PERL_HEADER_PARSER=1) PerlAccessHandler...........disabled (enable with PERL_ACCESS=1) PerlAuthenHandler...........disabled (enable with PERL_AUTHEN=1) PerlAuthzHandler............disabled (enable with PERL_AUTHZ=1) PerlTypeHandler.............disabled (enable with PERL_TYPE=1) PerlFixupHandler............disabled (enable with PERL_FIXUP=1) Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. PerlHandler.................enabled PerlLogHandler..............disabled (enable with PERL_LOG=1) PerlInitHandler.............disabled (enable with PERL_INIT=1) PerlCleanupHandler..........disabled (enable with PERL_CLEANUP=1) PerlRestartHandler..........disabled (enable with PERL_RESTART=1) PerlStackedHandlers.........disabled (enable with PERL_STACKED_HANDLERS=1) PerlMethodHandlers..........disabled (enable with PERL_METHOD_HANDLERS=1) PerlDirectiveHandlers.......disabled (enable with PERL_DIRECTIVE_HANDLERS=1) PerlTableApi................disabled (enable with PERL_TABLE_API=1) PerlLogApi..................disabled (enable with PERL_LOG_API=1) PerlUriApi..................disabled (enable with PERL_URI_API=1) PerlUtilApi.................disabled (enable with PERL_UTIL_API=1) PerlFileApi.................disabled (enable with PERL_FILE_API=1) Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. PerlConnectionApi...........enabled Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. PerlServerApi...............enabled PerlSections................disabled (enable with PERL_SECTIONS=1) PerlSSI.....................disabled (enable with PERL_SSI=1) Can't open /usr/local/apache/modules/perl/Makefile: No such file or directory. cat: /usr/local/apache/Makefile.config: No such file or directory cat: /usr/local/apache/modules/perl/Makefile: No such file or directory mv: cannot move `/tmp/mpmf.27280' to `/usr/local/apache/modules/perl/Makefile': No such file or directory Will run tests as User: 'nobody' Group: 'root' Checking CGI.pm VERSION..........ok Checking for LWP::UserAgent......ok Checking for HTML::HeadParser....ok Writing Makefile for Apache Writing Makefile for Apache::Connection Writing Makefile for Apache::Constants Writing Makefile for Apache::File Writing Makefile for Apache::Leak Writing Makefile for Apache::Log Writing Makefile for Apache::ModuleConfig Writing Makefile for Apache::perlRunXS Writing Makefile for Apache:server Writing Makefile for Apache:symbol Writing Makefile for Apache::Table Writing Makefile for Apache::URI Writing Makefile for Apache::Util Writing Makefile for mod_perl
web host that offers a shared hotsing account that allows users to install or already have installled perl modules like mod_perl and template toolkit using cpanel.
I have an account on my cPanel server with a cgi script in it wich works just fine under normal circumstances. I setup mod_perl and got it working just fine with the script. I edited the .htaccess file to do a 301 redirect and added the line “RewriteEngine on” and then whenever I try to access the cgi script I get:
Quote:
Forbidden You don't have permission to access………..
If I disable mod_perl or remove the line “RewriteEngine on” from .htaccess it works fine.
In the cPanel error log I have:
Quote:
Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden
But in htaccess I already have the line "Options +FollowSymLinks" which is part of the 301 redirect code.
I was recently faced with a problem, i had to install some extensions which were not included by default with php (libcurl being one of them). I didn't have a clue what to do, but because my dedicated server is running debian, i had to force myself to learn.
Anyway, back to the point. I already have php5 running (but it needs to be re-compiled) and i have downloaded libcurl. I used apt-get install php5-curl and that took care of it. The questions are:
To recompile do i need to remove the old installation of PHP before compiling it again to add the extensions?
Do i need enable the extensions like mysql and stuff or do they install as default if not specified, im guessing i would need to specify everything?
Im used to downloading a pre compiled package, running the installer and away we go, actually its MAMP on OSX. I remember in windows you could just add the extension in the .ini i later learned in OSX and Linux its not as easy.
I have always used RPM kernels from the RedHat Network, in this time I need to compile an SMP kernel in a server that is used to serve common webhosting traffic (web, ftp, email, etc) with cPanel.
I have compiled kernels from source in desktops stations, but never in remote servers.. do you have any recommendations to do this at a Dual Xeon 3.2 RHE 5 + cPanel server? Oh.. almost forgot.. I will also compile it with GRsecurity.
Should I use a src kernel from RedHat, or a kernel.org latest kernel?
/home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:173: error: `CURLOPT_FTPASCII' undeclared (first use in this function) /home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:173: error: (Each undeclared identifier is reported only once /home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:173: error: for each function it appears in.) /home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:211: error: `CURLOPT_PASSWDFUNCTION' undeclared (first use in this function) make: *** [ext/curl/interface.lo] Error 1
make [@php-5.0.4]...(install).... Done
/home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:173: error: `CURLOPT_FTPASCII' undeclared (first use in this function) /home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:173: error: (Each undeclared identifier is reported only once /home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:173: error: for each function it appears in.) /home/cpapachebuild/buildapache/php-5.0.4/ext/curl/interface.c:211: error: `CURLOPT_PASSWDFUNCTION' undeclared (first use in this function) make: *** [ext/curl/interface.lo] Error 1
i'm compiling php5.0.4, with default settings and Curl (Version 7.15.3), GD (Version 2.0.15), GetText, Freetype Support.
Usually when I compile my scripts from source I never use any compiler flags. After taking a look at this article I found
[url]
I noticed that they were using the CFLAGS=-O2 option. Is this compatible for fedora core and/or centOS? Do all gcc compilers have this feature, and if they do, is it safe?
I am using the following configure command in hope to generate a PHP binary which is totally independent, standalone and can be moved to other systems without caring for dependencies:
I'm wondering if there are special notes on compiling sever softwares under x86_64 (CentOS 4.4 64bit, Pentium D)? Are there any specific flags for extra optimizations? Or the regular "./configure" will compile things in x86_64 by default?
By default ModSecurity relies on the regular expression library built into Apache for pattern matching. This works well with Apache 2.x but not so much with Apache 1.x. The Apache 1.x regular expression engine is several times slower. Since 1.9.2 it is possible to compile ModSecurity for Apache 1.x against an external regular expression library (PCRE, [url] the same library used in Apache 2.x) and achieve significant performance increase. This is achieved with the USE_PCRE compile-time flag.
If you have PCRE already installed on your system it may be sufficient to compile ModSecurity like this:
Code: [root@servidor1 customapache]# apxs -DUSE_PCRE -cia mod_security.c gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE -I/usr/include/apache -DUS E_PCRE -c mod_security.c mod_security.c:37:18: pcre.h: No such file or directory mod_security.c: In function `my_pregcomp': mod_security.c:929: error: `PCRE_CASELESS' undeclared (first use in this function) mod_security.c:929: error: (Each undeclared identifier is reported only once mod_security.c:929: error: for each function it appears in.) mod_security.c:929: warning: assignment makes pointer from integer without a cast mod_security.c: In function `my_regexec': mod_security.c:940: error: `PCRE_ERROR_NOMATCH' undeclared (first use in this function) apxs:Break: Command failed with rc=1 I double checked if I have PCRE installed:
Code: [root@servidor1 customapache]# yum search pcre pcre.i386 4.5-3.2.RHEL4 installed Matched from: pcre Perl-compatible regular expression library. PCRE has its own native API, but a set of "wrapper" functions that are based on the POSIX API are also supplied in the library libpcreposix. Note that this just provides a POSIX calling interface to PCRE: the regular expressions themselves still follow Perl syntax and semantics. The header file for the POSIX-style functions is called pcreposix.h. [url] And I even located the /lib/libpcre.so.0.0.1 and copied it to /usr/lib/apache/libpcre.so, with no sucess. Got the same error.
Has anyone sucessfully compiled mod_security with PCRE and can help me?
As the title says, 1 of the accounts on my server is getting the following error message - error number 0x800CCC79 server response 451 temporary local problem -
Yet other accounts on the server are sending and recieving fine?
what would cause this error? Its not tempory as its been 48 hours
yum -y groupinstall kde Loading "priorities" plugin Setting up Group Process Setting up repositories Cannot find a valid baseurl for repo: update Error: Cannot find a valid baseurl for repo: update
what is this? what ever i try to install i get this weird error..
Unable to parse zone: Error while parsing zonedata for xyz.com: syntax error, line 25 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.
--> Populating transaction set with selected packages. Please wait. ---> Package cadaver.i386 0:0.22.5-1.el5.rf set to be updated ---> Package mtr.i386 2:0.72-1.el5.rf set to be updated ---> Package rsync.i386 0:3.0.2-1.el5.rf set to be updated ---> Package nmap.i386 2:4.20-1.el5.rf set to be updated ---> Package lftp.i386 0:3.7.1-1.el5.rf set to be updated ---> Package syslinux.i386 0:3.63-1.el5.rf set to be updated ---> Package dkms.noarch 0:2.0.19-2.el5.rf set to be updated ---> Package subversion.i386 0:1.4.6-0.1.el5.rf set to be updated --> Running transaction check --> Processing Dependency: perl(Crypt:asswdMD5) for package: syslinux --> Finished Dependency Resolution Error: Missing Dependency: perl(Crypt:asswdMD5) is needed by package syslinux