0
votes
1answer
27 views

php-mbstring no package available on RHEL6?

[root@ltfs1968 yum.repos.d]# yum install php-mbstring Loaded plugins: dellsysid, downloadonly, replace, rhnplugin This system is receiving updates from RHN Classic or RHN Satellite. Setting up Install ...
0
votes
0answers
35 views

emails are coming from localhost instead of php sendmail_from

I'm trying to understand what I'm missing here. I have following PHP script: <?php ini_set('sendmail_from','XXX@XXX.TLD'); mail('YYY@YYY.TLD',rand(),rand()); ?> ... and even though I set ...
2
votes
1answer
60 views

How to run HTTPD as specific user(s) and not by nobody?

Currently, top shows me that almost all httpd processes are run by nobody. "Almost" because 2 of them are run by root. How can i make it in such a way that given i have users say: dartagnan, porthos, ...
0
votes
1answer
64 views

httpd (WordPress) gets avc denied write (SELinux)

I'm getting following message in my /var/log/audit/audit.log: type=AVC msg=audit(1402615093.053:68): avc: denied { write } for pid=799 comm="httpd" name="php" dev="xvda1" ino=8667365 ...
0
votes
1answer
64 views

PHP CLI with IMAP, 5 second startup delay

Having installed "php-imap-5.3.3-27.el6_5.x86_64" on a RedHat Enterprise 6.5 server, the CLI version of PHP always takes 5 seconds to run: php -n -d extension=imap.so -v PHP 5.3.3 (cli) (built: Dec ...
3
votes
1answer
994 views

php-devel failed on installation red-hat 6

I'm trying to install mongodb driver with pecl and for this i need phpize (php-devel). Does anyone know how can i resolve this issue or there is another way to install php-mongodb driver? I try as ...
0
votes
1answer
75 views

Configuring php to work with httpd, Autostarting mysqld and apachectl

I am very new to Linux Environment. But for my client I've designed the website which uses php and mysql. Now I want to install the site on his RHEL 5.0 server. He already have httpd installed on it. ...
0
votes
1answer
132 views

Upgrading PHP on RedHat

I'm trying to upgrade my PHP from 5.3.13 to 5.5 following this post, which links http://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/. However, I got error ...
0
votes
2answers
48 views

Why are my PHP processes consuming so much CPU?

This is a system running RHEL 2.6.18-348.6.1.el5PAE #1 SMP Tue May 21 16:17:08 EDT 2013 i686 i686 i386 GNU/Linux This seems somewhat related, and I'm wondering if it has security implications: ...
0
votes
1answer
125 views

Having trouble installing php_mbstring on CentOS system

So the new CentOS VPS didn't come with mbstring enabled. Easy enough, right? I typed 'yum install php-mbstring' It then says "Error: Nothing to do." The only thing I can figure is that I'm missing ...
0
votes
0answers
209 views

Upgrade PCRE to v8 on Red Hat 6.3

The latest version of PCRE available in the Red Hat Enterprise Linux 6.3 repo is v7.8 and the latest version of PHP available is 5.3.3, compiled against that external PCRE v7.8 library. (PHP normally ...
0
votes
2answers
176 views

Alternative repo for RHEL 5.4 [closed]

Can anybody recommend a respectable alternative repo for Red Hat Enterprise Linux 5.4? I want to get PHP 5.4 especially.
0
votes
1answer
98 views

Running drupal as root in order for it to run bash scripts

I store a website on redhat and using drupal. There is a button on the site that activates a php script and that php script use exec to activate bash script on the server. Right now the script is not ...
-4
votes
1answer
47 views

updating php red hat [closed]

I am trying to install PHP MVC framework Symfony. When I go to the check requirements page it says that I have to update my php to version 5.3.17+. I have an VPS with RedHat. I am totally new in ...
0
votes
3answers
374 views

yum fails installing php53-devel.x86_64

I need to recompile php on a Fedora server because I need to use the --enable-zip flag. When trying to install the devel package, I get the following message. This is after a 'yum clean all': yum ...
1
vote
1answer
323 views

Error while installing phabricator using http://www.phabricator.com/rsrc/install/install_rhel-derivs.sh

The command thats run is yum install httpd git php php-cli php-mysql php-process php-devel php-gd php-pecl-apc php-pecl-json mysql-server I get these errors. How do I fix these? Error: Package: ...
2
votes
3answers
524 views

Install PHP mcrypt on Red Hat 4

I'm having a very hard time getting mcrypt for PHP installed on a Red Hat 4 server. I've downloaded the rpm but it tells me: error: Failed dependencies: php-common(x86-32) = 5.4.7-2.fc18 is ...
0
votes
1answer
362 views

Wrong version of PHP is used when called from a script

I apologize ahead of time if this question is really basic. My background is in Windows and I am being asked to maintain a RedHat Linux server that is in bad shape and is in production use. The issue ...
1
vote
3answers
821 views

Apache sudoers access

I am making a system call from php which is `sudo /usr/bin/perl -pi -e 's/foo/bar/g' /tmp/newxml.xml`; which works fine in php cli. But would not work in php via browser, because apache does not ...
0
votes
3answers
242 views

Cannot properly read files on the local server

I'm running a RedHat 6.2 Amazon EC2 instance using stock Apache and IUS PHP53u+MySQL (+mbstring, +mysqli, +mcrypt), and phpMyAdmin from git. All configuration is near-vanilla, assuming the described ...
1
vote
1answer
34 views

What would cause PHP variables to be rewritten by the server?

I was given a VM at my company to install web software on. But I came across a rather bizarre issue where PHP variables would be overwritten (rewritten) by the server if they matched a specific ...
0
votes
2answers
5k views

How to enable mysqli extension on redhat?

My php.ini says: Additional .ini files parsed /etc/php53/php.d/curl.ini, /etc/php53/php.d/fileinfo.ini, /etc/php53/php.d/json.ini, /etc/php53/php.d/mysqli.ini, /etc/php53/php.d/mysql.ini, ...
0
votes
2answers
487 views

connect mysql from php without yum command manually

I am trying to connect to mysql from php, it says i have not configured mysql-php, call to undefined function:mysql_connect();. My server is not registered with RHN, hence i cannot yum install ...
0
votes
2answers
1k views

How To Remove/Uninstall PHP in RHEL4

i wanna ask how to remove/uninstall php5 from my RHEL4 i've install it, using # ./configure # make # make install i've tried #make uninstall but there's following error, i've tried it in ...
0
votes
1answer
332 views

PHPMyAdmin Setup Prompts for PHP 5.2+ after Install of PHP 5.3.8 on RHEL 5

I have a fresh RHEL 5 dedicated server that has just been updated with PHP 5.3.8. When I browse http://my.ip.addy/setup to start the PHPMyAdmin setup, I receive a message stating PHP 5.2+ is ...
16
votes
1answer
528 views

Install APC RedHat

i am trying to install apc on redhat so i did: pecl install apc i said yes to: Use apxs to set compile flags (if using APC with Apache)? [yes]: and i get this: checking for re2c... no ...
0
votes
4answers
4k views

PHP 5 will not work in Centos 6 for me

Just created a new install of Centos 6.0 64-bit on a virtual machine and running on Vmware workstation 8, windows host. yum install php service httpd restart And when trying to run a html file from ...
1
vote
3answers
3k views

Time+ (CPU Time) column in top command is incorrectly reporting

The Time+ column in my top command is not reporting the correct time for a running php script. It fluctuates up and down first reporting something like TIME+ 22:39.35 php And then three seconds ...
1
vote
2answers
563 views

Install PHP on RedHat

I just ran yum install php in the command prompt. Everything went fine ('complete!') as per the dialogue. I then uploaded a file that does not use short tags and is named with the proper extension ...
0
votes
0answers
196 views

PHP potential issues with compiling 5.3.8 extensions against RHEL 6 / CentOS 6 PHP 5.3.3 package

I'm working on getting a Red Hat 6 LAMP server going and while the PHP that comes with it has many extensions we use, it doesn't have all of them. To solve this, I was thinking about either ...
4
votes
3answers
9k views

How do I get PHP 5.3 working on Red Hat Enterprise Linux, with PDO enabled? PHP53 was installed with yum

This problem is complicated, and I'm not an expert at all, so bear with me. My server admin team set me up with a standard RHEL box. It had PHP preinstalled, as well as apache. I am now trying to ...
0
votes
2answers
904 views

PHP-GD installed but not activated in RedHat 5.5 Enterprise

I don't know how the lamp server was installed. Launching a phpinfo() script i can read --without-gd even if i found the packages on the machine root@mypc ~]# rpm -qa |grep php ...
-4
votes
1answer
49 views

Tracking down a posted comment on my website [duplicate]

Possible Duplicate: Tracking down a posted comment I have created a website on a linux redhat server which is running an apache server. The website is coded with php and uses a mysql ...
2
votes
2answers
74 views

Update Apache, PHP on Red Hat 7

I have an ancient server running Red Hat 7. I would like to update the httpd set up and obviously Red Hat does not provide updates for a system this old. What would be the best method to update ...
1
vote
3answers
573 views

Log all outgoing mail from PHP on a Redhat box

The IP of one of our servers has been blacklisted and I would like to attempt to work out why. There are many Apache virtualhosts on the server so the logging would need to be split up by domain and ...
1
vote
2answers
1k views

Enable zip on PHP 5.1.6 without recompile

I've got a CentOS / Red Hat 5.5 box running the current PHP 5.1.6 package. A user is getting the following error: Fatal error: Class 'ZipArchive' not found in /var/www/html/<filename.php> on ...
0
votes
3answers
1k views

Cannot perform a PECL installation

I have been trying to do a few PECL installations, but all of them return the same type of error. Something related to timezones? Im running RedHat x86_64 es5. Attempting to install geoip-1.0.7: ...
0
votes
3answers
136 views

How do i rewrite origin IP address?

I have a web application running on PHP/Apache2/Linux Redhat which daily downloads some files from an external FTP server. I need to use a different public IP address for the FTP connection instead of ...
0
votes
1answer
557 views

Generate libphp5.so without root privileges

I'm trying to get php and apache playing nice together on RedHat 5. I don't have root access. So far I've got a custom install of apache2 in a non standard location and I've run: yum install php ...
0
votes
4answers
513 views

PHP script times out after exactly 60 seconds or browser prompts to download file

We have a Redhat Centos 5.5 system which has a php/mysql application. After a server restart, we've been seeing some of the 'longer' scripts time out exactly after 60 seconds OR the browser prompts ...
0
votes
1answer
694 views

phpinfo() does not show MySQL section

This is linked to http://serverfault.com/questions/191609/installing-php-with-mysql-support My phpinfo() does not show a MySQL section as a separate 'heading', but several .ini files are referenced ...
1
vote
3answers
673 views

PHP make install seems to end abruptly and does not update libphp5.so

I'm trying to compile PHP 5.3.3 and after a lot of ups and downs, I finally did 'make' it followed by 'make install' which just shows this: root@server [/tmp/php-5.3.3]# make install Installing PHP ...
0
votes
3answers
1k views

Explicitly installing PHP 5.3.3 on RHEL5

My dedicated hosting provider has installed php-5.1.6-27.el5.x86_64 on my server whereas I would like PHP 5.3.3 installed (64 bit) I can't seem to upgrade it at all root@server [~]# php -v PHP 5.1.6 ...
0
votes
1answer
2k views

Installing PHP with MySQL support?

I've got PHp installed from my hosting provider and it doesnt seem to have mysql support built in. I was redirected to an installation script: /usr/bin/mysql_secure_installation Which installed ...
0
votes
1answer
777 views

Correct user / permissions for running php script which writes to disk?

I've got a website at /var/www/html Which has a couple of files, one of which is: -rwxr-xr-x 1 root root 1609 Feb 16 2010 send_form_email.php (earlier it was 644) I can access the file ...
2
votes
2answers
445 views

Best Practices for installing PHP5 and MySQL5 on Red Hat Enterprise Linux 4

On an existing iPlanet webserver, we now have to install PHP5 and MySQL 5 on Red Hat Enterprise Linux 4. Are there any recommended guides or best practices for safely installing these 2 tools and ...
0
votes
1answer
303 views

Guide to setting up a RHEL5 dedicated web-server for a LAMP website?

I'm setting up a dedicated webserver which will host just one website, ours, which runs on PHP/MYSQL. What all steps should I undertake to make sure everything is configured properly? Is there a ...
1
vote
1answer
676 views

Compiling PHP with cURL and SSL support on Redhat EC5

I don't even know where to begin to be honest. Trying to use an external API that requires SSL connections, I discover that SSL in needed on cURL, but this (apparently) requires PHP to be reinstalled ...
0
votes
2answers
2k views

$_ENV['HOSTNAME'] not being set, potential problem with Apache?

I have 3 LAMP servers. Today I have noticed many of the following in the PHP error log: [11-Feb-2010 10:58:03] PHP Notice: Undefined index: HOSTNAME in ... Of course, this is happening in PHP ...
0
votes
2answers
781 views

PHP ZendOptimizer on Red Hat Enterprise Linux

I would like to install FlashMoto and the requirements are not unreasonable: PHP 5.2.1 or higher, Zend Optimizer 3.3 or higher. However my RHEL 5.4 provides me with PHP 5.1.6. So I tried the remi ...