Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Update Apache And Php In Plesk


How can I update my apache and php to latest version in PLESK?

I need to install GD and Zend Optimizer too.


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Used Apache Update/some PHP Scripts No Longer Working
Having some issues here, I used Apache Update to install WHMCS as I didn't have Curl installed. Well had some issues using the username and password as it couldn't connect to the database, my modernbill and phpnuke scripts still work but some other scripts like joomla, some shopping cart software, and other MYSQL scripts are not working.

I've run test scripts to see if I can connect to the database, got the following error with the PHP test script

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'data_invoice'@'localhost' (using password: YES) in /home/data/public_html/test2.php on line 4
I cannot connect to the database because:Access denied for user 'data_invoice'@'localhost' (using password: YES)

Also attempted it in SSH and getting a similar error that access is denied. Username and password are correct. I believe I upgraded PHP which my guess is what caused this. I've searched the forum for a few solutions and I had the problem in the past which I fixed it, but it's been a while.

View Replies!   View Related
Apache 2.2 / Php 5 Update: Calling Files Behind Root
With my old Apache 1 and PHP4 I was able to pull files from behind the public_html using a php file without any problems. Is there a reason why this does not work with Apache 2.2 and PHP5?

the piece of coding below is what grabs the image. Right now i'm just seeing a red X for each image.

PHP Code:

        if ($private == 1) {
        header("Content-type: image/jpeg"); 
        $im = imagecreatefromjpeg('/home/site1/private/' . $type . '/' . $mid . '-' . $iid . '.jpg'); 
        imagecolorallocate($im, 255, 255, 255);
        imagejpeg($im); 
        imagedestroy($im);
        } 

View Replies!   View Related
Plesk 8.0 > Plesk 8.3 Update Failure
i got plesk 8.0, and trying to update with the updater to more recent versions.

updating fails.

I tried with incremental updates (8.0 > 8.1 > 8.2 etc.), but it never works.

I haven't really touched the configuration since I got the server.

this is the error I'm getting:

Code:
===> Set up monitrc_vz.tpl as template for monitrc
===> Registering module
===> Configuring module
/tmp/monitrc.chk: No such file or directory
Control file syntax OK
Control file syntax OK
Control file syntax OK
Control file syntax OK
Control file syntax OK
Control file syntax OK
Control file syntax OK
Control file syntax OK
Control file syntax OK
ERROR: An error occurred during installation of packages.

Attention! Your software might be inoperable.

View Replies!   View Related
Update Php And Website Showing Php Code
I have update php successfully 5.2.6 to 5.2.9.

-bash-3.2# php -v
PHP 5.2.9 (cli) (built: Apr 10 2009 00:53:01)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

i already restart the httpd but everytime I go to my website, php page is now showing my php page as php code. :/

View Replies!   View Related
PLESK And Qmail Slowdown After Update
We are experiencing a slowdown on one of our servers running PLESK 8.2 . Has anyone noticed a problem with the latest qmail update provided by PLESK?

Our tech feels it is a faulty upgrade, and is looking into it.

Has anyone made the upgrade and noticed a problem? Our average load went from around 5 to 50.

View Replies!   View Related
Php Not Updating After Php Update On Centos
im trying to update my php version to 5.2+ so i can run phpmyadmin on my server. Ive tried two different methods both produced same results. First method was to download libxml2-2.7.3 and then do ./configure, make,etc then i download php, ./configure, make install, etc. At first i had to yum install make, then a c complier cause make and ./configure didnt work before that. After everything seemed to work fine until the end when it said you may have found a bug on php would you like to submit it? So obviously the php version didnt update at all.

Next i tried adding a repo that already contained php-5.2.5 and then yum install php since centos only seems to support regular yum install up to php version 5.1.6. i did rpm and installed php and thought sweet ive updated php. Ran php -v and i am still running php version 5.1.6.

View Replies!   View Related
Plesk Update From Beta To Normal Version
how can I update plesk from 9.0 beta to 9.0 current version?

If I remove plesk, do my sites also be deleted?

