You are not logged in.

#1 2008-01-11 12:04:26

_alexmyself
Member
From: france
Registered: 2005-09-18
Posts: 89

[ /srv/www ] apache, php, phpmyadmin, maybe others..

hello,

i have probleme with phpmyadmin
few months ago phpmyadmin was installed in /home/httpd/html/phpmyadmin
but now it is installed in /srv/www/phpmyadmin and so don't run anymore

i've found an old thread about /srv here: http://bbs.archlinux.org/viewtopic.php?id=27986

to make myadmin work i've cp it to old dir home/httpd/html/phpmyadmin, it works
but next upgrade will broke that

it is possible to add the /srv/www dir to the php.ini
but for apache the conf is: DocumentRoot "/home/httpd/html"
symbolic links are supported but could this help ?

oh and sorry for my language..i try..  smile

Offline

#2 2008-01-11 21:05:50

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Erm,  I'm not sure why this was never complete. Would you mind adding a bug to the bug tracker regarding /srv/www ?

Offline

#3 2008-01-13 02:43:44

_alexmyself
Member
From: france
Registered: 2005-09-18
Posts: 89

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

done: http://bugs.archlinux.org/task/9182?str … name=&type[]=&sev[]=&pri[]=&due[]=&reported[]=&cat[]=&status[]=open&percent[]=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=

Offline

#4 2008-01-13 03:28:07

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Offline

#5 2008-01-13 15:07:13

_alexmyself
Member
From: france
Registered: 2005-09-18
Posts: 89

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

oups..  big_smile

Offline

#6 2008-01-19 07:35:15

bolero
Member
Registered: 2003-10-05
Posts: 60

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

*sigh* this bug messed me up bad. I was very confused as to what was going on with phpmyadmin.. the dir /srv. Some weird things.

-Bolero

Offline

#7 2008-01-20 23:35:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

How can it "mess you up bad"? The directory is configurable via a config file like anything else. It just so happens that the default config points elsewhere. Just change it.

Offline

#8 2008-01-21 11:39:35

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Will Apache and other server software be moved to /srv too ?


Quis custodiet ipsos custodiet?

Offline

#9 2008-01-22 00:28:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

T-u-N-i-X wrote:

Will Apache and other server software be moved to /srv too ?

The software will not. It is *JUST* a configuration variable that anyone can change at any time. I believe apache uses "DocumentRoot" for this purpose

Offline

#10 2008-01-22 14:12:02

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Yeah I know... But will the data structure in /home/httpd/ be moved to /srv/www ?


Quis custodiet ipsos custodiet?

Offline

#11 2008-01-22 14:49:08

quad3d@work
Member
From: Austin, TX
Registered: 2006-12-29
Posts: 81
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

I installed an Arch64 box about a month ago and phpmyadmin was sitting as /home/httpd/html/phpMyAdmin. Did a -Syu this morning and was moved to /srv/www/phpMyAdmin. No biggie, fixed my webserver config files.

Last edited by quad3d@work (2008-01-22 14:54:36)

Offline

#12 2008-01-30 14:29:56

Aerodyne
Member
Registered: 2005-07-25
Posts: 43

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Sorry I have the latest Apache, PHP, MySQL & phpMyAdmin installed...

How do I set it in order to access phpMyAdmin correctly, that is what settings need to be set in the webserver config file in order to use phpMyAdmin at /srv/www/phpMyAdmin?


TIA

Offline

#13 2008-01-30 22:02:31

quad3d@work
Member
From: Austin, TX
Registered: 2006-12-29
Posts: 81
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Aerodyne wrote:

Sorry I have the latest Apache, PHP, MySQL & phpMyAdmin installed...

How do I set it in order to access phpMyAdmin correctly, that is what settings need to be set in the webserver config file in order to use phpMyAdmin at /srv/www/phpMyAdmin?


TIA

ln -s /srv/www/PhpMyadmin /home/httpd/html/phpmyadmin

(Or use Apache redirect)

[terii@monkey1 /etc/php]$ cat php.ini|grep ^open_base
open_basedir = /home/:/tmp/:/usr/share/pear/:/srv/www/:/var/lib/squirrelmail/

/etc/rc.d/httpd restart

Last edited by quad3d@work (2008-01-30 22:04:38)

Offline

#14 2008-02-03 12:38:15

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

I have just installed phpmyadmin and mysql. I see that phpmyadmin created the /srv/www folder. What to do now? Only to copy the phpmyadmin to /home/httpd/html? Or what else?

Thanks


~k3rn31

Offline

#15 2008-02-03 20:55:37

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

smile Why copying it to somewhere else while you're forced not to do so ? You just need so set your CONF files according to the new location of phpMyAdmin.. See Wiki and Apache's documentation for that.. It's easy..


Quis custodiet ipsos custodiet?

