• 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.

base_dir error when running a PHP

Man... how many post OT now?

I searched! I spend hours reading through the forum and learning stuff. If you don't believe me i don't make you :rolleyes:

I think from now on i send tickets to support whenever i have a question. It's better than getting shouted here. Yes it does matter! Ever seen a supporter doing that??

If it bothers you so much why do you reply? Why do you even read? You got what you wanted. One less user on this forum and one more sending tickets to support. :mad:
 
Originally posted by Wythrol
You drink a lot dont you.

Fervent is a good word, the word you are still grubbing around for is fervourant.

I appreciate that there may be some confussion as to the correct spelling as you are in the USA and I am in the UK. However, you are still wrong. Your grammar is also shocking.

You have yet to make one logical statement in the 2 posts I;ve had to uncode from you.

I think you are saying that because you post losts of **** you should be taken more seriously than someone that doesnt resort to letting his belly rumble.

Again, you try to insult me, and make another misspelling. Ironic isn't it? You would think if you were going to nitpick my spelling, you would at least TRY to get it correct yourself. Good job monkey boy! :D

http://dictionary.reference.com/search?q=fervourant
http://dictionary.reference.com/search?q=confussion
 
Originally posted by Whistler
For starters, it's not about shouting anybody down... It's about the fact that why should I search for the answer to your question, while you could have entered the same search yourself at the first place?

There's a lot of very expirenced users reading and helping out for free every single day in this forum. I really apreaciate this help and their many hints and tweaking tricks etc. Unfortunately I everyday (I read this supportforum also on a daily basis) - see that more and more threads (often in a row) releates to the same question and it's most sure, that people REALLY!!!! diden't bother to at least look at the last 5-10 threads before posting.

It's filling this forum with spam, taking a lot of everybodys time, and as also discussed in http://forum.sw-soft.com/showthread.php?s=&threadid=19520 we tend to spend more time learning people how to use their OS, which by all means - I really think is not within the scope of this supportforum.

It's so easy to use the search function, I do it allmost every time I answer a question. And as most people reading here on a frequently basis - hopefully acknowlege, I usually always provide a link to previeous answered question, the manual or some external page when I answer a question.

I gladly help others - again: free of any charge - as I know - and really apreciate - the others here spending much time helping me; and I really think it's sh*tting on those people when you at least don't use time looking for an answer to your question, but they end up using more time answering and creating a solution to your problem.

:(

Exactly, there is a time and a place for everything. This is not a forum where you are supposed to discuss HOW you administrate your server, rather how you administrate or fix Plesk. I admit, I have become very rude on these forums, but it is sheerly out of frustration. The audacity that flows through these forums where people expect something from nothing is ridiculous. I for one make it a point to help someone out whenever I can, but helping is a two way street...we need to know that the person asking has at least a decent foundation in the subject of OS administration...even a decent foundation on how Plesk works. The problem is, people use these forums as a replacement for the manual...things just don't work that way.

As for my grammar, it was 3:30 in the morning, give me a break.
 
I think from now on i send tickets to support whenever i have a question. It's better than getting shouted here. Yes it does matter! Ever seen a supporter doing that??

Yes, I've actually seen a lot of things, being an experienced 1st, 2nd and 3rd level supporter and systemdeveloper for over a decade... And if you see this as shouting, you'll get amazed when you ask more questions around the internet...

I'm not shouting at you. I'm having a calm discussion, writing my opinion and trying to keep this on a sober level where people can contribute with their opinion if they want.

If I should be shouting and trying to insult you, I would write it in words that would be in a complet different level. I don't try to insult you or imply that you haven't spend hours to solve your problem searching out this forum. I just write: if you did that and it diden't solve your problem, I suggest that you learn from this discussion and in the future write more specific about where you stranded trying to resolve your problem, what you have already tried, what lines you've added to a configuration file etc. Things that might help people figure out what you could have done wrong... Thats all...
 
How To - vhost.conf for open_basedir

Try:

1)
Place this information in: /home/httpd/vhost//conf/vhost.conf

<Directory /home/httpd/vhosts/yourdomain.com/httpdocs>
php_admin_value open_basedir none
</Directory>

*IMPORTANT* replace yourdomain.com with your domain dir.

2)
In SSH type: /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=yourdomain.com

3)
To verified, if this command works, vi the /home/httpd/vhost/yourdomain.com/conf/httpd.include
you will see "include /home/.../vhost.conf"

4)
Either restart your apache through shell command or you may restart it from the PLESK web-base.

