Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174
Rep:
You probably installed php5 but didn't deinstall php4.
As running both in parallel is basically possible, you should explicitly deinstall php4 and all PHP 4 related packages (including the Apache module).
Then restart Apache.
You don't necessarily need to uninstall PHP4, you most likely have Apache loading the php4 module instead of version 5. Check your httpd.conf configurations.
You don't necessarily need to uninstall PHP4, you most likely have Apache loading the php4 module instead of version 5. Check your httpd.conf configurations.
Since I'm using Plesk I think I found the correct file.
Now there are a Few Places in the Files Like below
Code:
<Directory "/var/www/vhosts">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory "/usr/lib/mailman">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
Code:
<VirtualHost \
xxxxxxxxxxxx \
xxxxxxxxxxxx \
xxxxxxxxxxxx \
>
ServerName default
UseCanonicalName Off
DocumentRoot /var/www/vhosts/default/htdocs
ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory "/var/www/vhosts/default/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/vhosts/default/htdocs>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
</IfModule>
</Directory>
</VirtualHost>
Code:
<VirtualHost \
xxxxxxxxxxxx \
xxxxxxxxxxxx \
xxxxxxxxxxxx \
DocumentRoot /usr/share/psa-horde/
Alias /horde/ /usr/share/psa-horde/
Alias /imp/ /usr/share/psa-horde/imp/
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
<Directory /usr/share/psa-horde>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc:/usr/share/psa-pear"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-pear:."
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc:/usr/share/psa-pear"
php_admin_value include_path "/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:."
</IfModule>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
From what i see Both php4 $ php5 are enabled.
And I need to comment out PHP4 ??
That page covers Plesk, and updating to PHP5 from PHP4.
Also, we all volunteer our time....multiple posts in one day, going "Guys!?!?!?" isn't very polite, and sure won't get your question answered any faster.
- There isn't much info on what i seek on Google, or wouldn't have asked here
- It was 4 days, and i didn't mean it to be harsh, i was logging off and said that, plus in 10 mins a topic @ LQ and goto 2nd page.. meaning forgotten..
- The link you gave:
it comes back to what i had asked in the post above my last one.
Quote:
Apache Run-time Config (httpd.conf)
You only need to make two small changes. I'm using "vi" to edit the config files. You can use the editor of your choice.
Code:
# vi /etc/httpd/conf.d
Change the top line of "conf.d" so that it loads the new PHP5 module instead of the old PHP4 module i.e. "LoadModule php5_module modules/libphp5.so"
Code:
# vi /etc/httpd/conf/httpd.conf
At the foot of the file, comment out the line that reads "LoadModule php5_module /usr/lib/httpd/modules/libphp5.so". This was added by the PHP5 install but it's not needed as it's already in "conf.d".
Do I need to remove all the libphp4.so from the httpd.conf ...
oh and.. i did meention in Op its a Debian Etch........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.