View Replies!   View Related
Apache Do Not Update
i enable Mbstrings and Soap in easyapache in Cpanel.
after 24 hours i restart my server and some things get eror.

tmp folder become read only.

easy apache give below eror :

Code:
Died at /var/cpanel/perl/easy/Cpanel/Easy/Utils/BackGround.pm line 40.
and all site have eror for tmp and mysql.
i change tmp folder but some eror don't solved.

Code:
Can't create/write to file '/tmp/#sql_1f42_0.MYI' (Errcode: 30) SQL=SELECT m.*, sum(case when p.published=1 then 1 else 0 end) as cnt FROM jos_menu AS m LEFT JOIN jos_menu AS p ON p.parent = m.id WHERE m.menutype='mainmenu' AND m.published='1' AND m.access <= '0' GROUP BY m.id ORDER BY m.parent, m.ordering
Warning: Invalid argument supplied for foreach() in /home/music/public_html/modules/mod_tpmenu/tpmenu/dropdown/menu.php on line 127

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/music/public_html/modules/mod_tpmenu/tpmenu/dropdown/menu.php on line 150

this is mount command :

Code:
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,usrquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
and this is fstabs :

Code:
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0

View Replies!   View Related
PHP 5.2.8 Update
Did anyone have this problem when upgrade to PHP 5.2.8?

This is the error that i got when i upgrade from PHP 5.2.6 to 5.2.8.

"Failed loading C:PHP5ioncubeioncube_loader_win_5.2.dll PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_mssql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_msql.dll' - The specified module could not be found. in Unknown on line 0 "

I don't have Ioncube install and when i upgrade from PHP 5.2.5 to 5.2.6. I didn't have the above problem. Is Ioncube a included .dll in for the Windows package? How do i fix the above error? Is there any problem with PHP 5.2.8? Is it stable?

My server is Win2003 Standard/IIS6.

View Replies!   View Related
Update Php To Lastest
I tried to run yum update php and it say there are no new packages available. This is on centos 5.2 with lxadmin installed so how can i update it?

it has php 5.2.1 and the latest is 5.2.8.

View Replies!   View Related
Php 4.4.7 Update Error
/configure php? i got this error:

Quote:

checking for IMAP support... yes, shared
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_CANONICAL... no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

View Replies!   View Related
Cant Access Apache Update In WHM
Can't access apache update in WHM I get an http 500 error page.

View Replies!   View Related
Apache Update Problems (yum)
Just started running a new VPS and have tried to update apache through WHM and I get this error :

Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed.

