Hi Steve,
I have a test apache install with several Virtual hosts, I am trying to install myPhpAdmin in a directory off of /var/www but I can not get it to be recognized (404 error)
the virtual host contents are in directories off of /var/www (i.e. /var/www/www.myurl.com and /var/www/phpMyAdmin-3.4.3.1-english
The server is working correctly and serving the appropriate domains, I just can not get www.myurl.com/phpMyAdmin-3.4.3.1-english to work......
Any help would be great......
phpMyAdmin tarball includes both documentation and setup script, however this
online version includes only documentation, you have to use setup script on
your phpMyAdmin installation. So please navigate to
http://your_server/path_to_phpMyAdmin/setup/
to configure your
copy of phpMyAdmin.
Alternatively you can try setup script on our demo server.
::end excerpt::<?php $cfg['blowfish_secret'] = 'ba17c1ec07d65003'; // use here a value of your choice $i=0; $i++; $cfg['Servers'][$i]['auth_type'] = 'cookie'; ?>Or, if you prefer to not be prompted every time you log in:
<?php $i=0; $i++; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'cbb74bc'; // use here your password $cfg['Servers'][$i]['auth_type'] = 'config'; ?>For a full explanation of possible configuration values, see the Configuration Section of this document.
cd phpMyAdmin mkdir config # create directory for saving chmod o+rw config # give it world writable permissionsAnd to edit an existing configuration, copy it over first:
cp config.inc.php config/ # copy current configuration for editing chmod o+w config/config.inc.php # give it world writable permissionsOn other platforms, simply create the folder and ensure that your web server has read and write access to it. FAQ 1.26 can help with this.
mv config/config.inc.php . # move file to current directory chmod o-rw config.inc.php # remove world read and write permissions rm -rf config # remove not needed directoryNow the file is ready to be used. You can choose to review or edit the file with your favorite editor, if you prefer to set some advanced options which the setup script does not provide.
robots.txt
file in root of
your webserver or limit access by web server configuration. You can
find example .htaccess
file which can help you achieve
this in contrib
directory in phpMyAdmin.
<VirtualHost *:80>
ServerAdmin *********************
ServerName www.myurl.com
DirectoryIndex index.html #index.mhtml
DocumentRoot /var/www/www.myurl.com
AddType text/html .html #.mhtml
# Set Perl Variable SiteName with name of site for handler.pl
#PerlSetVar site myurl
#PerlRequire /var/www/handler.pl
<LocationMatch "(\.html|\.txt|\.pl|\.mhtml|dhandler|autohandler)$">
#SetHandler perl-script
#PerlHandler HTML::Mason
</LocationMatch>
<DirectoryMatch "/var/www/phpMyAdmin-3.4.3.1-english">
AllowOverride All
Options None
Order allow,deny
Allow from all
</DirectoryMatch>
ScriptAlias /cgi-bin/ "/var/www/www.myurl.com/cgi-bin/"
<Directory "/var/www/www.myurl.com/cgi-bin">
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory>
ErrorLog syslog:local1
ErrorLog /var/log/httpd/www.myurl.com.error
CustomLog /var/log/httpd/www.myurl.com.access common
</VirtualHost>
<VirtualHost *.80>
.
.
.
</VirtualHost>
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss