Localhost

Take a look at /etc/apache2/httpd.conf... is it the original file or the one you modified? If it's the one you modified, then you didn't copy the backup properly. If it isn't the one your modified, then the copy/restore of the backup conf file completed successfully.
 
That's not something I can help you with -- I don't know what modifications you made to the file -- only you do, so only you can tell if it's the modified file or not.

If it looks like the modified file (you can get an idea by looking at the creation/modification date of the httpd.conf file -- do those dates coincide with the time frame in which you made changes to it?) then you'll want to try the restore of the backup file again.
 
Yep, just ensure that the flash drive supports UNIX permissions (i.e., is formatted as HFS+ -- not NTFS or FAT32) and that you use the "sudo" command to copy it into place.

It would be wise to ensure that both Macs are running the same version of Apache, just to be safe -- if they're both running identical versions of Mac OS X (i.e., they're both on Leopard, or both on Snow Leopard, etc.) then this shouldn't be a problem.
 
Assuming that the file was copied to the iPod retaining the correct permissions, the command would be something along the lines of:
Code:
sudo cp /Volumes/nameofiPod/pathtofile/httpd.conf /etc/apache2/httpd.conf
 
Take a look at /etc/apache2/httpd.conf... is it the original file or the one you modified? If it's the one you modified, then you didn't copy the backup properly. If it isn't the one your modified, then the copy/restore of the backup conf file completed successfully.

I have a mysql database where I keep track of some information. Currently, I enter all information from within a terminal session. I would like to change it up a bit. My intention is to create a local web page where I can enter the information into the database. I tried to enable php in my local version of apache2. I edited the "/etc/apache2/httpd.conf" to enable php5. After I removed the "#" from the module line to add php, I stopped and restarted apache. Now apache will not start. I looked at the log file and I am getting this message
[Fri Jun 17 20:52:27.167414 2016] [core:notice] [pid 1347] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

[Fri Jun 17 21:00:18.170777 2016] [mpm_prefork:notice] [pid 1347] AH00169: caught SIGTERM, shutting down".

While I do take backups, I don't know how to do a restore of the "/etc" directory. I have gone back to comment out the line I un-commented but I still can't start up the web server.

Any help will be greatly appreciated!

Neman.
 
Back
Top