Someone told me to check out yum so I ran a command that he told me too and got this output :

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 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 381, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
return base.updatePkgs(extcmds)
File "/usr/share/yum-cli/cli.py", line 672, in updatePkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 109, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 338, in doSackSetup
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 200, in populateSack
sack.populate(repo, with, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 91, in populate
dobj = repo.cacheHandler.getPrimary(xml, csum)
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 100, in getPrimary
return self._getbase(location, checksum, 'primary')
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 93, in _getbase
self.updateSqliteCache(db, parser, checksum, metadatatype)
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 382, in updateSqliteCache
cur.execute("DELETE FROM "+table+ " where pkgKey in %s" % delpkgs)
File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in execute
self.rs = self.con.db.execute(SQL)
_sqlite.DatabaseError: unable to open database file

Its the database error that worries me, can anyone help me out with how to fix this?

Running WHM 11.2.0 cPanel 11.11.0-S16999

CENTOS Enterprise 5 i686 - WHM X v3.1.0

View Replies!   View Related
Update Server Without Updating Mysql And Apache
i would like to update my CentOS Linux 5 but i don't want to update mysql and apache i need to use mysql 4. When i entered yum update i can see Total download size: 245 M i can see mysql i386 5.0.45-7.el5 base 4.1 M

how can update my server without updating mysql and apache

View Replies!   View Related
Error When Trying To Run Apache Update (cPanel)
I got a new server online today with a fresh installation of centos and cPanel:

WHM 11.15.0 cPanel 11.18.1-R20683
CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0

I have done the initial setup (ip's nameservers etc..) but when I try and run apache update I get the following:

Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.

I look in the log file but it just repeatse the above error and doesnt supply any additional info.

View Replies!   View Related
POP Server Error After Apache Update
I run a dedicated server with WHM/cPanel (10.8.0).

I was recently supposed to update the Apache installation to add a module, but instead of clicking "load previous config" I clicked on "start build" by mistake. This brought the installation back to default.

I waited till the build was finished and then added all the modules I could remember having installed earlier. This made Apache not wanting to start. I went back to the default and then recompiled apache over and over again, adding 1 o 2 modules every time. Apache booted up fine, but for some reason my mail is suddenly acting up.

I keep getting the following error on one of my domain in my client:

Code:
Unable to connect to POP server mail.example.com.
Error sending password: -ERR Maildir invalid (no 'cur' directory)
When I click OK, I get:

Code:
Unable to connect to POP server mail.example.com.
Error sending password: Operation now in progress
I have a couple of other accounts in the mail client. None of them are receiving mails, even though I can see that there are new mails present in the mailbox via webmail.

My exim is configured to use mbox as far as I know. So I don't understand why I'm getting an invalid maildir message.

View Replies!   View Related
Server Update, Too Many Apache Processes But Low Load
I have 2 almost similar webservers:

debian 3.2, P4 3GHZ, 1 Gb ram, kernel 2.6, apache2, php4

Initial apache2.conf:

Code:
Timeout 4
KeepAlive Off
KeepAliveTimeout 2
ServerLimit 1500

<IfModule prefork.c>
StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 1500
MaxRequestsPerChild 3000
</IfModule>

I update the sources.list on server 1 to mirrors of the new debian 4 etc . I run apt-get update and apt-get dist-upgrade . A whole bunch of things get updated (it was long time ago that I did this anyway). After some troubles with /boot/grub/menu.lst the server boots ok, and everything is well. This server used to have loads of 15-25 at peak times, but after the update its running very smooth with loads of 2-3 at the same peak times. I dont know why exactly, as I noticed updates in OS , kernel version (from 2.6.8x to 2.6.18) , apache2 , php (4.4.4-8+etch1) , and I also needed to update eaccelerator from 0.94 to 0.95 .

A few days later I update server 2. Everything seems to go the same, although the kernel version stays at 2.6.8-3-686. I dont think kernel version at start was exactly same at server 1. But the new php version is the same as server 1, and everything else looks the same too.

But when peak times are coming up, this server starts to have troubles. It is quickly rising to total of 200-300 processes , while server 1 always stays stable at 60-70.

Server 2 also reacts slow if I click somewhere on the site. It takes 5-10 seconds to show a new page. However the load stays pretty low at 1-2 . I see no big cpu usage and also no big memory usage. I have the impression that this server 2 is somehow wasting a lot of apache processes and is making things hard for itself without a real reason.

When I check the seperate mysql database server, I also notice a lot of processes.

Around 200-250 whereas it used to be 40-60. Sometimes this adds up so hard, that all webservers are blocked because mysql has too much processes. When I check the mysql connections, I see a few dozen things like 'unauthen ip:port Connect login' just hanging. All of them have the ip of webserver 2. Those extra apache processes are somehow hanging on to the mysql server without really doing something.

I dont know what is happening, but this server is underperforming very badly now. I managed to limit the problem by drastically lowering ServerLimit and MaxClients on webserver 2 , but this is no real solution. The server is still slow, at least now its not bringing down the others.

My question : what should I check for now ? I noticed a different structure in the conf files in debian etch, maybe something new has a bad influence on my old conf files? Is there something wrong with the combination of kernel+php version? I have no idea, please point me in the right direction so I can learn from this.

View Replies!   View Related
Mysql Insert/Update Makes Apache Go Crazy
I run a wordpress blog with apache2+mysql5+php5 in a Debian vps with 1024mb ram (plus swap).

When you read the website everything works quick and smooth, but when you have to add data to the database (edit posts, write posts, write comments) something weird happens.
monitoring the system with the top and I see that, for example, as soon as an article has been posted (already got the "article posted" message in the page) the free ram goes suddenly down (some seconds) from 800mb to 0. Swapping starts and the website stops responding. in the meanwhile cpu "wa" goes high (90%++).

Typing ps aux I can see that is not mysql process's fault, actually it seems more that it's apache to cause this ram hogging, in fact an apache restart brings back tons of free ram.

this is my current my.cnf:

Code:
client]
port= 3306
socket= /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket= /var/run/mysqld/mysqld.sock
nice= 0

[mysqld]
#
# * Basic Settings
#
user= mysql
pid-file= /var/run/mysqld/mysqld.pid
socket= /var/run/mysqld/mysqld.sock
port= 3306
basedir= /usr
datadir= /var/lib/mysql
tmpdir= /tmp
language= /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address= 127.0.0.1
#
# * Fine Tuning
#

myisam_sort_buffer_size=64M
max_connect_errors=20
connect_timeout=15
interactive_timeout=100

join_buffer_size=1M
sort_buffer_size=1M
read_buffer_size=1M
bulk_insert_buffer_size=16M

key_buffer= 64M
max_allowed_packet= 16M
thread_stack= 128K
thread_cache_size= 8
max_connections = 600
table_cache = 256
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log= /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log_slow_queries= /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
#server-id= 1
#log_bin= /var/log/mysql/mysql-bin.log
# WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
#expire_logs_days= 10
#max_binlog_size = 100M
#binlog_do_db= include_database_name
#binlog_ignore_db= include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
skip-innodb
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem

View Replies!   View Related
Can I Setup My Control Panel To Update The Apache Config File
How can I setup my control panel to update the Apache config file

View Replies!   View Related
Php Includes Issue On Linux Server With Apache 2.0.63 / Php 5.2.6
I am having some trouble with getting 'include' working. I have a new dedicated server running Apache 2.0.63 and PHP 5.2.6. Local includes on the same domain are running ok, but remote includes are throwing a problem. On the many sites we plan to host on this servber we use a central 'webmaster' page called as an include from a specific site (also on the same server).

I need to edit the PHP.ini and /or recompile the PHP with the appropriate modules to do one of the following...

1 (ideally) - allow includes from any site that is held on this dedicated server

2. allow includes from specified websites

3. simply allow remote includes

right settings to get one of these

options running and solve my problem?

View Replies!   View Related
Recompile Apache :: Your Operating System's Rpm Update Method (yum) Was Not ..
i tried recompile Apache to install

--curl
--curl ssl
--mcrypt

by running /scripts/easyapache

then i get the error below. Can anyone help me out? i really dont know what todo here.

Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper set up. You must correct this error before you can proceed.

View Replies!   View Related
Installed Apache And PHP Only Seeing Default Apache Page
I am having an issue where I have a server that Directadmin is installed on. I go to the a url that is on the server and all i see is the default page of apache saying congrats, it is installed. Although there is no file like that in the public_html any longer and I can see my files in the public_html folder of that specific site.

View Replies!   View Related
Apache/MySQL/PHP Issue - PHP Not Loading
I've got a server that was running Apache 2.0/PHP 5.2.5 & MysQL 5.0 just fine, however I needed to upgrade to a newer version of MySQL.

So I uninstalled MySQL 5.0 and installed MySQL 5.1, copied the MySQLlibs over, and recompiled Apache/PHP with easyupdate. Apache & MysQL both start/run fine without errors, however PHP files don't load. Just get black pages (HTML works fine obviously).

I went ahead and updated to Apache 2.2 & PHP 5.2.6 while I was at it, but that doesn't change things. I'm not sure why uninstalling MysQL & reinstalling would break any dependencies, but looks like thats the case. Perhaps I need to reinstall some libraries?

Or would it be easier just to reinstall Apache/PHP entirely? I have no data.

View Replies!   View Related
Php.ini Default For Apache 1.3.39 Php 5.2.5
my php.ini is blank

if maybe please take one php.ini default :-)

