joexing
asked on
Custom LAMP Stack on Ubuntu 10.7 - PHP giving me problems
In a nutshell:
Even though Apache2, MySQL and PHP seem to be running...
I am unable to successfully install phpMyAdmin.
I am unable to install my web software (ExpressionEngine)
In both cases I get a version of the following message:
Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/phpMyAdmin-4.0. 5-english/ libraries/ sanitizing .lib.php on line 144
The PHP code is failing on calls related to string evaluation.
Line 144 in the above module is:
$message = preg_replace_callback($pat tern, 'PMA_replaceBBLink', $message);
The failing line in the ExpressionEngine install tries to invoke
if ( ! preg_match("/^([a-z0-9\+_\ -]+)(\.[a- z0-9\+_\-] +)*@([a-z0 -9\-]+\.)+ [a-z]{2,6} $/ix", $data['email']))
So it would seem that I have compiled PHP without a required module. Can anyone suggest what this missing module might be?
The configure string I'm using for PHP is:
./configure --with-config-file-path=/e tc/php5 --with-apxs2=/usr/bin/apxs 2 --with-curl=/usr/lib --with-pgsql --with-pear --with-mysql=/usr/local/my sql/lib --with-gd --with-mcrypt=/usr/lib --with-libdir=lib64
I am trying to configure a non-standard LAMP stack to support an older piece of software. I want to model a production environment so that I can load and then upgrade the client software that runs on this particular LAMP stack.
I have the separate pieces, Apache2, PHP and MySQL running but PHP is not interoperating properly.
- Apache displays the proper default 'index.html' page.
- phpinfo() displays properly from within the document root.
- MySQL is functioning.
- I can successfully execute a PHP/MySQL query to connect to a database.
All good, right?
I have been unable to get phpMyAdmin to run.
Since phpMyAdmin is not essential I tried to bypass it and use the MySQL command interface to configure my users and databases. When I try to install the client software (ExpressionEngine) it also fails, as described above.
I installed Apache2 via apt-get install apache2-apache2-mpm-prefor k
I Installed MySQL from 5.0.91 source
I installed PHP from 5.2.1 source
I am attempting a manual install of phpMyAdmin (latest version)
I would appreciate suggestions. In particular I see information on how to install LAMP components discretely because the 'package mode' does not seem to provide the flexibility that I require.
Thanks.
Even though Apache2, MySQL and PHP seem to be running...
I am unable to successfully install phpMyAdmin.
I am unable to install my web software (ExpressionEngine)
In both cases I get a version of the following message:
Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/phpMyAdmin-4.0.
The PHP code is failing on calls related to string evaluation.
Line 144 in the above module is:
$message = preg_replace_callback($pat
The failing line in the ExpressionEngine install tries to invoke
if ( ! preg_match("/^([a-z0-9\+_\
So it would seem that I have compiled PHP without a required module. Can anyone suggest what this missing module might be?
The configure string I'm using for PHP is:
./configure --with-config-file-path=/e
I am trying to configure a non-standard LAMP stack to support an older piece of software. I want to model a production environment so that I can load and then upgrade the client software that runs on this particular LAMP stack.
I have the separate pieces, Apache2, PHP and MySQL running but PHP is not interoperating properly.
- Apache displays the proper default 'index.html' page.
- phpinfo() displays properly from within the document root.
- MySQL is functioning.
- I can successfully execute a PHP/MySQL query to connect to a database.
All good, right?
I have been unable to get phpMyAdmin to run.
Since phpMyAdmin is not essential I tried to bypass it and use the MySQL command interface to configure my users and databases. When I try to install the client software (ExpressionEngine) it also fails, as described above.
I installed Apache2 via apt-get install apache2-apache2-mpm-prefor
I Installed MySQL from 5.0.91 source
I installed PHP from 5.2.1 source
I am attempting a manual install of phpMyAdmin (latest version)
I would appreciate suggestions. In particular I see information on how to install LAMP components discretely because the 'package mode' does not seem to provide the flexibility that I require.
Thanks.
ASKER
I beg your pardon; the version of Ubuntu I am using is 10.4. The version of EE that I'm running is old (1.6.7) and it will not run on the latest releases of php or mysql. The php issue is the elimination of 'preg.' I am not sure of the changes to mysql that prevent me from running the latest version of mysql. Have 'mysql' calls been phased out completely in favor of 'mysqli?'
If I could use the packages that are available for Ubuntu I would do so. In fact, the production LAMP stack runs Apache 1.3 but I could not find a package for it. I have chosen Apache2 because I understand that it should be able to interoperate with older versions of php & mysql.
Hope that clarifies my situation.
Thanks.
If I could use the packages that are available for Ubuntu I would do so. In fact, the production LAMP stack runs Apache 1.3 but I could not find a package for it. I have chosen Apache2 because I understand that it should be able to interoperate with older versions of php & mysql.
Hope that clarifies my situation.
Thanks.
I think you might mean the elimination of 'eregi' because the 'preg' functions are current. 'mysql' is not being phased out until PHP 5.5. http://us3.php.net/manual/en/intro.mysql.php
The current versions in Ubuntu 10.4 are PHP 5.3.2 and MySQL 5.1.70 and Apache 2.2.
The current versions in Ubuntu 10.4 are PHP 5.3.2 and MySQL 5.1.70 and Apache 2.2.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
In my experience the install script runs (on other systems) in less than a second. Clearly I have misconfigured php. I am going to rethink my strategy of replicating the production environment. Perhaps I should have installed the standard LAMP as a baseline and tested against it.
Thank you for your thoughts.
Thank you for your thoughts.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It happens that Ubuntu released version 10.4 in 2009, about the time that ExpressionEngine 1.6.7 was current. Rather than attempting to replicate the production environment through a custom LAMP configuration I should have started with the 'standard' 10.4 LAMP as a baseline. Although not exact, the standard LAMP appears to be close enough to allow me to continue the project.
Good, thanks for the points.
What do you want that you feel is not available in the packages?