I was disappointed to discover how difficult it is to set up PHP, MySQL and virtual hosts on my MacBook Pro. I finally hired a computer science student to do it for me - but even he screwed it up.
Then I discovered a preconfigured packaged called MAMP. I downloaded the free version and now have Apache, PHP, MySQL and phpMyAdmin up and running. That still leaves the biggest obstacle of all - creating virtual hosts.
I checked out the MAMP Pro version ($50) at [url]and read "You can set up many virtual hosts."
That doesn't make sense to me; shouldn't you be able to set up many virtual hosts even with the free version of MAMP? Or does MAMP somehow make it EASIER to create virtual hosts, and the Pro version simply allows you to make many of these simplified virtual hosts? If MAMP Pro does indeed make it easy to create virtual hosts, then I'll purchase it immediately.
I'd be interested in other comments about MAMP. Unfortunately, its support forums are awfully lame; that's why I decided to post my questions here.
I can't get MAMP to work. I sadly uninstalled and AppZapped MAMP and reinstalled it. Now I can't get WordPress to install. I can make a DB on PHP MyAdmin but I get "not found" when I try the WordPress install. I can't get the PHP info? line to work either. How do you troubleshoot MAMP?Â
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 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 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 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.
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?
I have got error while install GD Library on my VPS (CentOS, cPanel)
Code: root@sv1 [~]# yum install php-gd Setting up Install Process Setting up repositories update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 80 kB 00:00 update : ################################################## 232/232 Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 97, in main result, resultmsgs = do() File "/usr/share/yum-cli/cli.py", line 470, in doCommands return self.installPkgs() File "/usr/share/yum-cli/cli.py", line 836, in installPkgs self.doRepoSetup() File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup self.doSackSetup(thisrepo=thisrepo) File "__init__.py", line 260, in doSackSetup File "repos.py", line 287, in populateSack File "sqlitecache.py", line 96, in getPrimary File "sqlitecache.py", line 89, in _getbase File "sqlitecache.py", line 373, in updateSqliteCache File "/var/tmp/python-sqlite-root//usr/lib/python2.3/site-packages/sqlite/main.py", line 244, in execute _sqlite.DatabaseError: unable to open database file root@sv1 [~]# yum install php-gd Setting up Install Process Setting up repositories Reading repository metadata in from local files update : ################################################## 232/232 Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 97, in main result, resultmsgs = do() File "/usr/share/yum-cli/cli.py", line 470, in doCommands return self.installPkgs() File "/usr/share/yum-cli/cli.py", line 836, in installPkgs self.doRepoSetup() File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup self.doSackSetup(thisrepo=thisrepo) File "__init__.py", line 260, in doSackSetup File "repos.py", line 287, in populateSack File "sqlitecache.py", line 96, in getPrimary File "sqlitecache.py", line 89, in _getbase File "sqlitecache.py", line 373, in updateSqliteCache File "/var/tmp/python-sqlite-root//usr/lib/python2.3/site-packages/sqlite/main.py", line 244, in execute _sqlite.DatabaseError: unable to open database file
I have contacted cPanel Support but the issues isn't resolved.
Linux: CentOS 5.2 PHP: 5.2.6 PHP-GD: php-gd.i386 0:5.2.6-jason.1 Apache: 2.2.8 with mod_proxy (Lighttpd serves in the background)Question:
I've built my server with PHP 5.2.6 and Apache and I've also installed php-gd by running 'yum install php-gd', but an application (clip bucket) I'm using requires GD with TTF enabled for the cpatcha image in 'singup'. I've checked my phpinfo [url] but didn't seem to find TTF enabled with my GD, so I wonder how to recompile GD with TTF enabled?
Installing... 1:httpd warning: /etc/httpd/conf.d/welcome.conf created as / etc/httpd/conf.d/welcome.conf.rpmnew warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew warning: /etc/httpd/conf/magic created as /etc/httpd/conf/magic.rpmnew ########################################### [100%] error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename There was a fatal RPM install error. The message was: There was a rpm unpack error installing the package: httpd-2.0.52-28.ent.centos4 root@sv3 [~]#
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?
1. GD libraryNot installed The GD library for PHP is missing or outdated. Please check the PHP image documentation for information on how to correct this.
2. Unicode libraryStandard PHP Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.
I have on my server:
Package gd-2.0.33-9.4.el5_1.1.x86_64 already installed and latest version Package gd-2.0.33-9.4.el5_1.1.i386 already installed and latest version
but i don`t know why drupal say to me it`s not installed. Need to active the GD Library?
How can i fix the problem with php mbstring and GD Library?