View Replies!   View Related
Apache Config N Plesk
how can i compile apache and php in a way that i want?

a customized compilation of php and apache?

will it be gone after plesk update?

or has plesk a module to work as easyapache in cpanel?

View Replies!   View Related
Apache To Plesk Migration
I am currently running a server on Apache, with PHP and MySQL addons installed. However,

I would now like to install Plesk and run all websites from its administration interface. How would this be done?

I have asked SW Soft regarding this issue, and I got this response:

Quote:

It is possible to migrate from one of the platforms listed in the Guide or from IIS.

Unfortunately, migration from an Apache server is no possible.

I find this hard to believe. Is there anyone who can confirm this before I buy a copy of Plesk, which according to SW Soft would not work with my current server...

Also, if they are wrong, how should this be done? I have searched for an answer to this, but I have not come up with anything, maybe because of wrong search terms.

View Replies!   View Related
Upgrading Php On Linux Plesk
Anyone know of a good tutorial for upgrading php on a linux plesk 8.3.0?

View Replies!   View Related
Include .html Into .php (PLESK)
I have a server running PLESK 8.2 (latest version). With PHP4 and 5 support. I want to include .php files into .html (which work fine on LINUX CPANEL but on on WINDOWS PLESK).

Please can anyone suggest how can i make my WINDOWS server work so that it includes .php into .html. (.php included in .php works fine).

