Jump to content

oberwil

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

oberwil's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Found the Problem. It was Norton 360 AV. If you have this AV installed you may run into the same thing. I think I prefer Norton 2006. Less intrusive. It seems that the Program does a Network Address check and watches changes to the Host file. So every time the Program runs it changes the Host file which kills my virtual-host settings. I looked through all the settings and can't find a place to exclude the Host file. Real stupid. Or I would like to tell it to use the current Host file, and have that one put wherever it saved the original Host file, so it would backup the one I wish to use.
  2. I have Apache2.2 installed on a Laptop with Vista Premium. PHP is installed and working, as well as MySQL But somehow pathing to Directories is not working. I am using a Virtual Host file with 3 sites so that I can open my browser and type http://laurels, http://sonomasport, or http://locahost. Well before messing around with PHP they all pathed correctly. But now they only work if I type in with a file path e.g http://laurels/index.html, http://localhost/index.html or http://localhost/phpinfo.php I have DirectoryIndex set to # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # <IfModule dir_module> DirectoryIndex index.html index.htm index.php </IfModule> What else could it be ?? Thanks Howard
  3. I have Apache2.2 installed on a Laptop with Vista Premium. PHP is installed and working, as well as MySQL But somehow pathing to Directories is not working. I am using a Virtual Host file with 3 sites so that I can open my browser and type http://laurels, http://sonomasport, or http://locahost. Well before messing around with PHP they all pathed correctly. But now they only work if I type in with a file path e.g http://laurels/index.html, http://localhost/index.html or http://localhost/phpinfo.php I have DirectoryIndex set to # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # <IfModule dir_module> DirectoryIndex index.html index.htm index.php </IfModule> What else could it be ?? Thanks Howard
  4. just search for me. I posted a outlined guide.
  5. I have a client whose Hosting Provider doesn't allow remote connections. Yeah their at fault and shouldn't ask you not to connect. They can just make it not possible. Anyhow here is a solution. Log in to your hosting account. Your Hosting Provider probably has a GUI so that you can install and setup apps on for you hosting package. Look for phpmyadmin. You should be able to login to it then create your databases. When you are done export the database to your local machine. Here is where it gets a little more tricky. Install Apache Web Server, MYSQL, and PHP, and phpmyadmin on your machine. And hopefully it's an XP machine because Win98 doesn't work that well for this. There are bundles like WAMP that do this all for you, but I think doing it manually will give you mroe control and understanding of how everything is working. And preferably install each part at the Root so that you will have C:\Apache\Apache2.2\htdocs C:\php C:\mysql In path in Apache is the default directory structure if you install at C:\  \htdocs will then be your htt://localhost. Read slowly the configuration files. You will probably need to read these a few times to make sure you have everything set up correctly. They are httpd.conf for apache, php.ini, my.ini for mysql, and config.inc.php for phpmyadmin. One last thing. On PHP5.2 the default settings have register_globals and register_arrays set to off. change these to on. It took me a while to find figure this out or you willin be getting errors in dreamweaver. Once you have Apache, MySQL, PHP, and phpmyadmin working. You can login to phpmyadmin. and import the database that you exported. Now connect to your local database through Dreamweaver. Now when you upload your files they will work without having to change anything because your database on your providers site is also localhost. And the database is has the same structure as your local one. The only thing is now when you need to make changes to your database, you need to make sure that their structures are the same. So just export the db from your host account to your local machine, and append or write over the db.
  6. Problem Solved. Fixed. Hopefully this will help others who having been going crazy trying to figure this one out. So here's what's going on. Basically PHP5.2 is set up more secure with register_globals=on, and register_arrays=off. So if you are developing locally and then ftp'ing you pages this shouldn't be a problem to change the off to on. Afte that I was able to see my databases in the Dreamweaver MySQL Connection tool.
  7. Here is my setup It's Windows XP Pro, with Apache 2.2.3 and PHP 5.1.6. MySQL 5.0.24. Apache DocRoot is C:\Apache\Apache2.2\htdocs. I created a Virtual-Host file with my sites. The sites that I'm tyring to use the database with is set to <VirtualHost> ServerName superdiscount DocumentRoot C:/Apache/Apache2.2/htdocs/superdiscount/htdocs </VirtualHost> So http://superdiscount shows index.html page OK. I also do have a Site with just localhost too. I have phpMyAdmin installed, and it runs from /localhost/phpmyadmin the <? phpinfo() function works when loaded. So I guessing that either I don't have Dreamweaver Testing Server properly configured or that it has a problem with the pathing or because of the VirtualHost pathing is not correct. For Testing Server I set my URL Prefix to http://superdiscount since that is what I have in the VirtualHost. But with that I just got the unidentified error message. Then I changed it to /superdiscount/htdocs and got the Error 404 No Testing Server. The Testing Serving Folder is set the C:\Apache\Apache2.2\htdocs\superdiscount\htdocs\  since that is the pathing to the root of this site. I have Remote Info set to FTP with Host Directory as /htdocs. But that has to deal with uploading my files, so I don't really think that has any bearing on this. So I'm getting this 404 error with the following: The testing server specified for this site does not map to the http://superdiscount/htdocs/_mmServerScripts/MMHTTPDB.php URL. Verify that the URL Pefix maps to the root of the site. BTW: there is a _mmServerScript folder under /superdiscount/htdocs. One more thing I forgot to add. Some Sites say to copy libmysql.dll from the c:\php directory to the windows directory. I notice that both mysql\bin and \php both have a libmysql.dll file, and their file size differs. So do I really use the php file or should I use the mysql file ?? Also in httpd.conf I have PHPIniDir c:\php and I copied mysql my.ini to c:\windows
  8. When I run pear I get "Warning: PHP Startup: Unable to load dynamic library 'c:/php/ext/php_pdf.dll' The specified module could not be found". This was fixed by commenting out the extension=php_pdf.dll Well I did a search for php_pdf.dll and it's not anywhere on my computer. Enviroment is XP SP2, Apache 2.2.3, php 5.1.6 & mysql 5.0.24a. Apache, PHP, and MySql, & phpMyAdmin all work. just trying to get the extensions and configurations correct. BTW: I found a php_pdf.zip file with php_pdf.dll version I think it was version 1.0. I tried to use it by placing it in my ext folder and uncommenting the extension=php_pdf.dll Then I got an error about not finding  php4ts.dll . So I commented it back So why doesn't my instal include a php_pdf.dll ?? and how can I get the correct version for my environment?? Thanks Howard
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.