I have an basic apache server running phpmyadmin and a joomla site I am trying to setup. My systems domain is atlbricks.com. When I type in atlbricks.com I want apache do show atlbricks.com/index.php which would be /var/www/atlbricksmain/ How can I do this?
Well if you don't plan to host other domains on you box then you can just change the physical host of apache to point at /var/www/atlbricksmain/ in your httpd.conf or apache2.conf, search for <Direcotry and you should see something like this <Directory "/var/www/apache-default"> just change the location to /var/www/atlbricksmain and you're good to go. Also make sure you have loaded the php module LoadModule php5_module modules/libphp5.so or something like that. And make sure you have index.php in your DirectoryIndex directive. All of this is in your apache configuration file. If you want to use virtual hosts so you can host more than one domain on the same IP, well that's another story.
I added /var/www/atlbricksmain to my httpd.conf file then restarted the server and got an error message. The server refused to start with that line in the httpd.conf file. Then I searched the apache2.conf file did a search for apache-default and come up with nothing found. Could you post your apache2.conf file?
if you're using Debian you want to probably alter /etc/apache2/sites-available/default and put what you need in there, otherwise you can append it to the end of /etc/apache2/apache2.conf, but if you have the first file you want to do it there, otherwise your changes won't work.
Once again I just want to thank everyone for there help. I am almost there but not quite. With the file setup like this I get a forbidden error but if I setup the DocumentRoot to /var/www/atlbricksmain it works which is good but I also have another directory which is phpmyadmin that I need to be able to run, how can I get that directory to run when I type in http://www.atlbricks.com/phpmyadmin Code: NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/atlbricksmain> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place #RedirectMatch ^/$ /apache2-default/ </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> Thanks crew!
You need something like this inside your virtualhost directive: Alias /phpmyadmin/ /pathtowherephpmyadmin/isinstalled/ <Directory "/pathtowherephpmyadmin/isinstalled"> Options Indexes Includes FollowSymLinks Multiviews AllowOverride All Order allow,deny Allow from all </Directory> then it should work.
Thanks I am now able to enter that directory with the web browser and view the files so php is not running phpmyadmin. What config file do I need to change now?
You probably need LoadModule php5_module libexec/libphp5.so and AddType application/x-httpd-php .php in your apache2.conf if you already have php installed.
Sorry I am still confused, sometimes I am getting the 404 Not Found error other times I am getting an apache directory will all the phpmyadmin files in it. PHP is running but its only running Joomla (/var/www/atlbricksmain/) and its not running phpmyadmin (/var/www/phpmyadmin) http://www.atlbricks.com/phpmyadmin/ http://www.atlbricks.com/ Code: NameVirtualHost * <VirtualHost *> Alias /phpmyadmin/ /usr/share/phpmyadmin <Directory "/usr/share/phpmyadmin"> Options Indexes Includes FollowSymLinks Multiviews AllowOverride All Order allow,deny Allow from all </Directory> //Just added! I need this directory /var/www/tce to display the files in the directory when I type http://www.atlbricks.com/tce what am I doing wrong? Alias /tce/ /home/systemadmin/tceserver/tcetest <Directory /home/systemadmin/tceserver/tcetest> Options Indexes Includes FollowSymLinks Multiviews AllowOverride All Order allow,deny Allow from all </Directory> DocumentRoot /var/www/atlbricksmain <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/atlbricksmain> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place #RedirectMatch ^/$ /apache2-default/ </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> If I change the root directory to /var/www I get the forbidden error when I enter the sites address. Sorry again but I am thinking its just a syntax error I am doing.
I need to be able to see all the files in http://www.atlbricks.com/tce I need phpmyadmin to run http://www.atlbricks.com/phpmyadmin Code: systemadmin@atlbricks:~$ ls -la /var/www total 20 drwxr-xr-x 5 root root 4096 2008-01-19 17:28 . drwxr-xr-x 16 root root 4096 2008-01-10 17:37 .. drwxr-xr-x 2 root root 4096 2008-01-10 17:37 apache2-default drwxr-xr-x 14 root root 4096 2008-01-13 15:26 atlbricksmain lrwxrwxrwx 1 root root 22 2008-01-12 19:38 phpmyadmin -> /usr/share/phpmyadmin/ drwxr-xr-x 2 root root 4096 2008-01-20 00:44 tce /etc/apache2/sites-available/ file default Code: NameVirtualHost * <VirtualHost *> ServerAdmin [email protected] Alias /phpmyadmin/ /usr/share/phpmyadmin <Directory "/usr/share/phpmyadmin"> Options Indexes Includes FollowSymLinks Multiviews AllowOverride All Order allow,deny Allow from all </Directory> DocumentRoot /var/www/atlbricksmain <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/atlbricksmain> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place #RedirectMatch ^/$ /apache2-default/ </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
Code: systemadmin@atlbricks:/var/www/atlbricksmain$ sudo ln -s /usr/share/phpmyadmin/ phpmyadmin systemadmin@atlbricks:/var/www/atlbricksmain$ Nope not working still just showing the directory. http://www.atlbricks.com/phpmyadmin/ any other ideas? Need anymore information?
Here you go. and here is the site address if you need to poke the server http://www.atlbricks.com/ /var/www/atlbricksmain Code: systemadmin@atlbricks:/var/www/atlbricksmain$ ls -la total 264 drwxr-xr-x 14 root root 4096 2008-01-21 13:17 . drwxr-xr-x 5 root root 4096 2008-01-19 17:28 .. drwxr-xr-x 9 root root 4096 2008-01-13 15:25 administrator drwxr-xr-x 2 root root 4096 2008-01-13 15:25 cache -rw-r--r-- 1 root root 101854 2007-07-21 05:29 CHANGELOG.php drwxr-xr-x 16 root root 4096 2008-01-13 15:25 components -rw-r--r-- 1 root root 4513 2008-01-16 22:29 configuration.php -rw-r--r-- 1 root root 3429 2007-07-21 05:29 COPYRIGHT.php drwxr-xr-x 2 root root 4096 2008-01-13 15:25 editor -rw-r--r-- 1 root root 3745 2007-07-21 05:29 globals.php drwxr-xr-x 3 root root 12288 2008-01-13 15:25 help -rw-r--r-- 1 root root 4829 2007-07-21 05:29 htaccess.txt drwxr-xr-x 6 root root 4096 2008-01-13 15:25 images drwxr-xr-x 10 root root 4096 2008-01-13 15:25 includes -rw-r--r-- 1 root root 5223 2007-07-21 05:29 index2.php -rw-r--r-- 1 root root 8491 2007-07-21 05:29 index.php -rw-r--r-- 1 root root 4376 2007-07-21 05:29 INSTALL.php drwxr-xr-x 2 root root 4096 2008-01-13 15:25 language -rw-r--r-- 1 root root 17977 2007-07-21 05:29 LICENSE.php -rw-r--r-- 1 root root 710 2007-07-21 05:29 mainbody.php drwxr-xr-x 7 root root 4096 2008-01-13 15:25 mambots drwxr-xr-x 2 root root 4096 2008-01-13 15:25 media drwxr-xr-x 2 root root 4096 2008-01-13 15:25 modules -rw-r--r-- 1 root root 2474 2007-07-21 05:29 offlinebar.php -rw-r--r-- 1 root root 4929 2007-07-21 05:29 offline.php -rw-r--r-- 1 root root 709 2007-07-21 05:29 pathway.php lrwxrwxrwx 1 root root 22 2008-01-21 13:17 phpmyadmin -> /usr/share/phpmyadmin/ -rw-r--r-- 1 root root 286 2007-07-21 05:29 robots.txt drwxr-xr-x 5 root root 4096 2008-01-13 15:25 templates systemadmin@atlbricks:/var/www/atlbricksmain$ /var/www/phpmyadmin Code: systemadmin@atlbricks:/var/www/phpmyadmin$ ls -la total 1016 drwxr-xr-x 9 root root 4096 2008-01-21 13:18 . drwxr-xr-x 234 root root 12288 2008-01-11 02:20 .. -rw-r--r-- 1 root root 10999 2007-07-20 09:04 browse_foreigners.php -rw-r--r-- 1 root root 735 2007-07-20 09:04 calendar.php -rw-r--r-- 1 root root 3434 2007-12-03 18:25 changelog.php -rw-r--r-- 1 root root 437 2007-07-20 09:04 chk_rel.php -rw-r--r-- 1 root root 181 2007-12-03 18:25 config.footer.inc.php -rw-r--r-- 1 root root 181 2007-12-03 18:25 config.header.inc.php -rw-r--r-- 1 root root 1263 2007-12-03 18:25 config.inc.php -rw-r--r-- 1 root root 1794 2007-07-20 09:04 config.sample.inc.php drwxr-xr-x 2 root root 4096 2008-01-11 02:20 css -rw-r--r-- 1 root root 1407 2007-07-20 09:04 db_create.php -rw-r--r-- 1 root root 10642 2007-07-20 09:04 db_datadict.php -rw-r--r-- 1 root root 2293 2007-07-20 09:04 db_export.php -rw-r--r-- 1 root root 437 2007-07-20 09:04 db_import.php -rw-r--r-- 1 root root 17461 2007-07-20 09:04 db_operations.php -rw-r--r-- 1 root root 7603 2007-07-20 09:04 db_printview.php -rw-r--r-- 1 root root 34636 2007-07-20 09:04 db_qbe.php -rw-r--r-- 1 root root 11925 2007-07-20 09:04 db_search.php -rw-r--r-- 1 root root 747 2007-07-20 09:04 db_sql.php -rw-r--r-- 1 root root 21346 2007-07-20 09:04 db_structure.php lrwxrwxrwx 1 root root 26 2008-01-11 02:21 docs.css -> ../doc/phpmyadmin/docs.css lrwxrwxrwx 1 root root 36 2008-01-11 02:21 Documentation.html -> ../doc/phpmyadmin/Documentation.html -rw-r--r-- 1 root root 1959 2007-07-20 09:04 error.php -rw-r--r-- 1 root root 24147 2007-07-20 09:04 export.php -rw-r--r-- 1 root root 18902 2007-07-20 09:04 favicon.ico -rw-r--r-- 1 root root 4829 2008-01-21 09:08 htaccess.txt -rw-r--r-- 1 root root 14105 2007-07-20 09:04 import.php -rw-r--r-- 1 root root 6265 2007-07-20 09:04 index.php drwxr-xr-x 2 root root 4096 2008-01-11 02:20 js drwxr-xr-x 2 root root 4096 2008-01-11 02:20 lang drwxr-xr-x 11 root root 4096 2008-01-11 02:20 libraries -rw-r--r-- 1 root root 343 2007-12-03 18:25 license.php -rw-r--r-- 1 root root 15048 2007-07-20 09:04 main.php -rw-r--r-- 1 root root 22230 2007-07-20 09:04 navigation.php -rw-r--r-- 1 root root 27242 2007-07-20 09:04 pdf_pages.php -rw-r--r-- 1 root root 52706 2007-07-20 09:04 pdf_schema.php -rw-r--r-- 1 root root 341 2007-07-20 09:04 phpinfo.php lrwxrwxrwx 1 root root 22 2008-01-21 13:18 phpmyadmin -> /usr/share/phpmyadmin/ drwxr-xr-x 5 root root 4096 2008-01-11 02:20 pmd -rw-r--r-- 1 root root 8962 2007-07-20 09:04 pmd_common.php -rw-r--r-- 1 root root 1857 2007-07-20 09:04 pmd_display_field.php -rw-r--r-- 1 root root 16979 2007-07-20 09:04 pmd_general.php -rw-r--r-- 1 root root 808 2007-07-20 09:04 pmd_help.php -rw-r--r-- 1 root root 3340 2007-07-20 09:04 pmd_pdf.php -rw-r--r-- 1 root root 3878 2007-07-20 09:04 pmd_relation_new.php -rw-r--r-- 1 root root 1794 2007-07-20 09:04 pmd_relation_upd.php -rw-r--r-- 1 root root 2194 2007-07-20 09:04 pmd_save_pos.php -rw-r--r-- 1 root root 13573 2007-07-20 09:04 querywindow.php -rw-r--r-- 1 root root 308 2007-07-20 09:04 readme.php drwxr-xr-x 2 root root 4096 2008-01-11 02:20 scripts -rw-r--r-- 1 root root 3341 2007-07-20 09:04 server_binlog.php -rw-r--r-- 1 root root 2773 2007-07-20 09:04 server_collations.php -rw-r--r-- 1 root root 16026 2007-07-20 09:04 server_databases.php -rw-r--r-- 1 root root 8285 2007-07-20 09:04 server_engines.php -rw-r--r-- 1 root root 1622 2007-07-20 09:04 server_export.php -rw-r--r-- 1 root root 452 2007-07-20 09:04 server_import.php -rw-r--r-- 1 root root 113092 2007-07-20 09:04 server_privileges.php -rw-r--r-- 1 root root 2845 2007-07-20 09:04 server_processlist.php -rw-r--r-- 1 root root 543 2007-07-20 09:04 server_sql.php -rw-r--r-- 1 root root 21158 2007-12-03 18:25 server_status.php -rw-r--r-- 1 root root 2429 2007-07-20 09:04 server_variables.php -rw-r--r-- 1 root root 283 2007-07-20 09:04 show_config_errors.php -rw-r--r-- 1 root root 31592 2007-07-20 09:04 sql.php -rw-r--r-- 1 root root 9077 2007-07-20 09:04 tbl_addfield.php -rw-r--r-- 1 root root 9451 2007-07-20 09:04 tbl_alter.php -rw-r--r-- 1 root root 45058 2007-07-20 09:04 tbl_change.php -rw-r--r-- 1 root root 9092 2007-07-20 09:04 tbl_create.php -rw-r--r-- 1 root root 3885 2007-07-20 09:04 tbl_export.php -rw-r--r-- 1 root root 602 2007-07-20 09:04 tbl_import.php -rw-r--r-- 1 root root 16503 2007-07-20 09:04 tbl_indexes.php -rw-r--r-- 1 root root 1988 2007-07-20 09:04 tbl_move_copy.php -rw-r--r-- 1 root root 19240 2007-07-20 09:04 tbl_operations.php -rw-r--r-- 1 root root 18341 2007-07-20 09:04 tbl_printview.php -rw-r--r-- 1 root root 24284 2007-07-20 09:04 tbl_relation.php -rw-r--r-- 1 root root 12728 2007-07-20 09:04 tbl_replace.php -rw-r--r-- 1 root root 4622 2007-07-20 09:04 tbl_row_action.php -rw-r--r-- 1 root root 17954 2007-07-20 09:04 tbl_select.php -rw-r--r-- 1 root root 731 2007-07-20 09:04 tbl_sql.php -rw-r--r-- 1 root root 33764 2007-07-20 09:04 tbl_structure.php drwxr-xr-x 4 root root 4096 2008-01-11 02:21 themes -rw-r--r-- 1 root root 974 2007-07-20 09:04 themes.php -rw-r--r-- 1 root root 1727 2007-07-20 09:04 transformation_overview.php -rw-r--r-- 1 root root 4049 2007-07-20 09:04 transformation_wrapper.php lrwxrwxrwx 1 root root 34 2008-01-11 02:21 translators.html -> ../doc/phpmyadmin/translators.html -rw-r--r-- 1 root root 5587 2007-07-20 09:04 user_password.php systemadmin@atlbricks:/var/www/phpmyadmin$
Here is the output but how do I get /var/www/tce to just list the files in the directory for viewing? What do I need to had to sites-avaliable? Here is the output you requested Code: systemadmin@atlbricks:~$ ls -la /usr/share/phpmyadmin total 1016 drwxr-xr-x 9 root root 4096 2008-01-21 13:18 . drwxr-xr-x 234 root root 12288 2008-01-11 02:20 .. -rw-r--r-- 1 root root 10999 2007-07-20 09:04 browse_foreigners.php -rw-r--r-- 1 root root 735 2007-07-20 09:04 calendar.php -rw-r--r-- 1 root root 3434 2007-12-03 18:25 changelog.php -rw-r--r-- 1 root root 437 2007-07-20 09:04 chk_rel.php -rw-r--r-- 1 root root 181 2007-12-03 18:25 config.footer.inc.php -rw-r--r-- 1 root root 181 2007-12-03 18:25 config.header.inc.php -rw-r--r-- 1 root root 1263 2007-12-03 18:25 config.inc.php -rw-r--r-- 1 root root 1794 2007-07-20 09:04 config.sample.inc.php drwxr-xr-x 2 root root 4096 2008-01-11 02:20 css -rw-r--r-- 1 root root 1407 2007-07-20 09:04 db_create.php -rw-r--r-- 1 root root 10642 2007-07-20 09:04 db_datadict.php -rw-r--r-- 1 root root 2293 2007-07-20 09:04 db_export.php -rw-r--r-- 1 root root 437 2007-07-20 09:04 db_import.php -rw-r--r-- 1 root root 17461 2007-07-20 09:04 db_operations.php -rw-r--r-- 1 root root 7603 2007-07-20 09:04 db_printview.php -rw-r--r-- 1 root root 34636 2007-07-20 09:04 db_qbe.php -rw-r--r-- 1 root root 11925 2007-07-20 09:04 db_search.php -rw-r--r-- 1 root root 747 2007-07-20 09:04 db_sql.php -rw-r--r-- 1 root root 21346 2007-07-20 09:04 db_structure.php lrwxrwxrwx 1 root root 26 2008-01-11 02:21 docs.css -> ../doc/phpmyadmin/docs.css lrwxrwxrwx 1 root root 36 2008-01-11 02:21 Documentation.html -> ../doc/phpmyadmin/Documentation.html -rw-r--r-- 1 root root 1959 2007-07-20 09:04 error.php -rw-r--r-- 1 root root 24147 2007-07-20 09:04 export.php -rw-r--r-- 1 root root 18902 2007-07-20 09:04 favicon.ico -rw-r--r-- 1 root root 4829 2008-01-21 09:08 htaccess.txt -rw-r--r-- 1 root root 14105 2007-07-20 09:04 import.php -rw-r--r-- 1 root root 6265 2007-07-20 09:04 index.php drwxr-xr-x 2 root root 4096 2008-01-11 02:20 js drwxr-xr-x 2 root root 4096 2008-01-11 02:20 lang drwxr-xr-x 11 root root 4096 2008-01-11 02:20 libraries -rw-r--r-- 1 root root 343 2007-12-03 18:25 license.php -rw-r--r-- 1 root root 15048 2007-07-20 09:04 main.php -rw-r--r-- 1 root root 22230 2007-07-20 09:04 navigation.php -rw-r--r-- 1 root root 27242 2007-07-20 09:04 pdf_pages.php -rw-r--r-- 1 root root 52706 2007-07-20 09:04 pdf_schema.php -rw-r--r-- 1 root root 341 2007-07-20 09:04 phpinfo.php lrwxrwxrwx 1 root root 22 2008-01-21 13:18 phpmyadmin -> /usr/share/phpmyadmin/ drwxr-xr-x 5 root root 4096 2008-01-11 02:20 pmd -rw-r--r-- 1 root root 8962 2007-07-20 09:04 pmd_common.php -rw-r--r-- 1 root root 1857 2007-07-20 09:04 pmd_display_field.php -rw-r--r-- 1 root root 16979 2007-07-20 09:04 pmd_general.php -rw-r--r-- 1 root root 808 2007-07-20 09:04 pmd_help.php -rw-r--r-- 1 root root 3340 2007-07-20 09:04 pmd_pdf.php -rw-r--r-- 1 root root 3878 2007-07-20 09:04 pmd_relation_new.php -rw-r--r-- 1 root root 1794 2007-07-20 09:04 pmd_relation_upd.php -rw-r--r-- 1 root root 2194 2007-07-20 09:04 pmd_save_pos.php -rw-r--r-- 1 root root 13573 2007-07-20 09:04 querywindow.php -rw-r--r-- 1 root root 308 2007-07-20 09:04 readme.php drwxr-xr-x 2 root root 4096 2008-01-11 02:20 scripts -rw-r--r-- 1 root root 3341 2007-07-20 09:04 server_binlog.php -rw-r--r-- 1 root root 2773 2007-07-20 09:04 server_collations.php -rw-r--r-- 1 root root 16026 2007-07-20 09:04 server_databases.php -rw-r--r-- 1 root root 8285 2007-07-20 09:04 server_engines.php -rw-r--r-- 1 root root 1622 2007-07-20 09:04 server_export.php -rw-r--r-- 1 root root 452 2007-07-20 09:04 server_import.php -rw-r--r-- 1 root root 113092 2007-07-20 09:04 server_privileges.php -rw-r--r-- 1 root root 2845 2007-07-20 09:04 server_processlist.php -rw-r--r-- 1 root root 543 2007-07-20 09:04 server_sql.php -rw-r--r-- 1 root root 21158 2007-12-03 18:25 server_status.php -rw-r--r-- 1 root root 2429 2007-07-20 09:04 server_variables.php -rw-r--r-- 1 root root 283 2007-07-20 09:04 show_config_errors.php -rw-r--r-- 1 root root 31592 2007-07-20 09:04 sql.php -rw-r--r-- 1 root root 9077 2007-07-20 09:04 tbl_addfield.php -rw-r--r-- 1 root root 9451 2007-07-20 09:04 tbl_alter.php -rw-r--r-- 1 root root 45058 2007-07-20 09:04 tbl_change.php -rw-r--r-- 1 root root 9092 2007-07-20 09:04 tbl_create.php -rw-r--r-- 1 root root 3885 2007-07-20 09:04 tbl_export.php -rw-r--r-- 1 root root 602 2007-07-20 09:04 tbl_import.php -rw-r--r-- 1 root root 16503 2007-07-20 09:04 tbl_indexes.php -rw-r--r-- 1 root root 1988 2007-07-20 09:04 tbl_move_copy.php -rw-r--r-- 1 root root 19240 2007-07-20 09:04 tbl_operations.php -rw-r--r-- 1 root root 18341 2007-07-20 09:04 tbl_printview.php -rw-r--r-- 1 root root 24284 2007-07-20 09:04 tbl_relation.php -rw-r--r-- 1 root root 12728 2007-07-20 09:04 tbl_replace.php -rw-r--r-- 1 root root 4622 2007-07-20 09:04 tbl_row_action.php -rw-r--r-- 1 root root 17954 2007-07-20 09:04 tbl_select.php -rw-r--r-- 1 root root 731 2007-07-20 09:04 tbl_sql.php -rw-r--r-- 1 root root 33764 2007-07-20 09:04 tbl_structure.php drwxr-xr-x 4 root root 4096 2008-01-11 02:21 themes -rw-r--r-- 1 root root 974 2007-07-20 09:04 themes.php -rw-r--r-- 1 root root 1727 2007-07-20 09:04 transformation_overview.php -rw-r--r-- 1 root root 4049 2007-07-20 09:04 transformation_wrapper.php lrwxrwxrwx 1 root root 34 2008-01-11 02:21 translators.html -> ../doc/phpmyadmin/translators.html -rw-r--r-- 1 root root 5587 2007-07-20 09:04 user_password.php systemadmin@atlbricks:~$
Please try this: Code: rm -f /var/www/atlbricksmain/phpmyadmin cp -pfr /usr/share/phpmyadmin /var/www/atlbricksmain