Hi, Using Dreamweaver to upload a site, my 'web' folder shows the files, but when I try to access the site I get a window asking for username and password for "Members Only". My Dreamweaver FTP info do not work, nor my client, reseller, or admin info. What am I missing?? thanks... Brian
Did you upload the files with an administrator user? Did you upload the files to the /web directory? Have you used the functions in webFTP to password protect directories in this website?
The user is admin. The files are in /web... but the index page in /web/user/username/web is what comes up in a browser. I am connecting via Dreamweaver to Host directory:/web/ with the username and password with no problem, but I can not access /web/user/username/web/. I have not password protected any of the folders in that path. Brian
I have uploaded a number of sites and they are now going to the correct folder /web/ The only sites that I can get to load in a browser are .htm & .html sites. My PHP sites do not load. I remember setting the apache2.conf to recognize PHP file extension. Brian
Do not set enable the .php extension in apache2.conf! This is all set by ISPCOnfig. Remove your manual changes from apache2.conf and chech the "php" checkbox in the settings for the website to enable php.
I was referring to the initial setup of Debian 3.1 and have not made any changes to the apache2.conf file. The ispconfig manual does not mention the 'PHP Safe Mode' option. Should this also be checked when using PHP? I do have the 'PHP Scripts:' checked but the pages do not load. The site is in the /web/ directory. What is the purpose of the /web/user/username/web/ directory? Also, what are the check boxes next to all directories and files for? Brian
Not necessarily if you just want PHP to work. It's optional. And your PHP file is in /var/www/web<id>/web or something like this? Have a look at chapter 2.2.9 on http://www.ispconfig.org/downloads/manual_en/manual_kunde_en_src.htm#4_2_2. What files and directories?
I was referring to the 'Web-FTP' tab and the directories and files that are listed in 'Folder'. I have not come across anything in the documentation that describes their purpose.. Should I use /var/www/web for the host directory using Dreanweaver with PHP sites...with the same Username and Password? Do sites using plain .htm or .html use the /web/ directory instead? Thanks for the info... Brian
I installed PHPMyAdmin 2.6.4-pl3 using "Management"-> "Update Manager". It wants a Username and Password, even though I haven't set one. Is there a default Login? I see where I should have selected 'expert' mode during installation to enable CGI and PHP using suExec. Is there a way I can edit this so I can use /var/www/ as the default home directory for websites? Brian
You have to use a MySQL user and his password here, because you're trying to login to MySQL. For example, you can use the same MySQL user (usually root) and password you used when you installed ISPConfig. This is going to be difficult if you have already set up some web sites... You have to upload all files to /var/www/web1/web, /var/www/web2/web, etc. If you chose another document root than /var/www during ISPConfig installation, e.g. /home/www, then it would be /home/www/web1/web, /home/www/web2/web, ...
Using Dreamweaver to upload files gives me an FTP error whenever I try to use any Host Directory other than /web/...no matter which site I am working with. If I create these directories manually on the server what permissions should I assign them? Do I need to change the apache2.conf to show these new directories? Would it be better to just reinstall ISPConfig and make the correct changes there? Brian
Why do you want to access other directories than web (and its subdirectories)? Because that's the directory where you should upload your files to.
Sorry for the confusion...the only directory that I can access using Dreamweaver is /web/. Every other combination gives me an FTP error; 'cannot open remote folder /var/www/ (or any other combination). Access Denied. The file may not exist, or there could be a permission problem'. I need to have PHP/CGI for my sites, and I need to be able to access them from Dreamweaver. I can upload the files for all the sites, and they go into their own directories in /home/www/ (web9 - web17), but they will not load in a browser other than the one that uses the .htm extension. I'm sure I am missing something really simple, but I keep going around in circles. Brian
So you mean you're able to upload to /home/www/web9/web, for example? Please post the output of Code: ls -la /home/www/web9/web Also, what's in your Vhosts_ispconfig.conf?
brian@www:~$ ls -la /home/www/web9/web total 348 drwxrwxr-x 12 web9_brian web9 4096 2006-01-09 21:52 . drwxr-xr-x 9 web9_brian web9 4096 2006-01-10 08:01 .. -rw-r--r-- 1 web9_brian web9 16486 2006-01-09 21:50 about.php -rw-r--r-- 1 web9_brian web9 9870 2006-01-09 21:50 affiliate.php -rw-r--r-- 1 web9_brian web9 9874 2006-01-09 21:50 cart.php -rw-r--r-- 1 web9_brian web9 10564 2006-01-09 21:50 categories.php -rw-r--r-- 1 web9_brian web9 807 2006-01-09 21:50 clearpixel.gif -rw-r--r-- 1 web9_brian web9 101214 2006-01-09 21:50 createdb.php -rw-r--r-- 1 web9_brian web9 1266 2006-01-09 21:50 dwtemplatereadme.txt -rw-r--r-- 1 web9_brian web9 5118 2006-01-09 21:50 emailfriend.php drwxrwxr-x 2 web9_brian web9 4096 2006-01-08 19:33 error drwxr-xr-x 4 web9_brian web9 4096 2006-01-09 21:51 images -rw-rw-r-- 1 web9_brian web9 1225 2006-01-10 08:01 index.html -rw-r--r-- 1 web9_brian web9 15565 2006-01-09 21:51 index.php -rw-r--r-- 1 web9_brian web9 1622 2006-01-09 21:51 instructions.txt drwxr-xr-x 2 web9_brian web9 4096 2006-01-09 21:51 Library -rw-r--r-- 1 web9_brian web9 7691 2006-01-09 21:51 menu_changes.txt drwxr-xr-x 3 web9_brian web9 4096 2006-01-09 21:51 OlderStuff -rw-r--r-- 1 web9_brian web9 18515 2006-01-09 21:52 popouttext.js -rw-r--r-- 1 web9_brian web9 10576 2006-01-09 21:52 proddetail.php drwxr-xr-x 2 web9_brian web9 4096 2006-01-09 21:52 prodimages -rw-r--r-- 1 web9_brian web9 10574 2006-01-09 21:52 products.php -rw-r--r-- 1 web9_brian web9 719 2006-01-09 21:52 README.txt drwxr-xr-x 2 web9_brian web9 4096 2006-01-09 21:52 Reseller_Affiliate -rw-r--r-- 1 web9_brian web9 10571 2006-01-09 21:52 search.php drwxr-xr-x 2 web9_brian web9 4096 2006-01-09 21:52 SiteExamples -rw-r--r-- 1 web9_brian web9 10560 2006-01-09 21:52 sorry.php -rw-r--r-- 1 web9_brian web9 3208 2006-01-09 21:52 srdlicense.txt drwxr-xr-x 2 web9_brian web9 4096 2006-01-09 04:00 stats -rw-r--r-- 1 web9_brian web9 1586 2006-01-09 21:52 style.css drwxr-xr-x 2 web9_brian web9 4096 2006-01-09 21:52 Templates -rw-r--r-- 1 web9_brian web9 10586 2006-01-09 21:52 thanks.php drwxr-xr-x 4 web9_brian web9 4096 2006-01-09 21:54 vsadmin brian@www:~$ From Vhosts_ispconfig.conf; ################################### # # ISPConfig vHost Configuration File # Version 1.0 # ################################### # NameVirtualHost 68.149.224.197:80 <VirtualHost 68.149.224.197:80> ServerName localhost ServerAdmin root@localhost DocumentRoot /var/www/sharedip </VirtualHost> # # ###################################### # Vhost: www.ultragrowth.ca:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web15_growing web15 ServerName www.ultragrowth.ca:80 /etc/apache2/vhosts/Vhosts_ispconfig.conf: unmodified, readonly: line 1 Brian
I did not get all of the Vhosts_ispconfig.conf in the last post. Here is the complete file.....This file is too large to post, so I will cut it into two parts. PART 1 ################################### # # ISPConfig vHost Configuration File # Version 1.0 # ################################### # NameVirtualHost 68.149.224.197:80 <VirtualHost 68.149.224.197:80> ServerName localhost ServerAdmin root@localhost DocumentRoot /var/www/sharedip </VirtualHost> # # ###################################### # Vhost: www.ultragrowth.ca:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web15_growing web15 ServerName www.ultragrowth.ca:80 ServerAdmin [email protected] DocumentRoot /home/www/web15/web ServerAlias ultragrowth.ca DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 i ndex.shtml index.cgi index.pl index.jsp Default.htm default.htm ScriptAlias /cgi-bin/ /home/www/web15/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /home/www/web15/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode Off AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/home/www/web15/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /home/www/web15/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web15/user/$1/web/$3 </VirtualHost> # # # ###################################### # Vhost: www.ultragrowth.biz:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web14_growing web14 ServerName www.ultragrowth.biz:80 ServerAdmin [email protected] DocumentRoot /home/www/web14/web ServerAlias ultragrowth.biz DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 i ndex.shtml index.cgi index.pl index.jsp Default.htm default.htm ScriptAlias /cgi-bin/ /home/www/web14/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /home/www/web14/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode Off AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/home/www/web14/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /home/www/web14/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web14/user/$1/web/$3 </VirtualHost> # # # ###################################### # Vhost: www.briantilley.com:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web11_admin web11 ServerName www.briantilley.com:80 ServerAdmin [email protected] DocumentRoot /home/www/web11/web ServerAlias briantilley.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 i ndex.shtml index.cgi index.pl index.jsp Default.htm default.htm ScriptAlias /cgi-bin/ /home/www/web11/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /home/www/web11/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode Off AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/home/www/web11/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /home/www/web11/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web11/user/$1/web/$3 </VirtualHost> # # #
PART 2 ###################################### # Vhost: www.sweatforhealth.com:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web10_gethealthy web10 ServerName www.sweatforhealth.com:80 ServerAdmin [email protected] DocumentRoot /home/www/web10/web ServerAlias sweatforhealth.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm ScriptAlias /cgi-bin/ /home/www/web10/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /home/www/web10/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode On php_admin_value open_basedir /home/www/web10/ php_admin_value file_uploads 1 php_admin_value upload_tmp_dir /home/www/web10/phptmp/ php_admin_value session.save_path /home/www/web10/phptmp/ AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/home/www/web10/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /home/www/web10/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web10/user/$1/web/$3 </VirtualHost> # # # ###################################### # Vhost: www.earthstationproductions.com:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web9_brian web9 ServerName www.earthstationproductions.com:80 ServerAdmin [email protected] DocumentRoot /home/www/web9/web ServerAlias earthstationproductions.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm ScriptAlias /cgi-bin/ /home/www/web9/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /home/www/web9/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode On php_admin_value open_basedir /home/www/web9/ php_admin_value file_uploads 1 php_admin_value upload_tmp_dir /home/www/web9/phptmp/ php_admin_value session.save_path /home/www/web9/phptmp/ AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/home/www/web9/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /home/www/web9/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web9/user/$1/web/$3 </VirtualHost> # # # ###################################### # Vhost: www.ultragrowthfoods.info:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web16_growing web16 ServerName www.ultragrowthfoods.info:80 ServerAdmin [email protected] DocumentRoot /home/www/web16/web ServerAlias ultragrowthfoods.info DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm ScriptAlias /cgi-bin/ /home/www/web16/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /home/www/web16/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode Off AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/home/www/web16/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /home/www/web16/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web16/user/$1/web/$3 </VirtualHost> # # # ###################################### # Vhost: www.ultragrowthfoods.com:80 ###################################### # # <VirtualHost 68.149.224.197:80> SuexecUserGroup web17_growing web17 ServerName www.ultragrowthfoods.com:80 ServerAdmin [email protected] DocumentRoot /home/www/web17/web ServerAlias ultragrowthfoods.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm ScriptAlias /cgi-bin/ /home/www/web17/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /home/www/web17/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode Off AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/home/www/web17/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /home/www/web17/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web17/user/$1/web/$3 </VirtualHost> # # Brian
Hm, looks ok. And what does exactly happen when you try to access for example index.php from /home/www/web9/web in your browser?
I've just tried myself. PHP is working when you try to access http://www.earthstationproductions.com/index.php, you only get a MySQL warning because of a wrong MySQL password.
All of the sites are accessible using index.php in the URL. So all I have to do is delete the index.html page in all website directories? Thanks... Brian