ALSO i tried to add (application/x-httpd-php in IIS MIME TYPES to extension .html and even .php but it did not work.)

View Replies!   View Related
PHP 4.3.9 MYSQL 4.1.20 UPGRADE On CENTOS 4 With Plesk 8
I am planning on upgrading to php 5. I really don't need to upgrade to mysql 5 but do you guys think I will face problems with PHP 5.2.9 and Mysql 4.1.20 working together...

I am planning on doing the upgrade like this (if I decide to upgrade PHP and MYSQL all together)

1. STEP
nano /etc/yum.repos.d/CentOS-Base.repo

2. STEP
change the enabled=0 to 1 as follows

[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

4.STEP
yum install php-xml

5.STEP
yum update httpd* php* mysql*

and restart the server do you guys think I will face any problems.

If I am only upgrading the php to latest I am planning on doing

1.STEP
I will do the 2.STEP above

2.STEP
wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh
yum install php-xml php-pdo
yum install php-pear
mv /etc/php.ini.rpmnew /etc/php.ini

and reboot

View Replies!   View Related
PHP 4.3.9 MYSQL 4.1.20 UPGRADE On CENTOS 4 With Plesk 8
I am planning on upgrading to php 5. I really don't need to upgrade to mysql 5 but do you guys think I will face problems with PHP 5.2.9 and Mysql 4.1.20 working together...

I am planning on doing the upgrade like this (if I decide to upgrade PHP and MYSQL all together)

1. STEP
nano /etc/yum.repos.d/CentOS-Base.repo

2. STEP
change the enabled=0 to 1 as follows

[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=[url]
release=$releasever&arch=$basearch&repo=centosplus
#baseurl=[url]
gpgcheck=1
enabled=1
gpgkey=[url]
priority=2
protect=1

4.STEP
yum install php-xml

5.STEP
yum update httpd* php* mysql*

and restart the server do you guys think I will face any problems.

If I am only upgrading the php to latest I am planning on doing

1.STEP
I will do the 2.STEP above

2.STEP
wget -q -O - [url]
yum install php-xml php-pdo
yum install php-pear
mv /etc/php.ini.rpmnew /etc/php.ini

and reboot

View Replies!   View Related
Just Broke My Box..upgrading PHP5/Apache On Plesk
I just ran a simple yum update php on the server, because I need to be running 5.2 instead of 5.1.6

The update went smoothly, so I restarted httpd, and all hell broke loose. Apache can't start because of a whole lot of missing modules. So I commented out every single LoadModule line to see if that would get it to start, and it started complaining about the configuration file of some other software being incorrect (because that configuration file pointed to some module that no longer exists)

At one point I was able to get apache to start, I believe by copying my old configuration file to httpd.conf and then commenting out some lines that it was complaining about. Apache started, but no pages were loading.

So right now, basically, I've got no web service running at all on the server. I really didn't expect all of these problems for a simple PHP update, but obviously I was mistaken.

Is it worth trying to fix this myself (intermediate linux user here) or would it just be easier to hire someone to come in and do it for me?

View Replies!   View Related
Multiple Domains On A Dedicated Server, Plesk, Users And Apache
In my old server (VPS) I had my dir structure as:

sitea.com was pointing to
/home/me/public_html/sitea

siteb.com was pointing to
/home/me/public_html/siteb

On my new server, I have root permissions and used Plesk to create two domains sitea.com and siteb.com . Now plesk asks for a user to be created for each domain, so created usera and userb for sitea and siteb respectively.

Now as root on my server I created the dir /home/me/ and untarred the whole backup from old server to new server and I have dirs :

/home/me/public_html/sitea and /home/me/public_html/siteb

In apache configuration in file:
httpd.include_sitea under
dir /var/www/vhosts/sitea.com/conf/httpd.include

I changed the document root to /home/me/public_html/sitea

So I thought I am all set. But it does not work. When I try sitea.com in the browser it works but for all subdirs, for eg sitea.com/images it says Access denied.

This is because the dirs I created are owned by root.

So the owner of /home/me/public_html/sitea needs to be usera for this to work ?

Again for siteb to work I need to change the owner of /home/me/public_html/siteb to userb ?

This will be painful ? At least I should be able to change the owner of /home/me/public_html/ to one owner and ensure all sites under that work fine. How do I do that ?

I think the problem is clear by now. Its that I want all my sites to work off from .../public_html/ sub dirs.

View Replies!   View Related
Upgrading Php & MySQL On A Plesk Win2K3 Server
I have a Win2003 dedicated server (with The Planet) that i use to host a large IPB forum site.

I got it about 3yrs ago and as I was a complete newbie to server management I got Plesk CP installed so that it would take care of all the SQL, PHP and mail installation and setup in one easy go.

I've since found Plesk for Windows to be a complete waste of space.. but it's still on there and has never been upgraded. I don't actually use it as a CP.

Similarly PHP and mySQL have never been upgraded.

Now I've got to the stage where, to upgrade the IPB forum software, I need to upgrade PHP and mySQL.. but looking at the installation, they seem to be embedded in the Plesk installation. They're inside the SWSoft/Plesk/ folders and none of the ini or config files appear to be in the places you'd expect them to be.

My question -

Would these upgrades be simple?? A case of just running an update package?? Or is the fact that PHP/mySQL are embedded in Plesk mean that it'll all mess up?

I'm worried that a failed upgrade will knacker the forum, which is why I've delayed for so long.

View Replies!   View Related
Cheap Reliable Server That Can Run PHP/MySQL With Plesk
I currently have a decent server that runs around 10 websites, but 1 of those sites contributes around 99% of the total traffic. This large site is being moved onto a new server, leaving the remaining 9 sites rattling around on this big (and expensive!) server.

So, I am now looking for a smaller server to handle the other smaller sites. They get minimal traffic - around 5k uniques a day.

View Replies!   View Related
Plesk For IIS7 Not Allowsing Access To Nuke Evolution Admin.php
having an odd issue with a nuke evolution install

We have a windows 2008 server x64 running plesk 8.6. We created a user with complete access and under that user we created a nuke evolution website. Install appears flawless. We can even continue with admin configuration within nuke with admin.php.

However once you log out you are unable to log back in to admin.php, you get a 404 Not found error. I've checked out the permissions through plesk but they appear to be ok,

View Replies!   View Related
Php 4/5 And Apache 2
I would like to compile apache 2.2 with php 4.4.8 and fastcgi, plus phpsuexec support.

Is this a stable option or not?

I would also like to do the same, but with php 5 as well simultaneously on another server.

My question is how would a clients script know what to use, php4 or php5 on the same box?

Also, when is MPM Prefork recommended?

View Replies!   View Related
PHP+Apache
Perhaps one of you could enlighten me as to what I've done wrong.

When I try to access the server [url]or [url] it downloads the source to index.php as x-httpd-php. This should not happen.

When I try to access the server [url] or [url]it executes the script and works fine.

View Replies!   View Related
PHP In Apache Mode
I currently have one server running PHP in suPHP mode. One of my friend told me that if i change the PHP to Apache Mode, this would decrease my server load a lot and thus give more performance.

Anyone can tell me what mean changing PHP to Apache mode? Is that something i can do from WHM? Will this affect the domains currently hosted on my server?

View Replies!   View Related
After Reinstalling Apache And PHP What Else?
I had to reinstall Apache and PHP because something went corrupt with them on the server.

After I sucessfully reinstalled, a lot of bugs and SQL/PHP errors starting showing up server-wide.

So I am wondering, after the reinstall, what else is needed to be done? Is my past configuration lost? Modules/addons need to be reinstalled and configured as well?

View Replies!   View Related
Hardening PHP And Apache
Does any one know of any good articles/tutorials on how to harden PHP and Apache on a cPanel VPS?

View Replies!   View Related
(mysql/php/apache)
I recently have got a VPS and it needs optimizing. Please would someone look at my specs and help me set some good values for a website that runs a fairly small forum.

Plesk 8.1.1
Guaranteed RAM 384MB
Maximum RAM 768MB
RedHat Enterprise 4 AS
MySQL 4
PHP 4
Apache2

my.cnf

Code:
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

skip-bdb

set-variable = innodb_buffer_pool_size=2M
set-variable = innodb_additional_mem_pool_size=500K
set-variable = innodb_log_buffer_size=500K
set-variable = innodb_thread_concurrency=2
[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
skip-bdb

set-variable = innodb_buffer_pool_size=2M
set-variable = innodb_additional_mem_pool_size=500K
set-variable = innodb_log_buffer_size=500K
set-variable = innodb_thread_concurrency=2
httpd.conf

Code:
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers 2
MinSpareServers 1
MaxSpareServers 5
ServerLimit 10
MaxClients 10
MaxRequestsPerChild 4000
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 10
MinSpareThreads 1
MaxSpareThreads 4
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

Listen 80

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so

Include conf.d/*.conf

User apache
Group apache

ServerAdmin root@localhost

UseCanonicalName Off

DocumentRoot "/var/www/html"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

View Replies!   View Related
Apache/php Compile
when we compile apache, why do we need to have the following option?

'./configure' '--with-apxs=/usr/local/apache/bin/apxs

View Replies!   View Related
Apache 2 With PHP 5.2.x Recommended
I bought a new Forum Script but I cannot install it on my GoDaddy web hosting because my script has two Requirements for installing, listed below:

1- Web server with PHP 5-support
2- Apache 2 with PHP 5.2.x-module recommended

My question is, if you know any web hosting that support those two things?

View Replies!   View Related
Adding IMAP To Apache/PHP
I installed Fedora Core 4 from the DVD included with the "Run Your Own Web Server" book. Everything went great.

Now I need to add IMAP to PHP. This has proved very difficult, as it seems that the sources are not provided. I downloaded the latest Apache and PHP and tried to build with the same configuration used to build the ones that came with the book. (Apache went fine - the module inclusions are done through the configuration files. PHP is not going well at all - I grabbed the ./configure options from a phpinfo() call, and it just barfed all over the place.)

Simple question: is there an easy way to get the IMAP into PHP without going through the recompilation?

Simple answer: Install the PHP-IMAP RPM. I sure made this a lot harder than it need to be.

View Replies!   View Related
Php -v Keep Showing 4.4.7 Even After I Recompile Apache As 5.0.4
php -v keep showing 4.4.7 even after i recompile apache as 5.0.4 via WHM > Apache Update. Any ideas how to fix this?

I am on the following server:

WHM 11.2.0 cPanel 11.11.0-S16999
CENTOS Enterprise 5 x86_64 - WHM X v3.1.0

./configure [@php-5.0.4]...(--enable-pic --with-libdir=lib64 --prefix=/usr --with-xml --with-mm --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-exif --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --enable-magic-quotes --with-mm --with-mysqli --with-mysql=/usr --with-snmp --enable-ucd-snmp-hack --with-openssl --enable-discard-path --with-pear --with-pspell --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --enable-wddx --with-xmlrpc --with-zip --with-zlib).... . . . . . . . . . . . . Done

configure: error: libXpm.(a|so) not found.

make [@php-5.0.4]...(-j 8 clean).... Done

make [@php-5.0.4]...(-j 8).... Done

make [@php-5.0.4]...(install).... Done

initfpsuexec: using apache 1.x support
PHP version file has been updated to 4.4.7
Adding cPanel default aliases ...disabled scgi-bin since suexec is installed
Done
Executing /scripts/postbuildapache (if exists)...Done
Configuring perl magic....Off
Configuring php-pear magic....Off
Configuring ruby magic....Off
Configuring php-pecl magic....Off
/etc/rc.d/init.d/httpd start: httpd started
initfpsuexec: using apache 1.x support

Attempting to restart httpd

Waiting for httpd to restart...

httpd started ok

View Replies!   View Related
Apache And Lighttpd, Both Use Same Php.ini
my php.ini had some changes (/etc/php.ini). Today i have switch from apache to lighttpd, do i need to edit another php.ini file ? Apache and lighttpd use the same php.ini ( /etc/php.ini)?

View Replies!   View Related
Enabling Php By Default In Apache
When I create a website in apache I have to enable php on it manually, Is there a way that I enable php by default on root of apache?

View Replies!   View Related
Apache 2.2, PHP 5, SuPHP, Forcetype
Forcetype does not appear to run correctly with Apache 2.2 and SuPHP. Most information suggests changing

ForceType application/x-httpd-php

To:

ForceType x-httpd-php

This does not work for me and php code is being displayed as text instead of being parsed by apache.

View Replies!   View Related
Apache Not Recognizing My .php Files
Yesterday I was told by my hosting provider that my machine was at kernel panic, so they restarted it and I restarted my webserver (Apache).

I created a sub folder as I wanted to install a PHP script, so I created the folder using FTP and uploaded all of the script files.

The problem is, when I now visit that URL, my browser is asking me to download the .php file instead of the webserver executing it:

[url]

My web host said this:

it sounds like you aren't loading your php module library in your apache.conf and/or not associating the .php extension.

View Replies!   View Related
FastCGI- (apache 2.2, Php 5.1, Suexec)
I have just switched from mod_php to fastcgi + suexec, but now trying to use the ab command times out :

ab -n 10000 -c 100 [url]
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, [url]
Copyright 2006 The Apache Software Foundation, [url]
Benchmarking www.example.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
apr_poll: The timeout specified has expired (70007)
Total of 7422 requests completed

Then I get a bunch of emails from LFD ....

View Replies!   View Related
Shared Hosting With PHP 5 As Apache
This is just curiosity at this point, but I might be looking for a shared host that has PHP 5 as an Apache module at some point. I'm desperately in need of an upgrade for my VPS, but I want to take it as slow as I can and do thorough testing on my existing sites before upgrading the whole shebang.

I'm sure that nobody's running it as a module on shared hosting these days, due to the potential problems therein, but I just wanted to check to see if anyone had heard of such a thing that might be stable for a couple months' work with almost zero traffic.

View Replies!   View Related
Session Clustering With Apache/PHP
Is there any alternative to ZendPlatform's session clustering? ZendPlatform seems to be very easy to manage.

View Replies!   View Related
Apache Pipe To PHP Script
ive read that apache can pipe log files into a PHP script. ive tried it and its not working.

ive tried 2 ways, one pipes to the script file (which says to load with PHP.exe on the top line). the other way pipes to PHP.exe and tells it to load the script.

i put a simple bit in my script to create a new file just to check if it worked and it looks like the script is never being run yet i dont get any errors from apache.

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved