• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

httpd.conf Domain/subdomain

GenXRoad

Basic Pleskian
hello, i have an Problem,

my httpd.conf Looks like thise:

Code:
 <IfModule mod_php4.c>
 php_admin_flag engine on

 # General settings
 php_admin_value include_path ".:/usr/share/php:/usr/share/pear"
 php_admin_value session.save_path "/var/lib/php5"
 php_admin_value open_basedir "/var/www/vhosts/netsigna.de/:/tmp/"
 php_admin_value error_reporting 22519
 php_admin_flag display_errors off
 php_admin_flag log_errors on
 php_admin_flag short_open_tag on
 # Performance settings
 php_admin_value memory_limit 128M
 php_admin_value max_execution_time 120
 php_admin_value max_input_time 120
 php_admin_value post_max_size 128M
 php_admin_value upload_max_filesize 128M
 # Additional directives

 </IfModule>

 <IfModule mod_php5.c>
 php_admin_flag engine on

 # General settings
 php_admin_value include_path ".:/usr/share/php:/usr/share/pear"
 php_admin_value session.save_path "/var/lib/php5"
 php_admin_value open_basedir "/var/www/vhosts/***.de/:/tmp/"
 php_admin_value error_reporting 22519
 php_admin_flag display_errors off
 php_admin_flag log_errors on
 php_admin_flag short_open_tag on
 # Performance settings
 php_admin_value memory_limit 128M
 php_admin_value max_execution_time 120
 php_admin_value max_input_time 120
 php_admin_value post_max_size 128M
 php_admin_value upload_max_filesize 128M
 # Additional directives

 </IfModule>

how i can remove php_admin_value include_path, because owncloud will give me 500 error with this code, which template i Need to Change? i'm running Debian 7 with Plesk 12.1.24

on an other Server with openSuSE 13.1 this part of an owncloud httpd.conf Looks like this:

Code:
 <IfModule mod_php5.c>
 php_admin_flag engine on

 # General settings
 php_admin_value open_basedir "/srv/www/vhosts/****.eu/:/tmp/"
 # Performance settings
 # Additional directives

 </IfModule>

i found: /opt/psa/admin/conf/templates/Default/Service/php.php but it's Content will me not let see how it will be Need to Change
 
Both, the include_path and the open_basedir, can be set via Plesk Panel in service packages, add-ons for service packages and also per VHost.
Don't edit something manually via command line.
 
thank u for your replay, but my line must look lite the second code, how can i realise this?

currently i added an # before the include_path this line i Need to "delete" with the templates for Apache/php so that this line won't get added again to my configs... but with the php.php template, i don't know how to make it work for me
 
You can configure all via the Plesk-Panel - no need to make any changes / additions manually.
I'm running several owncloud installations on my servers without any problems.
 
on my Debian Server it wont run with this include_path it will only give many many Errors about incorrent include_path... can u post your httpd.conf mod_php4.c and mod php5.c section ?
 
Im running Owncloud with PHP v5.5 provided by Plesk via mod_fcgid - have a look at the screenshots.
 

Attachments

  • hosting_settings.png
    hosting_settings.png
    6.4 KB · Views: 5
  • include_path.png
    include_path.png
    4.8 KB · Views: 5
  • open_basedir.png
    open_basedir.png
    6.9 KB · Views: 5
  • additional_settings.png
    additional_settings.png
    33.6 KB · Views: 5
php-fpm is no Option because php-fpm is not running like in other trhread posted, ony Apache mod is working on my server
 
Code:
.:/usr/share/php:/usr/share/pear
this is the Minimum required include_path, wit include path cleared or with . i will only get error generatin configigurations...
 
Why should an additional path in include_path generate errors? It would not be a limit in any way. I think your installation-error must have other reasons.
 
when i add an # to the include_path in httpd.conf owncloud runs great, if i Change the include_path within plesk to . or delete the Input, the i'm not able to generate new config files

when i delete the # in httpd.conf the i get Errors about include_path i Need to add every path in 3rdpartylibs/apps to get it run, but this is very to much, i Need to add every path to an app.php...
 
what i will is an config template which removes every line in httpd.conf so that it Looks like

Code:
<IfModule mod_php5.c>
php_admin_flag engine on

# General settings
php_admin_value open_basedir "/srv/www/vhosts/****.eu/:/tmp/"
# Performance settings
# Additional directives

</IfModule>
 
What about your error logs with the default include_path? Something interesting in there?
As I wrote above - I have several owncloud installations (7.x & 8.x) running fine with the default
include_path as shown in the screenshot above. Same configuration on all servers.
 
Nothing in the error log only include_path errors when in run default config on apache.

Also when i add every include_path it won't work because the httpd.conf line, this line won't get overwriten... When i add an new path to include_path and then inrestart everything and look in phpinfo there will be only the default 2 include path in there...

Since i changed to debian only have trouble with plesk and some webpages
 
Back
Top