Offline

#16 2008-02-04 07:18:25

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

T-u-N-i-X wrote:

smile Why copying it to somewhere else while you're forced not to do so ? You just need so set your CONF files according to the new location of phpMyAdmin.. See Wiki and Apache's documentation for that.. It's easy..

But If I have all my web files to httpd/html? What I must do? Can I add 2 web dirs?


~k3rn31

Offline

#17 2008-02-04 10:50:23

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Sure.. You can configure it however you like... It's amazing that you have your web sites that way.. In my configuration, every site is in its home directory.. If there is a site like johndoe.mydomain.com, then it would stay in /home/johndoe/public_html ... None of them have shell access and they can't see other people's home directories... And I don't have to move them to another location... It's very easy to configure this with Arch.. (because that it's almost set and you just remove the # from the beginning of some lines)

I just had some files and directories that Apache installed (like images, error pages, etc..) and I moved them to /srv/www.. I also moved phpsysinfo which was installed in /home/httpd/.. Then I changed the parts that were written /home/httpd/ to /srv/www... It works like a charm smile


Quis custodiet ipsos custodiet?

Offline

#18 2008-02-04 20:13:27

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Yes. But I don't have and I will not have any other accounts or users. It's home pc....

Thanks by the way.


~k3rn31

Offline

#19 2008-03-14 23:36:23

axel
Member
Registered: 2007-12-10
Posts: 77

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

I installed phpmyadmin through pacman and did ln -s /srv/www/PhpMyadmin /home/httpd/html/phpmyadmin However when I try to open http://localhost/phpmyadmin I get this error:

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
Sat Mar 15 01:31:26 2008
Apache

Any ideas?

Offline

#20 2008-03-19 14:29:37

johnvoisey
Member
Registered: 2006-11-04
Posts: 28

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Hi, this is driving me nuts too.

I am PRETTY well versed in setting up aliases and the like, but the problem I have is that /srv is owned by root and /home/httpd.... is owned by nobody. Yes I tried a great many things including all the suggestions here but all came to naught.

THEN I lost all patience and did an mv /srv/www/phpMyAdmin /home/httpd (note i did NOT put it in /home/httpd/html, don't want any common as mucker falling over it do we ...)

THEN RENAME IT from phpMyAdmin to PhpMyAdmin (leading character Uppercase). Yes it matters. God knows why

THEN into /etc/httpd/conf/extra/httpd-ssl and do THIS (yes I'm running it encrypted and yes I have forced a basic auth passwd. Very stone age I know ...

    Alias /PhpMyAdmin/ "/home/httpd/PhpMyAdmin/"
    Alias /PhpMyAdmin "/home/httpd/PhpMyAdmin"

    <Directory "/home/httpd/PhpMyAdmin">
        AuthType Basic
        AuthName "Staff Area"
        AuthUserFile /etc/httpd/conf/htpasswd
        require valid-user
        Options Indexes FollowSymLinks Includes
        AllowOverride None
        DirectoryIndex index.php
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Now with THAT lot at the bottom of my ssl-enabling config file I can FINALLY go to https://localhost/PhpMyAdmin/ and be rewarded with ...


.....phpMyAdmim 2.11.4  The configuration file now needs a secret passphrase.

ARRGGHHHHHH

Last edited by johnvoisey (2008-03-19 14:31:06)

Offline

#21 2008-03-20 10:13:10

axel
Member
Registered: 2007-12-10
Posts: 77

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Just to know I removed the phpmyadmin package installed from pacman and download the orinigal tar.gz from sourceforge. Extracted it into /home/http/html (ok you can try sth different) and the wrote a config.inc.php based on phpmyadmin's wiki. It works just fine like that.

Offline

#22 2009-04-26 21:05:30

bostonvaulter
Member
Registered: 2008-07-17
Posts: 36

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

I just wanted to add that I was having trouble accessing my phpmyadmin folder. For me I am not able to access it by editing the .htaccess file in the phpmyadmin folder which blocks ALL access to the folder.

Offline

#23 2009-04-28 17:07:20

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

bostonvaulter wrote:

I just wanted to add that I was having trouble accessing my phpmyadmin folder. For me I am not able to access it by editing the .htaccess file in the phpmyadmin folder which blocks ALL access to the folder.

If I understand correctly, you had to change the installed .htaccess-file to get access to the software.

I guess that is part of the default security.

Zl.

Offline

#24 2009-04-29 00:10:35

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

Keep an eye out for zombies...

Offline

#25 2009-04-29 02:41:25

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [ /srv/www ] apache, php, phpmyadmin, maybe others..

We'll go ahead and close this one, seeing as it is about a year old. Feel free to link to it if you feel it is relevant, and please start a new thread.
Thanks.

Offline

Board footer

Powered by FluxBB