A Side Note:


This forum is full bad attitude. I'm no Unix admin, just needed to give some direction to a Unix admin not familiar with Plesk.

Try searching for info on websrvmng or vhost.conf and you'll not find much under Plesk 7 Reloaded.

Some of you folks need to take a pill. :(

D
 
Additional Note

Additional Note

if

<Directory /home/httpd/vhosts/yourdomain.com/httpdocs>
php_admin_value open_basedir none
</Directory>

doesn't work for you, try


<Directory /home/httpd/vhosts/yourdomain.com/httpdocs>
php_admin_value open_basedir /
</Directory>

You must restart Apache after each change as well.

D :D
 
Re: Additional Note

Originally posted by nextweb
Additional Note

if

<Directory /home/httpd/vhosts/yourdomain.com/httpdocs>
php_admin_value open_basedir none
</Directory>

doesn't work for you, try


<Directory /home/httpd/vhosts/yourdomain.com/httpdocs>
php_admin_value open_basedir /
</Directory>

You must restart Apache after each change as well.

D :D

I believe the latest version of PHP doesn't like the / set as open_basedir...at least that is what I found. I had it set for many of my sites, then when I upgraded to .10 ... none of htem worked anymore in that configuration.
 
Hey guys and attutudes. I got here with a search, and I'm not a newbie, and I have been around unix for 20 years.

Your instructions do not work.

In particular restaring apache is not doing anything. My httpd.conf file shows the needed include, but the error messages indicate the old path is still in place, and the new path is not being picked up.

The websrvmng comamand exists in /usr/local/psa/admin/sbin and /usr/local/psa/admin/bin, and diff reports the files are different. does it matter which is used?

No attitudes need reply, I'll do more searches... But the attitudes do more to dilute the forum than repeated questions. If you read the forums daily, and are bothered by repeated questions, you may be getting too much caffeine, or be in the wrong line of work. The questions are always repeated over and over, and the correct answers CHANGE over and over. Get over it. Bitching is not the solution, it is the problem. While being bitchy you were issuing incomplete answers, even if they did work they wouldn't be useful.

Thanks nextweb for the first actual answer, I'm just sorry it didn't work for me, but I know what to look for in my next search, so you were still helpful... Kudos!
 
Originally posted by georgew
Hey guys and attutudes. I got here with a search, and I'm not a newbie, and I have been around unix for 20 years.

Your instructions do not work.

In particular restaring apache is not doing anything. My httpd.conf file shows the needed include, but the error messages indicate the old path is still in place, and the new path is not being picked up.

The websrvmng comamand exists in /usr/local/psa/admin/sbin and /usr/local/psa/admin/bin, and diff reports the files are different. does it matter which is used?

No attitudes need reply, I'll do more searches... But the attitudes do more to dilute the forum than repeated questions. If you read the forums daily, and are bothered by repeated questions, you may be getting too much caffeine, or be in the wrong line of work. The questions are always repeated over and over, and the correct answers CHANGE over and over. Get over it. Bitching is not the solution, it is the problem. While being bitchy you were issuing incomplete answers, even if they did work they wouldn't be useful.

Thanks nextweb for the first actual answer, I'm just sorry it didn't work for me, but I know what to look for in my next search, so you were still helpful... Kudos!

You can opine on our attitudes all you want, but the fact of the matter is, nextweb wasn't the first to answer the question, nor the 50th. This has been answered many times prior, regardless of this fact though, ignoring the lack of pragmatism of incessant redundancy...

You need to make sure that you use websrvmng --reconfigure-all , I believe that is the flag, although I could be wrong. Use the one in sbin, although I believe the bin one will work as well, as they are symbolic links.

Once this is done, it will tell the config file to include your vhost.conf...after that start apache. You can manually check that the file has been included just by checking the conf/httpd.conf file, and seeing if the include line is in there.

Hope this helps!
 
In other forums I'm in, when a newbie reposts a well tread question, I post something like "Well, I did a search, and I think this thread covers your question <link>, try doing a search before asking next time, it may save time." That gets the hint across, and reuses the previous answer.

Just too bad the phpbb links are not vBulletin compatable.

As for my problem, the httpd.conf has the include line for the vhost.conf file.

The problem is the directive I am adding is not being picked up by apache. I think it is a problem where the directive needs to be within the <IfModule mod_php4.c></ifModule> stanza, which nextweb didn't mention, but after looking at httpd.conf it is fairly clear what is missing.

It's working now, so thanks for everyone's help!
 
Back
Top