I'm trying to add a basic contact form I got from bootstrapious to my site but when you click send there is some sort of error happening because it never sends. Here is some backstory: I used to use godaddy's plesk hosting but switched to dreamhost about a year ago, I contacted dreamhost support and they said these are some of the errors they are getting [Thu Aug 02 10:05:00 2018] [warn] [client 71.236.128.206] mod_fcgid: stderr: PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/dh_v3jvi3/urbanpioneersmusic.com/handler.php) is not within the allowed path(s): (G:\PleskVhosts\urbanpioneersmusic.com\httpdocs) in Unknown on line 0, referer:  [Thu Aug 02 10:05:00 2018] [warn] [client 71.236.128.206] mod_fcgid: stderr: PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0, referer:  [Thu Aug 02 10:08:50 2018] [warn] [client 71.236.128.206] mod_fcgid: stderr: PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/dh_v3jvi3/urbanpioneersmusic.com/contact.php) is not within the allowed path(s): (G:\PleskVhosts\urbanpioneersmusic.com\httpdocs) in Unknown on line 0 Basically my form is trying to find  G:\PleskVhosts\urbanpioneersmusic.com\httpdocs which isn't there. They said to find that in my code and update it. I cannot find pleckvhosts or httpdocs in any of my code. Besides that, I downloaded this form directly from bootstrapious and uploaded it without making any changes except for the sendto email address. I have also built a few brand new sites from scratch that never had anything to do with plesk and they are doing the same thing. Has anyone ever come across something like this? Any advice is greatly appreciated, this is so frustrating.
122458
limits the files that can be opened by PHP within a directory-tree.  I am storing several class libraries and configuration files outside of my web root directory.  This way the web server does not make them publicly accessible.  However when I try to include them from my application I get an open_basedir restriction error like this:     Warning: realpath()   [function.realpath]: open_basedir   restriction in effect.   File(/var/www/vhosts/domain.tld/zend/application)   is not within the allowed path(s):   (/var/www/vhosts/domain.tld/httpdocs:/tmp)   in   /var/www/vhosts/domain.tld/httpdocs/index.php   on line 5   My web root is here:  /var/www/vhosts/domain.tld/httpdocs   My libraries and configuration directory are here:  /var/www/vhosts/domain.tld/zend   What would be the best workaround to relax the open_basedir restriction so that the the directory tree under the domain folder becomes available to my application?  I have a number of domains that I want to do this with, and I'm also obviously wary of creating security vulnerabilities.  Note: I am using CentOS, Apache, Plesk, and I have root ssh access to the server. And though this doesn't apply to Zend Framework directly, I am using it in this instance.  So here is the inclusion from Zend's bootstrap:  define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../zend/application/')); set_include_path(APPLICATION_PATH . '/../zend/library' . PATH_SEPARATOR . get_include_path());
39455
I've a single host with CentOS 6.3. I manage that host via SSH. The server itself is uname -n: servername.foo.com. On this host I've multiple, unrelated httpd vhosts.  The problm is: when one vhost sends a mail with PHP mail(), the sent mail header contains multiple servername.foo.com traces (Message ID is xyx@servername.foo.com, Received by is servername.foo.com and so on).  The mail are sent by postfix. No other mail services are used on this server.  The question is: how can I sent e-mail from each vhost pretending to be thatVhost.com instead of leaving traces of servername.foo.com in the mail headers?
102106
The problem is a whole load of 404 errors, as reported by Google Webmaster Tools, with pages and queries that have never been there. One of them is viewtopic.php, and I've also noticed a scary number of attempts to check if the site is a WordPress site (wp_admin) and for the cPanel login. I block TRACE already, and the server is equipped with some defense against scanning/hacking. However, this doesn't seem to stop. The referrer is, according to Google Webmaster, totally.me.  I have looked for a solution to stop this, because it isn't certainly good for the poor real actual users, let alone the SEO concerns.  I am using the Perishable Press mini black list (), a standard referrer blocker (for porn, herbal, casino sites), and even some software to protect the site (XSS blocking, SQL injection, etc). The server is using other measures as well, so one would assume that the site is safe (hopefully), but it isn't ending.  Does anybody else have the same problem, or am I the only one seeing this? Is it what I think, i.e., some sort of attack? Is there a way to fix it, or better, prevent this useless resource waste?  EDIT I've never used the question to thank for the answers, and hope this can be done. Thank you all for your insightful replies, which helped me to find my way out of this. I have followed everyone's suggestions and implemented the following:   a honeypot a script that listens to suspect urls in the 404 page and sends me an email with user agent/ip, while returning a standard 404 header a script that rewards legitimate users, in the same 404 custom page,  in case they end up clicking on one of those urls. In less than 24 hours I have been able to isolate some suspect IPs, all listed in Spamhaus. All the IPs logged so far belong to spam VPS hosting companies.   Thank you all again, I would have accepted all answers if I could.
83828
It's got to be somewhere in the phpinfo() dump, but I just don't know where.  Is it supposed to be under the "Additional Modules" section?  Somewhere else?  I'm trying to figure out why some extensions don't appear to be loaded, but I don't even know where I should be looking.
54260
I have referred many links including the following:      -    I tried several ways to POST a new node to a Drupal site, but I have failed. I have created a sample CCK for storing students data with name, age, gender, DOB, and added some list.  I have installed and configured the Services module (D7), and created a service end point at services. As expected, GET is the easiest way to get details of a node in JSON. http://localhost/drupal/services/node simply listed all nodes.  I still can't figure out how to use the POST method.   I would like to search for the students whose name contains john. I tried localhost/drupal/services/node&amp;node[name]=john. I used  POST Man plugin for Chrome without success. I also tried some other ways. I tried adding a new student to the site without success.   Can anyone guide me to make the above work fine?  UPDATE :  I tried adding new nodes of type article . It worked fine. but when i am trying to add nodes of type Department CCK It is showing "s:22:"CSRF validation failed";"  Here are the screen shots  I have gone through the link   I followed session = session_name=session_id but i still get an error.
48647
I just upgraded to 7.25 from 7.19, and now in my Status Report I have a red X on my "Public Files" and "Temporary Files".     See  for information about the   recommended .htaccess file which should be added to the   sites/default/files directory to help protect against arbitrary code   execution.   I go to the address above, but I don't have any user friendly explanation of what to do to fix this. Thanks in advance.  Update: (1/8/14)  The answer below fixes the Public files problem 100%.  It does not fix the Temp files. To fix temp files, I go to admin/config/media/file-system and change the path from /tmp to ../tmp  I will update this if this is fixed in a newer version of drupal, or if there is another fix available. I'm not sure if the ../tmp is the correct solution, but it works.
49665
I followed this tutorial:  but nothing happens.    And when I try to open it this error message appears   So I tried to follow httpd_qgis.conf edition step from  but it gives me the same error.    I think I didn't need that step because I can see "mod_fcgid" in my apache modules directory    What am I doing wrong?
103021
I recently tried to move my Drupal site to a new server using this page: . But now the style doesn't seem be loaded and more importantly I get this error on every page in the site (even on the frontpage):  Warning: file_put_contents(temporary://filef76T9k): failed to open stream: &quot;DrupalTemporaryStreamWrapper::stream_open&quot; call failed in file_unmanaged_save_data() (line 1900 of /Library/Server/Web/Data/Sites/Default/drupal/includes/file.inc). The file could not be created.  Any ideas what this could be about?
114864
I'm writing a CMS application in PHP and one of the requirements is that it must be able to interface with the customer's Exchange server.  I've written up this functionality a few times before and have always used  to do it, but now I'm leaning away from that. I will be running the site on IIS OR Apache (no preference) on Windows server 2008.  A few things I would need to do include adding contacts to a given user's address book, sending emails as a given user and running reports on contacts for a user. All of this is pretty easy to do with WebDAV, but if there is a better way that doesn't require any functionality that is likely to be deprecated any time soon. Any ideas? Update: Justin, I love the idea of using com objects, I just worry about maintaining a 3rd product to make everything work... John, I can write a web service in C# to interface with for these functions and access it with my PHP app, but it's also a little bit out of the way. So far, I'm not 100% convinced that either of these is better than WebDAV... Can anyone show me where I'm being silly?
58410
I'm trying to call drupal_bootstrap from 'temp.php' in a subfolder called 'custom' my code as follow:  chdir('../'); define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);   Once I call the temp.php I get Drupal homepage.   I also tried an explicit physical path but with no use, code as follow:  define('DRUPAL_ROOT', '/var/htdocs/drupal7'); require_once '../includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);   temp.php located under the following folder structure:  - var -- htdocs --- drupal7 ---- custom  ----- temp.php
78863
I'm using the Webform module for Drupal 8. The module confirmation settings for a form are the following:   Page (redirects to new page and displays the confirmation message) Inline (reloads the current page and replaces the webform with the confirmation message.) Message (reloads the current page/form and displays the confirmation message at the top of the page.) URL (redirects to a custom path or URL) URL with message (redirects to a custom path or URL and displays the confirmation message at the top of the page.)   But how am I able to submit a form via AJAX so that the page doesn't reload on submit, but a confirmation message still replaces the form? What did I do wrong?    EDIT:  Here is the solution which works:  First you have to hook the form alter function and set an AJAX callback (as in ):  use \Drupal\Core\Form\FormStateInterface;  function MYTHEME_form_alter(&amp;$form, FormStateInterface $form_state, $form_id) {   if ( isset($form['#webform_id']) &amp;&amp; $form['#webform_id'] == 'MYWEBFORM' )   {     // add an AJAX callback to the form submission     $form['actions']['submit']['#ajax'] = array(       'callback' =&gt; '\Drupal\MYMODULE\Controller\DefaultController::processFormSubmission',       'event' =&gt; 'click',     );   } }   Then in the processFormSubmission function you can process the form (put use \Drupal\Core\Form\FormStateInterface; at the top of your file) like:  // Instantiate an AjaxResponse Object to return. $ajax_response = new \Drupal\Core\Ajax\AjaxResponse();  /* do sth */  // in the DOM: replace the form with the text 'form submitted' $ajax_response-&gt;addCommand(new \Drupal\Core\Ajax\HtmlCommand('#MYFORM', 'form submitted'));  return $ajax_response;
33442
Edit: this has been almost entirely rewritten as I've narrowed down the issue.  I'm using a Vagrant VM to mirror the client's environment as closely as I can. I'm using VirtualBox 4.3 (with Guest Additions 4.3) with Vagrant 1.3.5, and the server is running CentOS 5.9, Apache 2.2.3-83, PHP 5.3.3, and Drupal 7.  When the server first starts the original files in the shared directory, where my application resides, are cached. When I change the file the original file +/- the filesize delta is served, leading to the image corruption I saw before. So additions add NUL characters on the end of the original, and deletions truncate the file. When I view the file using nano the contents are correct; restarting the httpd service makes no difference. I have to restart the VM for the changes to be served correctly.  Before:   // The quick brown fox   Changes:   // The quick brown fox jumps over the lazy dog   Apache serves:   // The quick brown fox\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0   Where exactly does this error lie? With Apache 2.2 or its dependencies, or with VirtualBox and its Guest Additions?
106111
I have already uploaded some files in the free web host I chose and created a database there using phpMyAdmin v2.11.4  Also, I have Googled first this question before posting this here but I don't understand some rules and I need a clarification.  The exact error I get from viewing my uploaded file(index.php) is this:  Warning: mysqli_connect() [function.mysqli-connect]: (HY000/1130): Host '31.170.160.98' is not allowed to connect to this MySQL server in /home/a6400350/public_html/subdomains/index.php on line 7   Domain name of free web host I'm using is   And my php code for connecting to host is:  &lt;?php  $host = "sql10.000webhost.com"; //or "31.170.160.98" $username = "a6400350xxxxxx"; $password = "••••••••";  $con = mysqli_connect($host, $username, $password);  ?&gt;    I also check if the server is down  or it's just me There was also no previlege section in phpMyAdmin page as other suggest   Don't I have any permission to connect programmatically to this host as I am just a free user?  Edit     I'm also thinking of uploading the whole XAMPP in the server so I   could do the things I'm imagining.   Edit 2     Also one more thing, I imported the database by means of .sql file   locally through that server, maybe this has something to do about it?
117826
I'm using Drupal 7.x. I have achieved to make it work without clean URLs.  Investigating, I have understood that I should create a vhost for each drupal site and enable clean URLs with the following code.  if (-e $ REQUEST_FILENAME) {      rewrite ^ / (. *) $ / index.php? q = $ 1 last; }   Alternatively, I could use this code.  location / {          [... ]          error_page 404 = @ drupal;          [... ] }  location @ drupal {          rewrite ^ (. *) $ / index.php? q = $ 1 last; }   However, I've also seen that without creating a vhost can enable clean URLs (like Apache). I tried on both lines in my setup but I do not get a result. When I enable clean URLs it always displays the word Nginx (The localhost).  What is the right way to enable clean URLs?  This is my configuration in /etc/nginx/sites-available/default.  server {         listen   80; ## listen for ipv4; this line is default and implied         listen   [::]:80 default ipv6only=on; ## listen for ipv6          root /usr/share/nginx/www;         index index.php index.html index.htm;          # Make site accessible from http://localhost/         server_name localhost;          location / {                 # First attempt to serve request as file, then                 # as directory, then fall back to index.html                 try_files $uri $uri/ /index.html;                 # Uncomment to enable naxsi on this location                 # include /etc/nginx/naxsi.rules         }          location /doc/ {                 alias /usr/share/doc/;                 autoindex on;                 allow 127.0.0.1;                 deny all;         }          location /images {                 root /usr/share;                 autoindex off;         }         # Only for nginx-naxsi : process denied requests         #location /RequestDenied {                 # For example, return an error code                 #return 418;         #}          #error_page 404 /404.html;          # redirect server error pages to the static page /50x.html         #         error_page 500 502 503 504 /50x.html;         location = /50x.html {                 root /usr/share/nginx/www;         }          #Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000         #         location ~ \.php$ {                 try_files $uri =404;                 #fastcgi_split_path_info ^(.+\.php)(/.+)$;         # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini                  # With php5-cgi alone:                 #fastcgi_pass 127.0.0.1:9000;                 # With php5-fpm:                 fastcgi_pass unix:/tmp/php5-fpm.sock;                 fastcgi_index index.php;                 include fastcgi_params;         }          # deny access to .htaccess files, if Apache's document root         # concurs with nginx's one         #         location ~ /\.ht {                 deny all;         } }   I have not created any vhost on my server; neither do I know how.
53840
I have the following in my httpd.conf file  NameVirtualHost *:80  &lt;IfModule mod_vhost_alias.c&gt;   &lt;VirtualHost *:80&gt;     ServerAlias *     UseCanonicalName Off     LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon     CustomLog /var/log/httpd/access_log vcommon     VirtualDocumentRoot /web-data/vhosts/%0/httpdocs     VirtualScriptAlias  /web-data/vhosts/%0/httpdocs   &lt;/VirtualHost&gt; &lt;/IfModule&gt;   This works great for dynamic hosting. However, I can't figure out how to make https requests work the same way. What do I need to add to this so that https and http for the same domain request get sent to the same folder?
20039
When I type site:example.com(using my domain obviously), I get several link errors showing up in the listing. Typically, they are of the form: /some/fixed/path/admin/unblockUser/11  I am thinking of adding the following line to my robots.txt file:  Disallow: /some/fixed/path/admin/*
108410
I'm trying to install the Guest Additions in VirtualBox 4.04. Host OS is Ubuntu desktop 11.04 64bit, guest OS is Ubuntu server 11.10 64bit.  $ sudo ./VBoxLinuxAdditions.run   After some output this line is printed:  The headers for the current running kernel were not found.   But the headers are installed, at least accordingly to dpkg:  $ dpkg --get-selections | grep linux-headers linux-headers-3.0.0-12            install linux-headers-3.0.0-12-server     install linux-headers-server              install   The running kernel is:  $ uname -a Linux foobar 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 X86_64 GNU/Linux   How do I fix things so that Guest Additions installer is able to find kernel headers?  Update: added full output.  The headers for the current running kernel were not found. If the module compilation fails then this could be the reason.  Building the main Guest Additions module ...done. Building the shared folder support module ...fail! (Look at /var/log/vboxadd-install.log to find out what went wrong) Installing the Window System drivers ...fails! (Could not find the X.Org or XFree86 Window System).   I don't care for fail #2, because that's a server and I don't need X server. But I need shared folder support.  Some further detail:  $ tail /val/log/vboxadd-install.log .......... cc1: some warnings being treated as errors make[2]: *** [/tmp/vbox.0/vfsmod.o] Error 1 make[1]: *** [_module_/tmp/vbox.0] Error 2 make: *** [vboxsf] Error 2